-
Notifications
You must be signed in to change notification settings - Fork 14.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
KAFKA-7477: Improve Streams close timeout semantics #5747
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
066af1e
KAFKA-7477: Enhancement of close logic.
nizhikov da86a48
KAFKA-7477: Enhancement of close logic.
nizhikov fd65d4f
KAFKA-7477: Code review fixes.
nizhikov d84e350
Merge branch 'trunk' of github.com:apache/kafka into KAFKA-7477
nizhikov 88dae83
KAFKA-7477: Tests added.
nizhikov c1cb772
KAFKA-7477: Fixed for a `waitOnState` method
nizhikov a557488
KAFKA-7477: Fixed for a `waitOnState` method
nizhikov d368560
KAFKA-7477: Fixed for a `waitOnState` method
nizhikov 8f65f01
Merge branch 'trunk' into KAFKA-7477
nizhikov fa7a93d
KAFKA-7477: `waitOnState` improvement
nizhikov c82c5ac
KAFKA-7477: `waitOnState` improvement
nizhikov d2a64d5
KAFKA-7477: code review fixes.
nizhikov d055d3e
KAFKA-7477: code review fixes.
nizhikov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nit: every conditional needs to have braces (per the code style)
not nit: I find this logic a little difficult to follow. Contrary to what @mjsax suggested, wouldn't it be pretty straightforward to map the old semantics on to the new ones like this:
?
Then, the old close method could just transform its arguments and call the new method, with no need to have this "new semantics" flag and an early return in the middle of the loop.
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.
@vvcephei I like your proposal. Thanks!
Changed PR according to it.