taowenjun opened a new pull request, #13387:
URL: https://github.com/apache/seatunnel/pull/13387

   ### Purpose
   Yes, I am contributing to Apache SeaTunnel.
   
   Closes #13386.
   
   Spark cluster starters currently write `plugins.tar.gz` to a shared 
installation path. Concurrent submissions from the same installation can write 
or upload that same file. This change lets schedulers assign a separate 
existing staging directory to each submission through the optional 
`SEATUNNEL_PLUGIN_TARBALL_DIR` environment variable.
   
   ### Changes and compatibility
   - Apply the directory override to Spark 2 and the shared Spark 3/3.5 
starter; keep the archive basename and `--files` mechanism unchanged.
   - Preserve the existing path for unset, empty or whitespace-only values, and 
preserve client-mode behavior.
   - Fail command generation if the configured location is missing or is not a 
directory; normal file creation propagates permission errors.
   - Leave directory creation and cleanup to the caller. Different concurrent 
submissions must use different directories. No automatic isolation occurs when 
callers reuse one directory.
   - Do not delete the archive on starter JVM exit: it must remain available 
for the following `spark-submit` process and uploads.
   - Extend both existing starter test classes and English/Chinese Spark 
documentation. Add the repository's existing JUnit platform launcher as a Spark 
2 test-only dependency so its tests run with the standard Surefire 
configuration; runtime dependencies are unchanged.
   
   ### Validation
   Based on upstream dev `7029c0969a9f6ea9add7a11f9262f42fe2ce9da9`.
   
   On JDK 17, scoped to the two changed starter modules:
   - `mvn -o -q -pl 
seatunnel-core/seatunnel-spark-starter/seatunnel-spark-starter-common,seatunnel-core/seatunnel-spark-starter/seatunnel-spark-2-starter
 spotless:apply test -Dtest=SparkStarterTest`: **16 tests passed** (12 shared 
starter, 4 Spark 2).
   - `mvn -o -q -pl 
seatunnel-core/seatunnel-spark-starter/seatunnel-spark-starter-common,seatunnel-core/seatunnel-spark-starter/seatunnel-spark-2-starter
 -DskipTests verify`: **passed**, including compilation, packaging and format 
checks.
   - Separate concurrent real starter JVM processes for both variants: 
generated commands reference distinct archives in paths containing spaces; all 
four tarballs were read back successfully and remained present after starter 
exit.
   - `git diff --check` and staged LF/UTF-8 checks passed.
   
   The local Maven Wrapper offline invocation was blocked during reactor model 
loading by an uncached Google Cloud BOM in unrelated modules; the scoped checks 
above passed using installed Maven. No real cluster upload, Spark data job or 
full-project E2E run is claimed.
   


-- 
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]

Reply via email to