pkuwm opened a new issue #1232:
URL: https://github.com/apache/helix/issues/1232


   **Describe the bug**
   Health check stoppable responds with empty hostname
   
   **To Reproduce**
   Turn off the cluster config: "PERSIST_INTERMEDIATE_ASSIGNMENT": "false"
   Issue REST request: 
`/namespaces/<namespace>/clusters/<cluster>/instances?command=stoppable -d ' 
{"instances": ["instance"], "selection_base": "zone_based", "max_instance": 
"2", "customized_values": "{}"}' -H "Content-Type: application/json"`
   
   Response has empty contents:
   ```
   {
   "instance_stoppable_parallel" : [ ],
   "instance_not_stoppable_with_reasons" : { }
   }
   ```
   
   **Expected behavior**
   ```
   {
   "instance_stoppable_parallel" : [ "instance" ],
   "instance_not_stoppable_with_reasons" : { }
   }
   ```
   **Additional context**
   "PERSIST_INTERMEDIATE_ASSIGNMENT" needs to be turned on so REST API could 
check the instance is already in stable state: IS matches EV, as a condition of 
an instance stoppable.
   


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to