Commit 33e5796
Add sleep to stress test acker spin loop
The acker thread in testHighConcurrencyStress() spun in a tight
loop with no sleep when there was nothing new to acknowledge,
wasting CPU. Add Thread.sleep(1) in the else branch, matching
the pattern already used in testConcurrentAddAndCumulativeAck().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6d30696 commit 33e5796
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
615 | 617 | | |
616 | | - | |
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
| |||
0 commit comments