ritegarg commented on code in PR #2174:
URL: https://github.com/apache/phoenix/pull/2174#discussion_r2127152854


##########
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:
   If we change standby only, we'll be going from cluster1 -> STANDBY to 
cluster1-> ACTIVE_TO_STANDBY  to cluster2 -> STANDBY. Should we close 
connection when we move from STANDBY -> ACTIVE_TO_STANDBY for that 
ParallelConnection use case? 



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

Reply via email to