-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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] Remove ExecutePath in buildJarCommand to fix Java Task in Jar Mode #16238
Conversation
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
Changed the branch name and requested a new PR |
Good catch, sorry for missing this, we can use directly abosolute path is enough. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #16238 +/- ##
============================================
- Coverage 41.18% 41.17% -0.02%
+ Complexity 5097 5096 -1
============================================
Files 1391 1391
Lines 43838 43837 -1
Branches 4652 4652
============================================
- Hits 18056 18050 -6
- Misses 24013 24018 +5
Partials 1769 1769 ☔ View full report in Codecov by Sentry. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Awesome work, congrats on your first merged pull request! |
… Jar Mode (apache#16238) (cherry picked from commit d42ac96)
Pull Request Branch
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).
(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