chiacyu commented on code in PR #8140:
URL: https://github.com/apache/ozone/pull/8140#discussion_r2009963747


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/RepairTool.java:
##########
@@ -53,8 +53,11 @@ protected Component serviceToBeOffline() {
 
   @Override
   public final Void call() throws Exception {
+    final Component service = serviceToBeOffline();
     if (!dryRun) {
-      confirmUser();
+      if (service == null) { // offline tool
+        confirmUser();

Review Comment:
   thanks for the reminder, just a little bit confuse about that..., would fix 
soon.



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