forked from apache/kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAFKA-9189: Use MetadataCache instead of ZK during controlled shutdow…
…n to avoid hang (apache#10361) This avoids hanging during shutdown if ZK is unavailable. We could change ZK calls to get the controller id and the broker information to have a timeout, but I think this approach is better. The downside is that the metadata cache may be slightly out of date, but we will retry as per the controlled shutdown configuration. If this broker is partitioned away from the Controller and is not receiving metadata updates, then we want to shutdown asap anyway. I added a test that timed out without this change and included a couple of clean-ups in `ServerShutdownTest`: * Removed `testCleanShutdownWithDeleteTopicEnabled`, which is redundant since delete topics is enabled by default. * Removed redundant method arguments Reviewers: David Jacot <[email protected]>, Jun Rao <[email protected]>
- Loading branch information
Showing
4 changed files
with
35 additions
and
31 deletions.
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
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