Hi David,
Thanks for the feedback, I guess an alternative approach would be adding
paging and sorting to the checkpointing stats query, however this will
still require 2 REST api calls to get the latest checkpoint details as the
stats endpoint only gives a summary not the details, I am open to adding
another query parameter to the endpoint in the FLIP to get latest X
checkpoint details in one go but I honestly didn't see much of a use case
to have more than one and might complicate how we wanna handle having y
available checkpoints where 0 < y < X.
Let me know your thoughts as well as the rest of the community.


Best Regards
Ahmed Hamdy


On Fri, 18 Jul 2025 at 16:47, David Radley <david_rad...@uk.ibm.com> wrote:

> Hi Ahmed,
> Thanks for submitting this Flip.
> What do you think of having /jobs/:jobid/checkpoints with query params to
> specify sorted criteria and direction and the number of returned elements
> (page size). This would appear to be more of a standard (and flexible) way
> of doing a search. To get the latest you would specify a page size of 1
> with a time sort criteria and descending direction.
>  WDYT?
>       Warm regards, David.
>
>
> From: Ahmed Hamdy <hamdy10...@gmail.com>
> Date: Friday, 18 July 2025 at 15:48
> To: dev@flink.apache.org <dev@flink.apache.org>
> Subject: [EXTERNAL] [DISCUSS][FLIP-536] Add latest checkpoint details
> endpoint to Rest API
> Hi Devs,
> I would like to start a discussion on FLIP-536[1] for adding a "latest"
> checkpoint details endpoint to Flink's REST Api. This is a common case I
> have personally encountered when integrating components with Flink using
> the Rest API.
> Let me know your thoughts.
>
>
> 1-
>
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-536%3A+Add+latest+checkpoint+details+endpoint+to+Rest+API
> Best Regards
> Ahmed Hamdy
>
> Unless otherwise stated above:
>
> IBM United Kingdom Limited
> Registered in England and Wales with number 741598
> Registered office: Building C, IBM Hursley Office, Hursley Park Road,
> Winchester, Hampshire SO21 2JN
>

Reply via email to