-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement-13751][Worker] Support real-time pod log collection #13752
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
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #13752 +/- ##
============================================
+ Coverage 39.06% 39.07% +0.01%
- Complexity 4423 4435 +12
============================================
Files 1131 1142 +11
Lines 42121 42033 -88
Branches 4776 4742 -34
============================================
- Hits 16455 16425 -30
+ Misses 23849 23807 -42
+ Partials 1817 1801 -16
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
c922d71 to
536c972
Compare
SbloodyS
left a comment
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.
I've rerun the CI.
Thx, but ... it runs failed, please help rerun it again. |
|
Hi, @ruanwenjun , would you like to double check? |
...k-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
Outdated
Show resolved
Hide resolved
| String msg = (String) podLogOutputFuture.get(); | ||
| if (StringUtils.isEmpty(msg)) { | ||
| // delete pod after successful execution | ||
| ProcessUtils.cancelApplication(taskRequest); |
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.
Why need to cancel when pod log output is empty? Does it necessarily mean that the pod is finished?
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.
The pod is deleted in cancelApplication only when task runs successfully and we collect whole logs (empty msg).
...k-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
Outdated
Show resolved
Hide resolved
…n/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java Co-authored-by: caishunfeng <[email protected]>
|
Hi, @caishunfeng , i've made some changes to make the exception processing logic cleaner. Would you like to help review it again when you're available :D |
caishunfeng
left a comment
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
|
SonarCloud Quality Gate failed. |








Purpose of the pull request
Brief change log
LogWatchto collect real-time pod logs.EMPTY_STRING("") after clear logBuffer to make log format clearer.Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md