shoothzj commented on code in PR #4490:
URL: https://github.com/apache/bookkeeper/pull/4490#discussion_r1735379168


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeperAdmin.java:
##########
@@ -1553,7 +1553,16 @@ public void triggerAudit()
             throw new UnavailableException("Autorecovery is disabled. So 
giving up!");
         }
 
-        BookieId auditorId = getLedgerAuditorManager().getCurrentAuditor();
+        BookieId auditorId = null;
+        try {
+            auditorId = getLedgerAuditorManager().getCurrentAuditor();
+        } catch (IOException e) {
+            if (e.getCause() instanceof KeeperException.NoNodeException) {
+                LOG.error("Can not find node for {}", 
e.getCause().getMessage());
+                throw new UnavailableException("Autorecovery is disabled. So 
giving up!");

Review Comment:
   ```suggestion
                   throw new UnavailableException("Autorecovery is disabled due 
to missing Zookeeper node. Aborting recovery!");
   ```



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

Reply via email to