wecharyu opened a new issue, #13804: URL: https://github.com/apache/gluten/issues/13804
### Backend VL (Velox) ### Bug description Velox x86 CI intermittently aborts during Spark 4.2 ScalaTest suite initialization. `GlutenStructuredStreamingResourceBootstrap` extracts `structured-streaming/**` from the Spark test JAR into a shared `test-classes` directory. Its lock is JVM-local, so parallel shards can race in `Files.copy(..., REPLACE_EXISTING)` and throw `FileAlreadyExistsException`. ### Recent failures Each failed `spark-test-spark42-slow (slow-hive)` job shows the same bootstrap stack frame. - 2026-11-26 [PR #13628](https://github.com/apache/gluten/pull/13628) · [CI attempt 1](https://github.com/wecharyu/incubator-gluten/actions/runs/45747453807/job/139668606199) - 2026-11-25 [PR #13725](https://github.com/apache/gluten/pull/13725) · [CI attempt 1](https://github.com/LuciferYang/gluten/actions/runs/45534651929/job/138940617274) - 2026-11-23 [PR #13658](https://github.com/apache/gluten/pull/13658) · [CI attempt 3](https://github.com/malinjawi/incubator-gluten/actions/runs/44893162193/job/137688005411) ### Expected behavior and fix Parallel shards should initialize reliably from the same fixtures. Unpack the fixtures during Maven `process-test-resources` and remove the runtime bootstrap from the Spark 4.0, 4.1, and 4.2 test modules. Drafted with OpenAI Codex. ### Gluten version _No response_ ### Spark version None ### Spark configurations _No response_ ### System information _No response_ ### Relevant logs ```bash 2026-11-26T03:27:56.6789380Z *** RUN ABORTED *** 2026-11-26T03:27:56.6790406Z java.nio.file.FileAlreadyExistsException: /__w/incubator-gluten/incubator-gluten/gluten-ut/spark42/target/scala-2.13/test-classes/structured-streaming/checkpoint-version-4.0.0/rocksdb/join1/commits/1 2026-11-26T03:27:56.6791599Z at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94) 2026-11-26T03:27:56.6792426Z at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) 2026-11-26T03:27:56.6793155Z at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) 2026-11-26T03:27:56.6793938Z at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) 2026-11-26T03:27:56.6794852Z at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484) 2026-11-26T03:27:56.6795566Z at java.base/java.nio.file.Files.newOutputStream(Files.java:228) 2026-11-26T03:27:56.6796168Z at java.base/java.nio.file.Files.copy(Files.java:3160) 2026-11-26T03:27:56.6797123Z at org.apache.spark.sql.GlutenStructuredStreamingResourceBootstrap$.copyStructuredStreamingResourcesFromJar(GlutenStreamingTestsTraits.scala:73) 2026-11-26T03:27:56.6798754Z at org.apache.spark.sql.GlutenStructuredStreamingResourceBootstrap$.$anonfun$ensureResourcesOnFilesystem$1(GlutenStreamingTestsTraits.scala:40) 2026-11-26T03:27:56.6800153Z at org.apache.spark.sql.GlutenStructuredStreamingResourceBootstrap$.$anonfun$ensureResourcesOnFilesystem$1$adapted(GlutenStreamingTestsTraits.scala:38) 2026-11-26T03:27:56.6800963Z ... ``` -- 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]
