wujimin commented on a change in pull request #1046: [SCB-1095]Timer task need 
catch all throwable to protected from unexpected error
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1046#discussion_r244440705
 
 

 ##########
 File path: 
service-registry/src/main/java/org/apache/servicecomb/serviceregistry/registry/RemoteServiceRegistry.java
 ##########
 @@ -79,7 +79,13 @@ public void run() {
         TimeUnit.SECONDS);
 
     taskPool.scheduleAtFixedRate(
-        () -> eventBus.post(new PeriodicPullEvent()),
+        () -> {
+          try {
+            eventBus.post(new PeriodicPullEvent());
 
 Review comment:
   better to make eventBus.post safe just like native guava eventBus

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