chanjarster commented on a change in pull request #599: SCB-1604 modify 
InterruptedException
URL: https://github.com/apache/servicecomb-pack/pull/599#discussion_r349448804
 
 

 ##########
 File path: 
alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/kafka/KafkaMessagePublisher.java
 ##########
 @@ -44,6 +44,7 @@ public void publish(BaseEvent data) {
         try {
             kafkaTemplate.send(topic, data.getGlobalTxId(), data).get();
         } catch (InterruptedException | ExecutionException | 
UnsupportedOperationException e) {
+            Thread.currentThread().interrupt();
 
 Review comment:
   Only `InterruptedException` should use `Thread.currentThread().interrupt()`

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