-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add option to customise close() wait (fixes #901) #902
Conversation
|
kafka-streams/src/main/java/io/micronaut/configuration/kafka/streams/KafkaStreamsFactory.java
Outdated
Show resolved
Hide resolved
@jeremyg484 please, follow-up this PR from @agarciadom |
@agarciadom Thanks for your initial work on this. I've gone ahead and picked up the PR and done the configuration in a bit more of a typical Micronaut way using |
Thank you for the changes! Apologies for not being able to do it myself: I was busy with my teaching and I wasn't entirely sure about how to follow the suggested approach. I'll try out your proposed changes :-). |
I can confirm that with the PR, I can replace my manual workaround with this addition to my kafka:
streams:
default:
close-timeout: 60s I'm not sure why it takes so long to shutdown after my last test (that's for another discussion, I guess!), but at least it does get the tests to pass. Thank you for your work! |
Great, glad it's working for you! I've been seeing the same issue with it taking a long time to shutdown the streams sometimes in our tests. As far as I can tell, it's something purely on the Kafka side of things and not anything we're doing wrong in the module. It is something I intend to dig into separately though as it's making running the whole streams test suite quite sluggish. |
This pull request proposes a new option to customise how long we wait for each
KafkaStreams
to close, as a fix for #901.If you have a better idea for the name of the option, please let me know. I was not sure whether to go with
kafka.streams.close-seconds
orkafka.streams-close-seconds
.