Purushottam Sinha created FLINK-41364:
-----------------------------------------
Summary: Web dashboard: Poll checkpoint stats in the Checkpoints
page and flag new data on Refresh
Key: FLINK-41364
URL: https://issues.apache.org/jira/browse/FLINK-41364
Project: Flink
Issue Type: Improvement
Components: Runtime / Web Frontend
Reporter: Purushottam Sinha
The job's Checkpoints page loads its stats once and then only when you click
Refresh, with nothing to show they're out of date. Since FLINK-39566 the
Timeline tab polls on its own, so it can show newer checkpoints than the
Overview, History and Summary tabs.
*Today*
* {{job-checkpoints.component.ts}} loads the stats and config through
{{refresh$}}, which only fires from the Refresh button and when the job changes.
* The Timeline ({{job-checkpoints-timeline.component.ts}}) polls
{{/jobs/:id/checkpoints}} itself while its tab is visible, and keeps its own
copy of the history.
* This came up in the review of FLINK-39566
(https://github.com/apache/flink/pull/28060).
*Proposal*
* The Checkpoints page polls the stats, at the checkpoint interval with the
Timeline's current bounds, and passes the live history to the Timeline, which
drops its own polling.
* The other tabs keep showing the snapshot, and the Refresh button shows "new
data available" when the polled stats differ from it.
* Open question: whether to stop polling for finished jobs, or while no
Checkpoints tab is visible.
*Done when*
* Only one request to {{/jobs/:id/checkpoints}} is in flight per poll, and the
Timeline still updates live.
* Overview, History and Summary change only on Refresh, and the button shows
when newer stats are available.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)