[ 
https://issues.apache.org/jira/browse/STORM-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018548#comment-15018548
 ] 

ASF GitHub Bot commented on STORM-885:
--------------------------------------

Github user d2r commented on a diff in the pull request:

    https://github.com/apache/storm/pull/838#discussion_r45504914
  
    --- Diff: storm-core/src/clj/backtype/storm/util.clj ---
    @@ -1062,6 +1062,22 @@
     (defn hashmap-to-persistent [^HashMap m]
       (zipmap (.keySet m) (.values m)))
     
    +(defn retry-on-exception
    +  "Retries specific function on exception based on retries count"
    +  [tries task-description f & args]
    +  (let [res (try {:value (apply f args)}
    +              (catch Exception e
    +                (if (= 0 tries)
    +                  (throw e)
    +                  {:exception e})))]
    +    (if (:exception res)
    +      (do 
    +        (log-error (:exception res) (str "Failed to " task-description ". 
Will make [" tries "] more attempts."))
    +        (recur (dec tries) task-description f args))
    +      (do 
    +        (log-debug (str "Successful " task-description "."))
    +        (:value res)))))
    --- End diff --
    
    Let's name the var `retries` instead of `tries`, since it calls the 
function `tries + 1` times.


> Heartbeat Server (Pacemaker)
> ----------------------------
>
>                 Key: STORM-885
>                 URL: https://issues.apache.org/jira/browse/STORM-885
>             Project: Apache Storm
>          Issue Type: Improvement
>          Components: storm-core
>            Reporter: Robert Joseph Evans
>            Assignee: Kyle Nusbaum
>
> Large highly connected topologies and large clusters write a lot of data into 
> ZooKeeper.  The heartbeats, that make up the majority of this data, do not 
> need to be persisted to disk.  Pacemaker is intended to be a secure 
> replacement for storing the heartbeats without changing anything within the 
> heartbeats.  In the future as more metrics are added in, we may want to look 
> into switching it over to look more like Heron, where a metrics server is 
> running for each node/topology.  And can be used to aggregate/per-aggregate 
> them in a more scalable manor.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to