xiangforever2014 commented on PR #23253: URL: https://github.com/apache/flink/pull/23253#issuecomment-1720713759
@masteryhx Many thanks for your comment~ Here are my requirements: 1. support triggering savepoint in detached mode, so the cli process can return quickly and will not occupy the resource for a long time; 2. get the status of detach savepoint information through platform, that is whether the detach savepoint has been made successfully, or failed, or producing at the time. To your question: With non-detach savepoint, we could know whether this savepoint has been successfully triggered and made from the CLI output, but in detach mode, if we just change code in flink-clients, that is, just send the request and return, we could not know whether the savepoint triggered this time is in which status from the current REST API, at least we need to know the savepoint id, in this case, we could use api "/jobs/:jobid/checkpoints/details/:checkpointid" to get the savepoint status. But in this case, the client needs to wait for the savepoint id msg from jm, that makes the client needs to wait for a while. So in this pr, I support triggering savepoint in detach mode as following: 1. client generates a savepoint-id, which is produced by RandomUUID, and when triggering savepoint in detach mode, this info will put into the request body; 2. when jm receives the request, it will check the savepoint-id info, if this field is set, it will directly use this as the savepoint id instead of generating a id like savepoint-xxxxxx. In this way, client does not need to wait for any message, it triggers the detach savepoint and generates a savepoint id, then its job is finished. If we want to know the status of the detach savepoint, we could use the dump-pending-savepoint api and get all savepoint ids, then compare the savepoint id generated by client. Hope to get your suggestion, thank you~ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
