-
Notifications
You must be signed in to change notification settings - Fork 45
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
[#1486] Upgrade kafka images #1691
Conversation
2825d5d
to
225947c
Compare
c01c2ad
to
5ace872
Compare
try { | ||
if (!streams.state().equals(KafkaStreams.State.RUNNING)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to KAFKA-10271 the underlying QueryableStoreProvider
would expensively lookup stores from all registered StreamThreadStateStoreProvider
instances. StreamThreadStateStoreProvider::getStore
throws an exception if the thread is not RUNNING
so there was an implicit check for that whenever we requested a store.
KAFKA-10271 removed that extra lookup for performance reasons so that it became possible to access stores that would crash when trying to read from them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also explains why the integration tests were failing, while the runtime was working: The state stores do eventually get ready, but for the tests that were failing they were not ready at the expected time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required for #1486