Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12333

Add documentation for all async operations through REST

    XMLWordPrintableJSON

    Details

      Description

      Exit code 2 seen ( after 5 minutes ) when 

      curl  --header "Content-Type: application/json" --request POST --data '{"target-directory":"***********","cancel-job":true}'    https://***************/jobs/00000000000000000000000000000000/savepoints

      It seems that when a REST call is 

      "Triggered the cancel with savepoint command from via the REST call. This command is an asynchronous operation which produces a result (the savepoint path). In order to deliver asynchronous results to the caller, Flink waits before shutting down until they are delivered or until it times out after 5 minutes."

       

      That implies that one has to execute 

      curl  --request GET   https://**********/jobs/00000000000000000000000000000000/savepoints/[Request_id]
      

      on the request_id returned by the first call ( within 5 minutes ) , for a clean exit ( code 0 ) 

       

      Please add this life cycle in flink documentation , in all probability here https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/rest_api.html#jobs-jobid-savepoints

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yunta Yun Tang
                Reporter:
                vishalsantv Vishal Santoshi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m