sanha closed pull request #39: [NEMO-112] SonarCloud Bugs and Vulnerabilities 
for Nemo Runtime Common
URL: https://github.com/apache/incubator-nemo/pull/39
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/runtime/common/src/main/java/edu/snu/nemo/runtime/common/message/PersistentConnectionToMasterMap.java
 
b/runtime/common/src/main/java/edu/snu/nemo/runtime/common/message/PersistentConnectionToMasterMap.java
index c56fec64..8a2b8bc5 100644
--- 
a/runtime/common/src/main/java/edu/snu/nemo/runtime/common/message/PersistentConnectionToMasterMap.java
+++ 
b/runtime/common/src/main/java/edu/snu/nemo/runtime/common/message/PersistentConnectionToMasterMap.java
@@ -43,6 +43,7 @@ public PersistentConnectionToMasterMap(final 
MessageEnvironment messageEnvironme
           
messageEnvironment.<ControlMessage.Message>asyncConnect(MessageEnvironment.MASTER_COMMUNICATION_ID,
               
MessageEnvironment.BLOCK_MANAGER_MASTER_MESSAGE_LISTENER_ID).get());
     } catch (InterruptedException | ExecutionException e) {
+      Thread.currentThread().interrupt();
       throw new NodeConnectionException(e);
     }
   }
@@ -64,6 +65,7 @@ public PersistentConnectionToMasterMap(final 
MessageEnvironment messageEnvironme
             MessageEnvironment.MASTER_COMMUNICATION_ID, listenerId).get();
         messageSenders.put(listenerId, createdMessageSender);
       } catch (InterruptedException | ExecutionException e) {
+        Thread.currentThread().interrupt();
         throw new NodeConnectionException(e);
       }
       return createdMessageSender;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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