ctubbsii commented on code in PR #5796:
URL: https://github.com/apache/accumulo/pull/5796#discussion_r2283987855


##########
server/compactor/src/main/java/org/apache/accumulo/compactor/Compactor.java:
##########
@@ -1064,7 +1064,13 @@ public void run() {
 
   public static void main(String[] args) throws Exception {
     try (Compactor compactor = new Compactor(new ConfigOpts(), args)) {
-      compactor.runServer();
+      try {
+        compactor.runServer();
+      } catch (Exception e) {
+        System.err.println("Compactor died, exception thrown from runServer.");
+        e.printStackTrace();
+        LOG.error("Compactor died, exception thrown from runServer.", e);
+      }

Review Comment:
   This is fine but causes it to exit with a normal exit code, 0. Normally an 
exception being thrown through the main class would cause a non-zero exit code.



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

Reply via email to