Ufuk Celebi created FLINK-9389:

             Summary: Improve error message when cancelling job in state 
canceled via REST API
                 Key: FLINK-9389
                 URL: https://issues.apache.org/jira/browse/FLINK-9389
             Project: Flink
          Issue Type: Improvement
          Components: REST
    Affects Versions: 1.5.0
            Reporter: Ufuk Celebi

- Request job that has been already cancelled
$ curl http://localhost:8081/jobs/b577a914ecdf710d4b93a84105dea0c9
- Cancel job again
$ curl -XPATCH 
{"errors":["Job could not be found."]} (HTTP 404)

Since the actual job resource still exists, I think status code 404 is 
confusing. I think a better message should indicate that the job is already in 

This message was sent by Atlassian JIRA

Reply via email to