zpinto commented on code in PR #2772:
URL: https://github.com/apache/helix/pull/2772#discussion_r1548620399


##########
helix-core/src/main/java/org/apache/helix/model/InstanceConfig.java:
##########
@@ -302,13 +310,14 @@ public void setInstanceDisabledReason(String 
disabledReason) {
    * It will be a no-op when instance is enabled.
    */
   public void setInstanceDisabledType(InstanceConstants.InstanceDisabledType 
disabledType) {
-    if (!getInstanceEnabled()) {
+    if 
(getInstanceOperation().equals(InstanceConstants.InstanceOperation.DISABLE)) {

Review Comment:
   Same as above ^



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

To unsubscribe, e-mail: [email protected]

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