-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CLI hangs and throws TimeoutException in 0.10.0 #5724
Comments
@vcrfxia @purplefox Seems to be a bug in the new vert.x server side push implementation. |
One additional note - if I spaced out the transient queries (instead of running them in close succession), giving each more time to actually terminate, I didn't encounter the hanging issue as quickly (or at all). So there seems to be an element of timing on this. There wasn't a consistent number of transient queries that led to this issue. |
Reverting #5386 appears to fix the bug. I don't understand the mechanism for how this change results in this behavior yet, though. |
Obviously, we can't just revert #5386 as this will reintroduces the bug it was fixing: namely stopping transient query results ballooning into memory. Though at least now we know what area to look in the code! |
Repoening until this is merged to 6.0.x / 0.10.x |
The fix has already been backported to 6.0.x (thanks, Tim!): 663a67b Closing again. |
Describe the bug
The ksqlDB CLI hangs and throws
TimeoutException
(s) in v0.10.0 after running multiple transient queries.To Reproduce
Steps to reproduce the behavior, include:
Version: 0.10.0
Create a simple stream with one record to query:
Now run multiple transient queries sequentially against this stream multiple times in close succession, ending each query with Ctrl-c:
Eventually, after a certain number of repetitions, the query will hang with no output, possibly for several minutes. Meanwhile, most or all of the prior queries will still be running in the background (if you run
show queries
in another CLI session, you'll see a big list).Eventually the hung query will return results.
Expected behavior
Each query is terminated immediately when Ctrl-c is entered.
Actual behaviour
After entering Ctrl-c to stop the query, the CLI prompt immediately returns, but the underlying Streams app/query continues to run for quite a while (often a couple of minutes or more) before finally terminating. During that period, either before or after the Streams app finally terminates, the following exception appears in the log:
Additional context
The
TimeoutException
mentioned above appears to occur within about a minute after Ctrl-c, which may be before or after the actual Streams app terminates.The text was updated successfully, but these errors were encountered: