Github user sachingoel0101 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/750#discussion_r45636371
  
    --- Diff: 
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/WebRuntimeMonitor.java
 ---
    @@ -188,9 +189,12 @@ public WebRuntimeMonitor(
     
                        // Cancel a job via GET (for proper integration with 
YARN this has to be performed via GET)
                        .GET("/jobs/:jobid/yarn-cancel", handler(new 
JobCancellationHandler()))
    -                   // DELETE is the preferred way of cancelling a job 
(Rest-conform)
    +                   // DELETE is the preferred way of canceling a job 
(Rest-conform)
                        .DELETE("/jobs/:jobid", handler(new 
JobCancellationHandler()))
     
    +                   // stop a job
    +                   .DELETE("/jobs/:jobid/stop", handler(new 
JobStoppingHandler()))
    +
    --- End diff --
    
    `DELETE` is more conforming to the REST framework. `GET` is just a 
workaround to support yarn when working on the AM proxy page. Yarn doesn't 
transfer anything besides `GET` to the AM's http server.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to