You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by GitBox <gi...@apache.org> on 2021/03/30 21:16:05 UTC

[GitHub] [samza] Sanil15 opened a new pull request #1487: SAMZA-2644: ContainerLaunchUtil swallows exception and does not even log them if an exception occurs while setting up a Samza container or invoking run on it

Sanil15 opened a new pull request #1487:
URL: https://github.com/apache/samza/pull/1487


   ***Feature/Issue:***
   - ContainerLaunchUtil swallows exceptions while setting up and running a container, does not even log the Exception
   
   ***Changes:***
   - Log exception when there is an exception thrown in setting up the container or running it
   
   ***API Changes: None***
   
   ***Upgrade instructions: None***
    


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [samza] Sanil15 commented on a change in pull request #1487: SAMZA-2644: ContainerLaunchUtil swallows exception and does not even log them if an exception occurs while setting up a Samza container or invoking run on it

Posted by GitBox <gi...@apache.org>.
Sanil15 commented on a change in pull request #1487:
URL: https://github.com/apache/samza/pull/1487#discussion_r604444879



##########
File path: samza-core/src/main/java/org/apache/samza/runtime/ContainerLaunchUtil.java
##########
@@ -174,6 +174,8 @@ private static void run(
         log.error("Container stopped with Exception. Exiting process now.", containerRunnerException);
         System.exit(1);
       }
+    } catch (Throwable e) {
+      log.error("Container stopped with Exception. ", containerRunnerException);

Review comment:
       that is for heartbeat monitor, that exit defines a self kill when container cannot reach to am, the orphan case




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [samza] kw2542 commented on a change in pull request #1487: SAMZA-2644: ContainerLaunchUtil swallows exception and does not even log them if an exception occurs while setting up a Samza container or invoking run on it

Posted by GitBox <gi...@apache.org>.
kw2542 commented on a change in pull request #1487:
URL: https://github.com/apache/samza/pull/1487#discussion_r604442216



##########
File path: samza-core/src/main/java/org/apache/samza/runtime/ContainerLaunchUtil.java
##########
@@ -174,6 +174,8 @@ private static void run(
         log.error("Container stopped with Exception. Exiting process now.", containerRunnerException);
         System.exit(1);
       }
+    } catch (Throwable e) {
+      log.error("Container stopped with Exception. ", containerRunnerException);

Review comment:
       Do we need `System.exit(1)` like what `if (containerRunnerException != null)` do?




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [samza] Sanil15 merged pull request #1487: SAMZA-2644: ContainerLaunchUtil swallows exception and does not even log them if an exception occurs while setting up a Samza container or invoking run on it

Posted by GitBox <gi...@apache.org>.
Sanil15 merged pull request #1487:
URL: https://github.com/apache/samza/pull/1487


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org