Skip to content

Fix TestShardOrganizer.testShardOrganizerInProgress flakiness#19845

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/fix-testshardorganizer-testshardorganizerinprogress-flakiness-30bc37
Nov 22, 2023
Merged

Fix TestShardOrganizer.testShardOrganizerInProgress flakiness#19845
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/fix-testshardorganizer-testshardorganizerinprogress-flakiness-30bc37

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Nov 21, 2023

There was a race, the test job was sleeping for only 10ms. However, since GC pause is possible, sleeping "long enough" should be measured in seconds. Use a latch for synchronization instead of fixed sleep time.

Fixes #11252

@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Nov 21, 2023
@findepi findepi requested review from hashhar and wendigo November 21, 2023 09:31
@cla-bot cla-bot bot added the cla-signed label Nov 21, 2023
@findepi findepi force-pushed the findepi/fix-testshardorganizer-testshardorganizerinprogress-flakiness-30bc37 branch from a84e7c6 to 32f52dd Compare November 21, 2023 09:33
Copy link
Copy Markdown
Contributor

@wendigo wendigo left a comment

Choose a reason for hiding this comment

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

Mind the error-prone failure

There was a race, the test job was sleeping for only 10ms.
However, since GC pause is possible, sleeping "long enough" should be
measured in seconds. Use a latch for synchronization instead of fixed
sleep time.
@findepi findepi force-pushed the findepi/fix-testshardorganizer-testshardorganizerinprogress-flakiness-30bc37 branch from 32f52dd to 8de3333 Compare November 22, 2023 08:33
@findepi findepi merged commit 9d3f564 into trinodb:master Nov 22, 2023
@findepi findepi deleted the findepi/fix-testshardorganizer-testshardorganizerinprogress-flakiness-30bc37 branch November 22, 2023 08:33
@github-actions github-actions bot added this to the 434 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry test

Development

Successfully merging this pull request may close these issues.

Raptor's TestShardOrganizer.testShardOrganizerInProgress test is flaky

3 participants