Anurag-S1ngh opened a new pull request, #19268:
URL: https://github.com/apache/iceberg/pull/19268

   ## Summary
   
   - The JMH harness hard-coded `-Xmx32g` and `failOnError = true`, and set 
`jvmArgs` directly without the shared module-opens list used by the test tasks. 
On JDK 17 the Spark read-path benchmarks fail at warm-up with 
`IllegalAccessException: sun.util.calendar.ZoneInfo`.
   - Reuse the shared `extraJvmArgs` set for JMH, and make the heap and 
`failOnError` configurable while keeping the current defaults.
   
   ## Changes
   
   - `jmh.gradle`: build `jvmArgs` from `-Xmx${jmhHeap}` (default `32g`) plus 
the shared `extraJvmArgs` module-opens list.
   - `jmh.gradle`: read `failOnError` from `-PjmhFailOnError`, default `true`.
   
   ## Testing
   
   - JDK 17: `./gradlew help :iceberg-core:jmhClasses` passes.
   - JDK 17: `./gradlew :iceberg-core:jmh 
-PjmhIncludeRegex=MetricsConfigBenchmark -PjmhHeap=2g` runs the benchmark and 
generates the JMH report, confirming the configurable heap and the shared JVM 
args are applied.
   - Defaults are unchanged for existing users: heap `32g`, `failOnError` true 
unless the properties are set.
   - `spotlessApply` run.
   
   Closes #17330
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to