jerryshao commented on issue #13158: URL: https://github.com/apache/gravitino/issues/13158#issuecomment-6817326952
This no longer reproduces on current `main`. The scenario in the report used `JobManager.createRuntimeJobTemplate`, which no longer exists. Since #13563, `JobManager` keeps the resources of a runtime job template as URIs, and the job executor localizes them through `JobResourceUtils.localizeJobTemplate`. Before anything is fetched, `checkFileNames` rejects a template in which two different resources would get the same file name (executable and scripts for shell jobs; executable, jars, files and archives for Spark jobs) with an `IllegalArgumentException`. Repeating the same URI is still allowed, and a script that has the file name of a command-name executable is rejected too. I verified this on `main` (`fac8e2d50b`) with a temporary test that follows the steps in the report: - `first/task.sh` as the executable and `second/task.sh` in `scripts` is rejected with "have the same file name task.sh, and would overwrite each other", and nothing is staged. - Two auxiliary scripts with the same basename are rejected the same way. - With different file names, the job runs the requested executable and prints `FIRST`. `TestJobResourceUtils` also covers the same-file-name rejection. Closing as completed. -- 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]
