clebertsuconic commented on code in PR #6037:
URL: https://github.com/apache/activemq-artemis/pull/6037#discussion_r2512631839


##########
artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/SimpleManagement.java:
##########
@@ -101,8 +101,15 @@ public long getCurrentTimeMillis() throws Exception {
       return simpleManagementLong("broker", "getCurrentTimeMillis");
    }
 
-   public boolean isReplicaSync() throws Exception {
-      return simpleManagementBoolean("broker", "isReplicaSync");
+   public boolean isReplicaSync() {
+      try {
+         return simpleManagementBoolean("broker", "isReplicaSync");
+      } catch (Throwable e) {
+         // in case of a failure we return false..
+         // so the caller may keep retrying until it's true
+         logger.warn(e.getMessage(), e);
+         return false;

Review Comment:
   I'm reverting the change, and i will do it in the test.. thanks Justin



-- 
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]
For further information, visit: https://activemq.apache.org/contact


Reply via email to