-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] fix get job metrics get NPE #8093
Conversation
part of fix, to avoid get NullPointException. We still need find why the running job can't be find in the IMAP |
873d44c
to
83abdc5
Compare
@@ -39,4 +39,4 @@ seatunnel: | |||
metric: | |||
enabled: false | |||
logs: | |||
scheduled-deletion-enable: true | |||
scheduled-deletion-enable: false |
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 change this?
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.
If this set to true, it will start the log deletion thread to delete log files, first it will lookup the log folder.
But in CI, log4j is using console print, won't write log to file. https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-e2e-common/src/test/resources/log4j2.properties#L25
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.
cc @corgy-w
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.
This problem does exist. Is there any better way to avoid this problem
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.
Can we disable it in CI? as we won't write log file during CI and there has no test using this config.
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.
Ok for me. The delete expired log file test case config is
Line 42 in e22e077
scheduled-deletion-enable: true |
coordinatorServiceTest | ||
.getFlakeIdGenerator(Constant.SEATUNNEL_ID_GENERATOR_NAME) | ||
.newId(); | ||
Long jobId = System.currentTimeMillis(); |
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?
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.
will revert this
@@ -39,4 +39,4 @@ seatunnel: | |||
metric: | |||
enabled: false | |||
logs: | |||
scheduled-deletion-enable: true | |||
scheduled-deletion-enable: false |
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.
Ok for me. The delete expired log file test case config is
Line 42 in e22e077
scheduled-deletion-enable: true |
Purpose of this pull request
part fix of #8081
Does this PR introduce any user-facing change?
no
How was this patch tested?
exist tests
Check list
New License Guide
release-note
.