Skip to content

Conversation

@jonenst
Copy link
Contributor

@jonenst jonenst commented Jan 16, 2026

PR Summary

Go easier on the cpu during the ending poll when writing results

@jonenst jonenst requested review from GhilesA and antoinebhs January 16, 2026 08:04
@jonenst jonenst changed the base branch from main to fixhang January 16, 2026 08:04
@jonenst jonenst changed the base branch from fixhang to refactorwritertests January 16, 2026 08:05
Copy link

@GhilesA GhilesA left a comment

Choose a reason for hiding this comment

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

Best solution for now. As discussed:

  • a more robust solution will require refactoring and improving the existing code -> this will be evaluated later.
  • the current CPU consumption makes this quick fix necessary in the short term.

// Nothing to do
try {
while (!writer.isConsumerFinished()) {
Thread.sleep(100);
Copy link

Choose a reason for hiding this comment

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

Quick and dirty but accepted for the current fix

Copy link
Contributor

@antoinebhs antoinebhs left a comment

Choose a reason for hiding this comment

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

Code OK awaiting for a better solution

@jonenst jonenst force-pushed the refactorwritertests branch from 4ac1757 to 64c1314 Compare January 21, 2026 10:22
Base automatically changed from refactorwritertests to main January 21, 2026 10:26
…l to avoid 100%cpu

This runs for about 5s at 100% during normal a big analysis.
@jonenst jonenst force-pushed the writer_poll_sleep branch 2 times, most recently from e4a857c to 49ba5c7 Compare January 26, 2026 10:02
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
33.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@jonenst jonenst merged commit 479bc8b into main Jan 26, 2026
5 of 6 checks passed
@jonenst jonenst deleted the writer_poll_sleep branch January 26, 2026 12:24
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