smengcl commented on code in PR #9155:
URL: https://github.com/apache/ozone/pull/9155#discussion_r2433567099
##########
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:
You are right. This is copy pasta from the previous method. Should be
removed.
--
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]