Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix 16211][java-task] Remove ExecutePath in buildJarCommand() to fix Java Task in Jar Mode #16237

Closed
wants to merge 2 commits into from

Conversation

lanxing2
Copy link
Contributor

@lanxing2 lanxing2 commented Jun 28, 2024

Pull Request Branch

fix-issue-16211

Pull Request Content

Purpose of the pull request

Fix issue 16211
The comment says "duplicated with #15902"
And should be fixed by pr 15906
But I have tested and I think PR 15906 only fix the JavaTask Java Mode, Jar Mode still have bug
ResourceAbsolutePathInLocal already have the ExecutePath, need remove it in buildJarCommand() method
Also update the UnitTest
Please check my reply in issue 16211
I deployed the latest code in apache/dolphinscheduler dev branch in my own cluster and run JavaTask in Jar Mode and it failed
After deployed my code in my own cluster, run JavaTask in Jar Mode and it succeed

Brief change log

[Fix issue 16211] Remove ExecutePath in buildJarCommand() to fix Java Task in Jar Mode

Verify this pull request

This pull request is already covered by existing tests, such as (please describe tests).

  • Updated JavaTaskTest to verify the change.
  • *Build dolphinscheduler-task-java and deployed to my own cluster and tested end to end, please check the comment in issue 16211 about the log before and after this pull request *
  • Run mvn spotless:apply and check the code format

(or)

Pull Request Code Style

Already run the mvn spotless:apply and checked no problem with the code style

Pull Request Notice

Pull Request Notice

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

Update JavaTask.java Fix buildJarCommand()
ExecutePath already exist in ResourceAbsolutePath, no need to add it again
ResourceAbsolutePathInLocal contains the executePath, need update the Unit test accordingly. Also need this update for JavaTask buildJarCommand Change
Copy link

boring-cyborg bot commented Jun 28, 2024

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

@lanxing2 lanxing2 changed the title Fix issue 16211 [Fix 16211][java-task] Remove ExecutePath in buildJarCommand() to fix Java Task in Jar Mode Jun 28, 2024
@lanxing2
Copy link
Contributor Author

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

I updated the pull request format, hope this would satisfy the PR format

@lanxing2 lanxing2 closed this Jun 28, 2024
@lanxing2 lanxing2 deleted the fix-issue-16211 branch June 28, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant