Skip to content

Conversation

hejufang
Copy link
Contributor

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.
img_v2_72cdb68a-d3dc-4b72-b7c5-4d596893754g

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:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? not documented

@flinkbot
Copy link
Collaborator

flinkbot commented Sep 12, 2023

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Comment on lines 58 to 65
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`;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@masteryhx masteryhx left a 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

@KarmaGYZ
Copy link
Contributor

@masteryhx +1 for also adjusting checkpoint precision.

@hejufang
Copy link
Contributor Author

@masteryhx Thank you for your suggestion. I have adjusted the precision of checkpoint related time. please review. cc @KarmaGYZ
img_v2_a30822c5-c560-4789-9226-ca3899483b7g

Copy link
Contributor

@KarmaGYZ KarmaGYZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@KarmaGYZ KarmaGYZ merged commit 2d74260 into apache:master Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants