shahrs87 commented on code in PR #2174: URL: https://github.com/apache/phoenix/pull/2174#discussion_r2136555087
########## phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/HighAvailabilityPolicy.java: ########## @@ -75,20 +75,20 @@ void transitClusterRole(HighAvailabilityGroup haGroup, ClusterRoleRecord oldReco "Doing nothing for Cluster Role Change"); return; } - if ((oldRecord.getRole1() == ACTIVE || oldRecord.getRole1() == ACTIVE_TO_STANDBY) - && newRecord.getRole1() == STANDBY) { - transitStandby(haGroup, oldRecord.getUrl1(), oldRecord.getRegistryType()); + if (oldRecord.getRole1() == ACTIVE && + (newRecord.getRole1() == STANDBY || newRecord.getRole1() == ACTIVE_TO_STANDBY)) { Review Comment: Do we want to check if oldRole is Active? Can we just call transitStandby if the new role is Standby or Active to Standby. -- 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: issues-unsubscr...@phoenix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org