Skip to content

Make GuavaUtilsTest use less CPU#14487

Merged
clintropolis merged 1 commit into
apache:masterfrom
imply-cheddar:fix-guava-utils-test-cancel-all
Jun 27, 2023
Merged

Make GuavaUtilsTest use less CPU#14487
clintropolis merged 1 commit into
apache:masterfrom
imply-cheddar:fix-guava-utils-test-cancel-all

Conversation

@imply-cheddar
Copy link
Copy Markdown
Contributor

GuavaUtilsTest.testCancelAll is currently spinning up 3 threads, putting them in an infinite loop and then only causing one to exit. This means that 2 threads are continuing to run in the background for the entire lifetime of the surefire run just doing their infinite loop thing. Either way, the infinite loop is a poor way of doing the concurrent validation anyway, so switch it to do a proper validation with countdown latches and tasks that always exit.

@clintropolis clintropolis merged commit 2f0a437 into apache:master Jun 27, 2023
@clintropolis
Copy link
Copy Markdown
Member

this PR looks like it cuts the running time of the druid-processing unit tests in half 👍

@abhishekagarwal87 abhishekagarwal87 added this to the 27.0 milestone Jul 19, 2023
sergioferragut pushed a commit to sergioferragut/druid that referenced this pull request Jul 21, 2023
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