[
https://issues.apache.org/jira/browse/MESOS-6750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15730835#comment-15730835
]
haosdent commented on MESOS-6750:
---------------------------------
Thanks a lot! Let me verify your patch :- )
> 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)