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

[controller][test] Fix race condition during controller startup and fix flakies #714

Merged
merged 6 commits into from
Oct 26, 2023

Conversation

sushantmane
Copy link
Contributor

@sushantmane sushantmane commented Oct 25, 2023

Fix race condition during controller startup and fix flakies/reduce noise

  • Setup admin topic for a cluster before running cluster initialization routines
  • Close cluster wrapper at the end of test in PartialUpdateClusterConfigTest
  • Close local broker created during TestActiveActiveIngestion::testAAIngestionWithStoreView
  • Use volatile PubSubProducerAdapter::forceClosed flag to make update visible to a callback thread
  • Use unique data paths for venice-server-data in AbstractClientEndToEndSetup to avoid race condition

How was this PR tested?

Internal CI and GHCI

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@sushantmane sushantmane changed the title [controller][test] Fix race condition during controller startup and fix flakies/reduce noise [controller][test] Fix race condition during controller startup and fix flakies Oct 25, 2023
FelixGV
FelixGV previously approved these changes Oct 25, 2023
…everal flakies/reduce noise

- Setup admin topic for a cluster before running cluster initialization routines
- Do not refuse to return real time topic if store being setup is of type system store
- Close cluster wrapper at the end of test in `PartialUpdateClusterConfigTest`
- Close local broker created during `TestActiveActiveIngestion::testAAIngestionWithStoreView`
- Use `volatile` `PubSubProducerAdapter::forceClosed` flag to make update visible to a callback thread
- Use unique data paths for venice-server-data in `AbstractClientEndToEndSetup` to avoid race condition
Copy link
Contributor

@nisargthakkar nisargthakkar left a comment

Choose a reason for hiding this comment

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

LGTM

@sushantmane
Copy link
Contributor Author

Thanks for the review, @FelixGV & @nisargthakkar!

@sushantmane sushantmane merged commit 0ad5eba into linkedin:main Oct 26, 2023
77 checks passed
@sushantmane sushantmane deleted the li-sync-controller-startup branch October 26, 2023 02:18
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