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

Make MetadataCacheTest reliable. #10877

Merged
merged 1 commit into from Jun 9, 2021
Merged

Conversation

sursingh
Copy link
Contributor

@sursingh sursingh commented Jun 9, 2021

Fixes #10872

Motivation

Cache updates are asynchronous. Due to this the test could sometime fail. This makes the test flaky
MetadataCacheTest

Modifications

Use Awaitility module to more reliably check for the test conditions

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

A simple bugfix in test code. Doen't need any doc updates

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Avoid issue due to async update by using Awaitility
@sursingh
Copy link
Contributor Author

sursingh commented Jun 9, 2021

@lhotari: can you please help with the review

@bharanic-dev
Copy link
Contributor

LGTM.

@merlimat merlimat added this to the 2.9.0 milestone Jun 9, 2021
@merlimat merlimat merged commit 4cf1008 into apache:master Jun 9, 2021
yangl pushed a commit to yangl/pulsar that referenced this pull request Jun 23, 2021
Avoid issue due to async update by using Awaitility

Co-authored-by: Surinder Singh <surinders@splunk.com>
eolivelli pushed a commit to datastax/pulsar that referenced this pull request Jul 12, 2021
Avoid issue due to async update by using Awaitility

Co-authored-by: Surinder Singh <surinders@splunk.com>
(cherry picked from commit 4cf1008)
hangc0276 pushed a commit that referenced this pull request Aug 25, 2021
Avoid issue due to async update by using Awaitility

Co-authored-by: Surinder Singh <surinders@splunk.com>
(cherry picked from commit 4cf1008)
@hangc0276 hangc0276 added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Aug 25, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Avoid issue due to async update by using Awaitility

Co-authored-by: Surinder Singh <surinders@splunk.com>
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.

Flaky-test: MetadataCacheTest.crossStoreUpdates
4 participants