This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new a1616ae8a2 HDDS-12485. Repair tool should only print user warning for
offline commands (#8140)
a1616ae8a2 is described below
commit a1616ae8a2435be8cee7f1a22392e3b85d034088
Author: Chia-Chuan Yu <[email protected]>
AuthorDate: Tue Mar 25 15:19:35 2025 +0800
HDDS-12485. Repair tool should only print user warning for offline commands
(#8140)
---
.../tools/src/main/java/org/apache/hadoop/ozone/repair/RepairTool.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/RepairTool.java
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/RepairTool.java
index e3255a4a42..c6a718ee30 100644
---
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/RepairTool.java
+++
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/RepairTool.java
@@ -53,7 +53,8 @@ protected Component serviceToBeOffline() {
@Override
public final Void call() throws Exception {
- if (!dryRun) {
+ final Component service = serviceToBeOffline();
+ if (!dryRun && service != null) { // offline tool
confirmUser();
}
if (isServiceStateOK()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]