jojochuang commented on code in PR #9155:
URL: https://github.com/apache/ozone/pull/9155#discussion_r2433666697


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -3554,6 +3554,53 @@ public boolean triggerRangerBGSync(boolean noWait) 
throws IOException {
     }
   }
 
+  @Override
+  public boolean triggerSnapshotDefrag(boolean noWait) throws IOException {
+
+    // OM should be leader and ready.
+    if (!isLeaderReady()) {
+      throw new OMException("OM is not leader or not ready", INVALID_REQUEST);

Review Comment:
   use OzoneManagerAdminService interface, and you'll be able to send the 
request to the followers. OzoneManagerProtocol also routes to the leader.



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

Reply via email to