Skip to content

fix: allow concurrent JMH cases in the lab adapter - #25

Merged
rasros merged 1 commit into
mainfrom
fix/concurrent-jmh-cases
Nov 16, 2026
Merged

rasros merged 1 commit into
mainfrom
fix/concurrent-jmh-cases

Conversation

@rasros

@rasros rasros commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What changed

  • The lab adapter passes -Djmh.ignoreLock=true to the JMH coordinator process.
  • util-bench/README.md notes why the lock is ignored.

Why

A lab worker with four vCPUs runs three cases at once. Each case starts its own JMH coordinator, and all of them contend for the single jmh.lock in the shared temp directory, so all but one exit with Unable to acquire the JMH lock. In util-sweep job 11993 this failed 191 of 231 cases, and the random pass/fail flips triggered confirmation jobs on every commit. Each case already reserves its own CPU, so concurrent runs are intended.

Testing

  • Reproduced locally on Java 25: three concurrent status-sweep cases gave one success and two lock failures before the change.
  • After the change, six concurrent status-sweep cases all succeed.
  • ./gradlew :util-bench:check :util-bench:lintDocs :util-bench:installDist passes.

@rasros
rasros merged commit 0c8bf22 into main Nov 16, 2026
1 check passed
@rasros
rasros deleted the fix/concurrent-jmh-cases branch November 16, 2026 21:07
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.

1 participant