Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Attempting to cancel a FINISHED/FAILED job now returns 409 Conflict instead of 404 Not Found.
Description
As a user of Flink, I want to be able to cancel a job from an external system in a fault-tolerant way without guessing if the job has already been cancelled.
Currently, the cancel endpoint (PATCH /jobs/:jobid?mode=cancel) will return a 404 if the job is already cancelled. This makes it hard to detect if the job truly doesn't exist, or if it is already in the desired state.
Attachments
Issue Links
- causes
-
FLINK-24472 DispatcherTest is unstable
- Closed
-
FLINK-26045 Document error status codes for the REST API
- Open
- is duplicated by
-
FLINK-9389 Improve error message when cancelling job in state canceled via REST API
- Closed
- links to