Skip to content
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

BookieImpl remove wait until journal quits #3603

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

wenbingshen
Copy link
Member

Motivation

PR #2887 introduced the feature of shutdown the bookie service after any Journal thread exits, so we don't need to wait in BookieImpl for all Journal threads to exit before shutdown the Bookie service, because this cannot happen.

@wenbingshen
Copy link
Member Author

We have BookieMultipleJournalsTest#testJournalExit, this test shows that any journal thread exit will cause bookie to exit. So we no longer need BookieImpl to shutdown the bookie service after waiting for all journal threads to exit.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

LGTM

@wenbingshen
Copy link
Member Author

ping @hangc0276 @dlg99 @zymap PTAL, Thanks.

@wenbingshen
Copy link
Member Author

ping @zymap @hangc0276 @Shoothzj @dlg99 If you have time, can you help take a look. Thanks.

@hangc0276 hangc0276 merged commit b85ac48 into apache:master Feb 9, 2023
@wenbingshen wenbingshen deleted the wenbing/removeJouranlJoin branch February 9, 2023 07:33
zymap pushed a commit that referenced this pull request Feb 16, 2023
### Motivation

PR #2887 introduced the feature of shutdown the bookie service after any Journal thread exits, so we don't need to wait in BookieImpl for all Journal threads to exit before shutdown the Bookie service, because this cannot happen.

(cherry picked from commit b85ac48)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
### Motivation

PR apache#2887 introduced the feature of shutdown the bookie service after any Journal thread exits, so we don't need to wait in BookieImpl for all Journal threads to exit before shutdown the Bookie service, because this cannot happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants