-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-32863][runtime-web] Improve Flink UI's time precision from sec… #23403
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
return `${hours}h ${minutes}m ${seconds}s ${ms}ms`; | ||
} | ||
} | ||
} else { | ||
if (short) { | ||
return `${days}d ${hours}h`; | ||
} else { | ||
return `${days}d ${hours}h ${minutes}m ${seconds}s`; | ||
return `${days}d ${hours}h ${minutes}m ${seconds}s ${ms}ms`; |
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.
nit: I think the explicit ms might be useless for jobs longer than 1h.
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.
Thanks for your suggestion, it has been fixed.
4f3ce28
to
eb76869
Compare
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.
Thanks for the contribution.
Do we also need to adjust the precision of checkpoint related time ?
I have seen some cases that checkpoint completes within 1s then the Checkpoint UI will show same value about start time and end time.
cc @KarmaGYZ
@masteryhx +1 for also adjusting checkpoint precision. |
eb76869
to
da68a22
Compare
@masteryhx Thank you for your suggestion. I have adjusted the precision of checkpoint related time. please review. cc @KarmaGYZ |
…ond level to millisecond level
da68a22
to
de9db2f
Compare
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.
What is the purpose of the change
Improve Flink UI's time precision from second level to millisecond level.
Brief change log
Improve Flink UI's time precision from second level to millisecond level, includes job duration, task duration, task start time, end time.

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation