eciuca opened a new pull request, #8253:
URL: https://github.com/apache/hadoop/pull/8253
### Description of PR
Child JVMs spawned by Maven's failsafe plugin during integration tests do
not receive the `--add-opens` JVM options needed for Java 17+ compatibility.
**Two fixes:**
1. **`hadoop-project/pom.xml`** — Added
`<argLine>${maven-surefire-plugin.argLine}</argLine>` to the
`maven-failsafe-plugin` configuration in `<pluginManagement>`. This ensures all
failsafe usages across the project (hadoop-aws, hadoop-azure, hadoop-gcp,
hadoop-client-integration-tests) inherit the `--add-opens` options by default,
matching the existing surefire configuration.
2. **`hadoop-cloud-storage-project/hadoop-tos/pom.xml`** — Fixed a bug where
two `<argLine>` elements existed in the same surefire `<configuration>` block.
Since `argLine` is a scalar `String` parameter, the second element
(`-Xmx2048m`) silently overwrote the first one that included
`${maven-surefire-plugin.argLine}`, causing all JPMS options to be lost in 8
forked test JVMs. Merged into a single
`<argLine>${maven-surefire-plugin.argLine} -Xmx2048m</argLine>`.
### How was this patch tested?
- Verified that `maven-failsafe-plugin` in `hadoop-project/pom.xml`
previously had no `argLine` configuration (only version was set in
`<pluginManagement>`)
- Confirmed that the parallel-tests profiles in hadoop-aws, hadoop-azure,
hadoop-gcp already set `argLine` explicitly with
`${maven-surefire-plugin.argLine}`, but the sequential-tests profiles and
hadoop-client-integration-tests did not
- Confirmed that Maven's XML-to-Java mapping for scalar `String` parameters
uses last-element-wins semantics for duplicate elements
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
### AI Tooling
- [x] The PR includes the phrase "Contains content generated by Claude Code"
- [x] My use of AI contributions follows the ASF legal policy
https://www.apache.org/legal/generative-tooling.html
--
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]