-
Notifications
You must be signed in to change notification settings - Fork 14k
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
KAFKA-4859: Raised Timeout #2680
Conversation
@guozhangwang fyi :) |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
@original-brownbear I looked at the issue and here is my findings (cc @mjsax @dguy @enothereska ):
So my conclusion is that our commit interval controlling when the flush on the cache will be triggered is too close to the wait time (they are actually the same on paper, though waiting timeout is actually a lower bound on Hence my suggestion is: 1) add back the line but set a reasonable interval, e.g.:
By doing this we won't increase the latency of running this integration test: today the whole unit test suite of Streams takes about 3-4 minutes, while this integration test alone will take at least 30 seconds with the current setting. |
I can verify that if we reduce the wait time on In addition, there are a bunch of other integration tests that have the same issue. |
Have created an alternative PR #2682 for this issue. Verified that the local runs of unit test can be shorten by about 30 - 45 seconds locally (4GB memory). |
@guozhangwang nice, you're PR is what I was looking for when I asked where those |
@original-brownbear Could you review the other PR and if you feel that covers the purpose of this one, please feel free to close it. |
@guozhangwang already did review it and looks like a much cleaner solution to me. Closing here, thanks! |
This fixes https://issues.apache.org/jira/browse/KAFKA-4859 for me over hundreds of iterations while I could easily reproduce it with less than ~30-40 iterations without the increased timeout.
Also raising the timeout (at least on my setup) looks like a valid approach looking at test runtimes being consistently slightly above those 30s default timeout coming from
org.apache.kafka.streams.integration.utils.IntegrationTestUtils#DEFAULT_TIMEOUT
.