You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/08/24 18:21:11 UTC

[GitHub] [helix] pkuwm commented on issue #1232: Stoppable rest response is empty because of instance check exception

pkuwm commented on issue #1232:
URL: https://github.com/apache/helix/issues/1232#issuecomment-679288631


   Add formatted reason of instance check to API response so users have a clear idea of the reason if PERSIST_INTERMEDIATE_ASSIGNMENT is not turned on.
   ```
   curl -XPOST http://localhost:8100/admin/v2/namespaces/namespacce/clusters/cluster/instances\?command\=stoppable -d ' {"instances": ["instance"], "selection_base": "zone_based", "max_instance": "2", "customized_values": "{}"}' -H "Content-Type: application/json"
   {
     "instance_stoppable_parallel" : [ ],
     "instance_not_stoppable_with_reasons" : {
       "instance" : [ "HELIX:INVALID_CONFIG" ]
     }
   }
   ```
   Server log will have the reason logged: Cluster config PERSIST_INTERMEDIATE_ASSIGNMENT is not turned on, which is required for instance stability check.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org