[
https://issues.apache.org/jira/browse/MESOS-6750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15756686#comment-15756686
]
haosdent commented on MESOS-6750:
---------------------------------
Refer to
https://github.com/apache/mesos/blob/1.1.x/src/webui/master/static/js/controllers.js#L245-L252,
I think we could use {{$scope.staging_tasks}} directly.
> Metrics on the Agent view of the Mesos web UI flickers between empty and
> non-empty states
> -----------------------------------------------------------------------------------------
>
> Key: MESOS-6750
> URL: https://issues.apache.org/jira/browse/MESOS-6750
> Project: Mesos
> Issue Type: Bug
> Components: webui
> Affects Versions: 1.0.2, 1.1.0
> Reporter: Joseph Wu
> Assignee: haosdent
> Priority: Minor
> Attachments: patch.diff
>
>
> When viewing a specific agent on the Mesos WebUI, the metrics panel on the
> left side of the UI will alternate between having values and being empty.
> This is due to two different callbacks that run:
> * This one sets the metrics into the {{$scope.state}} variable:
> https://github.com/apache/mesos/blob/1.1.x/src/webui/master/static/js/controllers.js#L564-L577
> * This one blows away the {{$scope.state}} in favor of a new one:
> https://github.com/apache/mesos/blob/1.1.x/src/webui/master/static/js/controllers.js#L521
> The metrics callback should simply assign to a different variable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)