Skip to content

Commit 6ad23a5

Browse files
committed
HBASE-26468 Region Server doesn't exit cleanly incase it crashes.
1 parent 8d3562c commit 6ad23a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/util/ServerCommandLine.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,13 @@ public static void logProcessInfo(Configuration conf) {
141141
}
142142

143143
/**
144-
* Parse and run the given command line. This may exit the JVM if
145-
* a nonzero exit code is returned from <code>run()</code>.
144+
* Parse and run the given command line. This will exit the JVM with
145+
* the exit code returned from <code>run()</code>.
146146
*/
147147
public void doMain(String args[]) {
148148
try {
149149
int ret = ToolRunner.run(HBaseConfiguration.create(), this, args);
150-
if (ret != 0) {
151-
System.exit(ret);
152-
}
150+
System.exit(ret);
153151
} catch (Exception e) {
154152
LOG.error("Failed to run", e);
155153
System.exit(-1);

0 commit comments

Comments
 (0)