-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin fn may hang the runtime #4462
Comments
This may cause the chaos fuzz test timeout...... |
Using a function to invoke some non-computational operation is not a good idea. Datafusion doesn't support async functions or async UDF. Also, it's inconvenient to pass flush/compaction options via the function interface. The function signature may become too complicated if there are many options. We should implement dedicated clauses for flush/compact instead of using the admin function. For example, ClickHouse has a list of system clauses. We might also define some clauses like |
I still don't think function/UDF is a good abstraction for such admin functionalities. And it turns out to be lots of problems in the implementation that we(except the person who implemented this) need to spend lots of time to debug, alleviate and workaround. Why would you be negative to dedicated SQL clauses @killme2008 ? |
After discussing with @killme2008, we can still use functions to do this. But we can add a new clause to invoke the function:
|
What type of bug is this?
Locking issue
What subsystems are affected?
Standalone mode, Distributed Cluster
Minimal reproduce step
select flush_table()
to flush it.Also see #4436 (comment)
What did you expect to see?
Flush is done.
What did you see instead?
The flush function hangs forever.
What operating system did you use?
Unrelated
What version of GreptimeDB did you use?
0.0.0
Relevant log output and stack trace
The text was updated successfully, but these errors were encountered: