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

[fix][test] Fix flaky test BrokerRegistryTest.testRegisterAndLookup #19402

Conversation

Demogorgon314
Copy link
Member

Fixes #19401

Motivation

After unregistering, the other broker registry lock manager's metadata cache might not be updated yet, so we need to wait for it to synchronize.

public CompletableFuture<List<String>> listLocks(String path) {
return cache.getChildren(path);
}

Modifications

Wait for the metadata cache to synchronize after release.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@Demogorgon314 Demogorgon314 self-assigned this Feb 2, 2023
@Demogorgon314 Demogorgon314 requested a review from lhotari February 2, 2023 13:26
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 2, 2023
@Demogorgon314 Demogorgon314 reopened this Feb 2, 2023
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this, @Demogorgon314.

@lhotari lhotari merged commit c890a8c into apache:master Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test type/flaky-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: BrokerRegistryTest.testRegisterAndLookup
2 participants