tillrohrmann commented on a change in pull request #8260: 
[FLINK-12312][runtime] Remove CLI command for rescaling
URL: https://github.com/apache/flink/pull/8260#discussion_r278973412
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/rescaling/RescalingHandlers.java
 ##########
 @@ -108,21 +90,23 @@ public RescalingStatusHandler(
                }
 
                @Override
-               protected AsynchronousJobOperationKey 
getOperationKey(HandlerRequest<EmptyRequestBody, 
RescalingStatusMessageParameters> request) {
-                       final JobID jobId = 
request.getPathParameter(JobIDPathParameter.class);
-                       final TriggerId triggerId = 
request.getPathParameter(TriggerIdPathParameter.class);
+               public 
CompletableFuture<AsynchronousOperationResult<AsynchronousOperationInfo>> 
handleRequest(@Nonnull final HandlerRequest<EmptyRequestBody, 
RescalingStatusMessageParameters> request, @Nonnull final RestfulGateway 
gateway) throws RestHandlerException {
+                       throw new RestHandlerException("Rescaling is 
temporarily disabled. See FLINK-12312.", 
HttpResponseStatus.SERVICE_UNAVAILABLE);
 
 Review comment:
   Should be `throw featureDisabledException()`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to