cameronlee314 commented on a change in pull request #1344: SAMZA-2510: 
Incorrect shutdown status due to race between runloop and process callback 
thread
URL: https://github.com/apache/samza/pull/1344#discussion_r408446441
 
 

 ##########
 File path: samza-core/src/main/java/org/apache/samza/container/RunLoop.java
 ##########
 @@ -648,8 +648,8 @@ public void run() {
     @Override
     public void onFailure(TaskCallback callback, Throwable t) {
       try {
-        state.doneProcess();
         abort(t);
+        state.doneProcess();
 
 Review comment:
   Could you please put a comment about why `abort` has to go before 
`doneProcess`?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to