[
https://issues.apache.org/jira/browse/STORM-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255555#comment-14255555
]
ASF GitHub Bot commented on STORM-598:
--------------------------------------
GitHub user caofangkun opened a pull request:
https://github.com/apache/storm/pull/355
STORM-598:Newly submitted topologies do not show up on the storm ui cluser
page when the Storm Cluster run out of worker slots
1: Set up a Storm Cluster with 1 Supervisor(4 worker slots)
2: submit topologyA and use 4 workers
3: submit topologyB with 4 workers
topologyB does not but should show up on the storm ui cluster page.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/caofangkun/apache-storm storm-598
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/355.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #355
----
commit 97ae36e42abc961fbcc54dd77c80bafff30dce7e
Author: caofangkun <[email protected]>
Date: 2014-12-22T08:18:08Z
Merge pull request #2 from apache/master
Merge from trunk to caofangkun
commit b2b7f7e0b079f01344f0efcf6a6b17365ff21cc7
Author: caofangkun <[email protected]>
Date: 2014-12-22T08:29:43Z
STORM-598:Newly submitted topologies do not show up on the storm ui cluser
page when the Storm Cluster run out of worker slots
----
> Newly submitted topologies do not show up on the storm ui cluser page when
> the Storm Cluster run out of worker slots
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: STORM-598
> URL: https://issues.apache.org/jira/browse/STORM-598
> Project: Apache Storm
> Issue Type: Bug
> Affects Versions: 0.9.3-rc2
> Reporter: caofangkun
> Assignee: caofangkun
> Priority: Minor
>
> 1: Set up a Storm Cluster with 1 Supervisor(4 worker slots)
> 2: submit topologyA and use 4 workers
> 3: submit topologyB with 4 workers
> topologyB does not but should show up on the storm ui cluster page.
> See Code Line 232:
> https://github.com/apache/storm/blob/master/storm-core/src/clj/backtype/storm/daemon/nimbus.clj#L1232
> If assignment is null, just new Assignmnet with 0 workers and 0 tasks?
> {code:title=nimbus.clj|borderStyle=solid}
> Index: src/clj/backtype/storm/daemon/nimbus.clj
> ===================================================================
> --- src/clj/backtype/storm/daemon/nimbus.clj (revision 4324)
> +++ src/clj/backtype/storm/daemon/nimbus.clj (working copy)
> @@ -1230,7 +1230,9 @@
> bases (topology-bases storm-cluster-state)
> topology-summaries (dofor [[id base] bases :when base]
> (let [assignment (.assignment-info
> storm-cluster-state id nil)
> - topo-summ (TopologySummary.
> id
> + topo-summ ( if (nil?
> assignment)
> + (TopologySummary.
> id (:storm-name base) 0 0 0 (time-delta (:launch-time-secs base))
> (extract-status-str base))
> + (TopologySummary.
> id
> (:storm-name
> base)
> (->>
> (:executor->node+port assignment)
> keys
> @@ -1244,7 +1246,7 @@
> set
> count)
> (time-delta
> (:launch-time-secs base))
> -
> (extract-status-str base))]
> +
> (extract-status-str base)))]
> (when-let [owner (:owner
> base)] (.set_owner topo-summ owner))
> (when-let [sched-status (.get
> @(:id->sched-status nimbus) id)] (.set_sched_status topo-summ sched-status))
> topo-summ
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)