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

GEODE-6517: Fix a race by counting down the latch. #3297

Merged
merged 2 commits into from
Mar 14, 2019

Conversation

pivotal-eshu
Copy link
Contributor

No description provided.

Copy link
Contributor

@gesterzhou gesterzhou left a comment

Choose a reason for hiding this comment

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

+1

@@ -1707,21 +1707,12 @@ public boolean recoverPersistentBuckets() {
ArrayList<ProxyBucketRegion> bucketsHostedLocally =
new ArrayList<ProxyBucketRegion>(proxyBucketArray.length);

allBucketsRecoveredFromDisk = new CountDownLatch(proxyBucketArray.length);
Copy link
Contributor

Choose a reason for hiding this comment

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

how about moving this down to AFTER the RedundancyLogger is created.
That way if the logger creation fails it will not even have created the CountDownLatck

@pivotal-eshu pivotal-eshu merged commit 326873f into develop Mar 14, 2019
@pivotal-eshu pivotal-eshu deleted the feature/GEODE-6517 branch March 14, 2019 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants