Skip to content

Conversation

@amichair
Copy link
Contributor

Some refactoring and cleanup, followed by the fix - client wasn't properly shut down between tests so occasionally they contaminated each other with unwanted events.

@maoling
Copy link
Member

maoling commented Jul 1, 2021

@amichair very very Sorry for our late, I'll take a look at next weekend(07-10)

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.

I believe that this patch is in the good direction
In my opinion renaming CountdownWatcher to StateWatcher is making the patch a bit hard to review.

can you please revert that refactor ? this way we can focus on your change

@maoling maoling changed the title Zookeeper-4271: Flaky test - ReadOnlyModeTest.testConnectionEvents ZOOKEEPER-4271: Flaky test - ReadOnlyModeTest.testConnectionEvents Jul 6, 2021
@amichair
Copy link
Contributor Author

I can undo the refactor with a bit of work, but the rename is in a separate commit to make it trivially easy to review... also, it no longer uses a countdown latch, so the name doesn't make sense. Also, it's an implementation detail where before the inner field was accessed directly from outside and is now encapsulated instead, so it makes sense to rename to what it does rather than how it (was) implemented... no?

@kezhuw
Copy link
Member

kezhuw commented May 12, 2025

Superceded by #1896.

@kezhuw kezhuw closed this May 12, 2025
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.

4 participants