ritegarg commented on code in PR #2274:
URL: https://github.com/apache/phoenix/pull/2274#discussion_r2353557571
##########
phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/HAGroupStoreClient.java:
##########
@@ -638,4 +692,189 @@ private boolean
isUpdateNeeded(HAGroupStoreRecord.HAGroupState currentHAGroupSta
return ((System.currentTimeMillis() - currentHAGroupStoreRecordMtime)
> waitTime);
}
+ // ========== HA Group State Change Subscription Methods ==========
+
+ /**
+ * Subscribe to be notified when a specific state transition occurs.
+ *
+ * @param fromState the state to transition from
+ * @param toState the state to transition to
+ * @param clusterType whether to monitor local or peer cluster
+ * @param listener the listener to notify when the transition occurs
+ */
+ public void subscribeToTransition(HAGroupState fromState, HAGroupState
toState,
Review Comment:
Removed specific transition methods and also updated test cases
--
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]