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

    https://github.com/apache/storm/pull/1744#discussion_r89805725
  
    --- Diff: storm-core/src/clj/org/apache/storm/ui/core.clj ---
    @@ -963,11 +963,11 @@
          "uptimeSeconds" uptime
          "host" host
          "port" port
    -     "emitted" (Utils/nullToZero (.get_emitted cas))
    -     "transferred" (Utils/nullToZero (.get_transferred cas))
    +     "emitted" (if-let [em (.get_emitted cas)] em 0)
    --- End diff --
    
    But cas is a thrift object and technically emitted is marked as optional, 
so being defensive I left the nullToZero in place, but I couldn't make 
nullToZero work with a Double and return a Long decided to just leave the code 
the same as before, but go to a pure clojure version that will be replaced with 
core.clj is translated.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to