You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "wombatu-kun (via GitHub)" <gi...@apache.org> on 2026/06/30 09:44:41 UTC
[PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
wombatu-kun opened a new pull request, #19119:
URL: https://github.com/apache/hudi/pull/19119
### Describe the issue this Pull Request addresses
The Azure CI job "UT FT common & other modules" (UT_FT_10) intermittently fails during its initial `mvn clean install` reactor build with `java.lang.OutOfMemoryError: Java heap space`, surfaced as a generic `[ERROR] An unknown compilation problem occurred` from the maven-compiler-plugin. The OOM happens while compiling a large packaging bundle (the stack trace is in `jdk.nio.zipfs.ZipFileSystem.initCEN`), before any test runs, so it is a spurious infra failure unrelated to the code under test. Recent occurrences: buildId 15037 (on PR #19117, compiling `hudi-cli-bundle`) https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15037 and buildId 14704 (on PR #19004, compiling `hudi-kafka-connect-bundle`).
### Summary and Changelog
javac runs in-process in this job's single `MAVEN_OPTS='-Xmx8g'` JVM (`JavaxToolsCompiler.compileInProcess` is in the OOM stack). Under a parallel reactor build, concurrent maven-shade of large bundles plus javac reading huge classpaths via zipfs perform heavy native zip work that holds JNI-critical sections and blocks the GC (the log shows "Retried waiting for GCLocker too often" right before the OOM). Garbage then accumulates uncollected and the 8g heap is exhausted even though the live set is small (a full `clean install` peaks around 2.4 GB locally). A previous `-T 2` cap (#19008) reduced but did not eliminate the issue; it recurred on a different bundle.
- Change the prepended parallelism cap for the UT_FT_10 install from `-T 2` to `-T 1` so Maven (first `-T` wins) serializes this single job's reactor install, removing the concurrent JNI-critical contention that starves the GC.
- Update the explanatory comment to describe the GCLocker mechanism and the `-T 2` recurrence.
- No other jobs are affected; they keep the shared `-T 3` from `MVN_OPTS_INSTALL`.
### Impact
CI-only change. It makes the UT_FT_10 install phase single-threaded, slightly increasing that phase's wall-clock time but well within the job's 120-minute timeout. No production code or test changes.
### Risk Level
low. CI configuration only; no change to Hudi runtime or test code. The fix is exercised by this PR's own Azure run.
### Documentation Update
none
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Enough context is provided in the sections above
- [ ] Adequate tests were added if applicable
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "wombatu-kun (via GitHub)" <gi...@apache.org>.
wombatu-kun commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4849510803
As long as Azure is still the gating CI here, this GCLocker-induced OOM keeps intermittently failing unrelated PRs (recent hits: #19117 and #19004), so I would lean toward merging this now to stop the spurious red builds. It is a one-line, CI-only change (`-T 2` -> `-T 1`) with no impact on runtime or test code, and it can simply be removed along with the Azure pipeline whenever that is actually retired. So there is very little downside to landing it in the meantime.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4842853851
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15039",
"triggerID" : "0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15039)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4842069982
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15039",
"triggerID" : "0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15039)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "voonhous (via GitHub)" <gi...@apache.org>.
voonhous commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4842852889
We might be deprecating the Azure runtime soon from what i recall. Might need to check with @yihua again.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4842033699
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0a9b5f0e0f7334e57d4e84c554cf4ce77ded9d0e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "wombatu-kun (via GitHub)" <gi...@apache.org>.
wombatu-kun commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4894513142
> @wombatu-kun does this increase CI runtime in any meaningful ways?
@vinothchandar @voonhous the full reply is above. so, could we merge it if you don't have any other questions on this fix?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "vinothchandar (via GitHub)" <gi...@apache.org>.
vinothchandar merged PR #19119:
URL: https://github.com/apache/hudi/pull/19119
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "wombatu-kun (via GitHub)" <gi...@apache.org>.
wombatu-kun commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4862024523
Short answer: it slows only that one job's compile phase, not the parts that dominate CI time, and it is far cheaper than the OOM re-runs it prevents.
Scope: the `-T 1` cap applies only to the `mvn clean install` reactor step of UT_FT_10, and only that job - every other job keeps the shared `-T 3`, and the three `mvn test` invocations (UT + FT) that make up the bulk of UT_FT_10's wall-clock are unchanged. The only thing that gets slower is that job's reactor compile/install, going 2 threads -> 1.
I measured that step locally (full reactor `clean install -DskipTests`, `MAVEN_OPTS=-Xmx8g`, same `-Dscala-2.12 -Dspark3.5 -Dflink1.18` profiles as CI, warm `.m2`, 3 samples each; `thrift`/metaserver profiles dropped since I have no local thrift, which excludes only the small hudi-metaserver modules, not the bundle shade work). On a 12-core box:
| Config | Samples (mm:ss) | Median |
|--------|-----------------|--------|
| `-T 2` (old) | 6:08, 5:20, 4:40 | 5:20 |
| `-T 1` (new) | 7:15, 8:14, 7:52 | 7:52 |
So the install step itself is ~2.5 min (~45%) slower. Two reasons that is not meaningful for total CI time:
- It hits only the compile/install phase; the UT + FT test runs that dominate the job, and all other jobs, are unchanged.
- It is dwarfed by the failure it prevents - the GCLocker OOM fails the whole job and forces a full re-run (recent hits #19117, #19004), repeating the entire compile + UT + FT sequence.
These are local numbers on 12 cores; on a lower-core agent `-T 2`'s advantage should be smaller, so the real CI delta is likely under this. Net: a small, single-job compile slowdown in exchange for removing a recurring full-job failure.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "wombatu-kun (via GitHub)" <gi...@apache.org>.
wombatu-kun closed pull request #19119: fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM
URL: https://github.com/apache/hudi/pull/19119
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "vinothchandar (via GitHub)" <gi...@apache.org>.
vinothchandar commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4860909582
+1 we can land, as long as azure is gating. This way devs are not hitting this wall daily
@voonhous do you want to review this
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(ci): cap UT_FT_10 reactor install to -T 1 to avoid GCLocker-induced compile OOM [hudi]
Posted by "vinothchandar (via GitHub)" <gi...@apache.org>.
vinothchandar commented on PR #19119:
URL: https://github.com/apache/hudi/pull/19119#issuecomment-4860912674
@wombatu-kun does this increase CI runtime in any meaningful ways?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org