Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-1556

nimbus.clj/wait-for-desired-code-replication wrong reset for current-replication-count-jar in local mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0
    • 1.0.0, 2.0.0
    • storm-core
    • None

    Description

      https://github.com/apache/storm/blob/master/storm-core/src/clj/org/apache/storm/daemon/nimbus.clj#L520-L521

      (if (not (ConfigUtils/isLocalMode conf))
          (reset! current-replication-count-conf  (get-blob-replication-count (ConfigUtils/masterStormConfKey storm-id) nimbus)))
      (reset! current-replication-count-code  (get-blob-replication-count (ConfigUtils/masterStormCodeKey storm-id) nimbus))
      (reset! current-replication-count-jar  (get-blob-replication-count (ConfigUtils/masterStormJarKey storm-id) nimbus))))
      

      We do not go to count the number of jar-replication in local mode, but will count the number of conf-replication. So is it a mistake that current-replication-count-conf and current-replication-count-jar in the wrong place?

      If it is a bug, I will create a PR soon.

      Attachments

        Activity

          People

            jark Jark Wu
            jark Jark Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: