You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by GitBox <gi...@apache.org> on 2019/08/29 20:40:10 UTC

[GitHub] [storm] dandsager1 commented on a change in pull request #3121: STORM-3479 HB timeout configurable on a topology level

dandsager1 commented on a change in pull request #3121: STORM-3479 HB timeout configurable on a topology level
URL: https://github.com/apache/storm/pull/3121#discussion_r319261994
 
 

 ##########
 File path: storm-server/src/main/java/org/apache/storm/daemon/supervisor/SupervisorUtils.java
 ##########
 @@ -145,6 +146,18 @@ protected LSWorkerHeartbeat readWorkerHeartbeatImpl(Map<String, Object> conf, St
     }
 
     private boolean isWorkerHbTimedOutImpl(int now, LSWorkerHeartbeat whb, Map<String, Object> conf) {
-        return (now - whb.get_time_secs()) > ObjectReader.getInt(conf.get(Config.SUPERVISOR_WORKER_TIMEOUT_SECS));
+        Integer timeoutSecs;
+        if (conf.containsKey(Config.TOPOLOGY_WORKER_TIMEOUT_SECS)) {
 
 Review comment:
   Current code always passes Storm config, but I want to handle the case where a topology config is passed.

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


With regards,
Apache Git Services