Scheduler REST API should not return 'NOT_FOUND' as a schedule status

Description

Scheduler REST API should not return 'NOT_FOUND' as a schedule status.
In Scheduler.java, there's an enum ScheduleState, which has a value of 'NOT_FOUND'.
If the schedule truly is not found, we should respond to the http response with 404 response code, and not just a status of 'NOT_FOUND'.

Release Notes

None

Activity

Show:
Ali Anwar
June 2, 2017, 1:50 AM
Andreas Neumann
May 30, 2017, 11:28 PM

The new scheduler never returns that now. The old schedulers may still have code that returns NOT_FOUND but it never gets called. We should clean up the obsolete code.

Fixed

Assignee

Chengfeng Mao

Reporter

Ali Anwar