[
https://issues.apache.org/jira/browse/STORM-1556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jark Wu updated STORM-1556:
---------------------------
Description:
https://github.com/apache/storm/blob/master/storm-core/src/clj/org/apache/storm/daemon/nimbus.clj#L520-L521
{code}
(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))))
{code}
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.
was:
https://github.com/apache/storm/blob/master/storm-core/src/clj/org/apache/storm/daemon/nimbus.clj#L520-L521
{code:clojure}
(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))))
{code}
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.
> nimbus.clj/wait-for-desired-code-replication wrong reset for
> current-replication-count-jar in local mode
> --------------------------------------------------------------------------------------------------------
>
> Key: STORM-1556
> URL: https://issues.apache.org/jira/browse/STORM-1556
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-core
> Affects Versions: 1.0.0, 2.0.0
> Reporter: Jark Wu
> Assignee: Jark Wu
> Fix For: 1.0.0, 2.0.0
>
>
> https://github.com/apache/storm/blob/master/storm-core/src/clj/org/apache/storm/daemon/nimbus.clj#L520-L521
> {code}
> (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))))
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)