Hello,

When I try to stop the job with /jobs/:jobid/stop REST 
endpoint<https://ci.apache.org/projects/flink/flink-docs-release-1.9/monitoring/rest_api.html#jobs-jobid-stop>,
 the state gets drained, even if I pass {"drain":false} in the body of the post 
request. Is the value of drain flag true by default? Why is not getting used 
when I pass {"drain":false}?

And I can also stop a job using 
this<https://ci.apache.org/projects/flink/flink-docs-release-1.9/monitoring/rest_api.html#jobs-jobid-savepoints>
 endpoint /jobs/:jobid/savepoints with {"cancel-job":"true"} in the body. In 
this case there the state is not drained. What is the difference between these 
2 endpoints? Is there a reason to use one over the other?

If I want to stop a job with savepoint but without draining the state which 
endpoint should be used?

Omkar

Reply via email to