You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Yan Xu (JIRA)" <ji...@apache.org> on 2017/02/14 20:27:41 UTC

[jira] [Commented] (MESOS-6988) WebUI redirect doesn't work with stats from /metrics/snapshot

    [ https://issues.apache.org/jira/browse/MESOS-6988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15866578#comment-15866578 ] 

Yan Xu commented on MESOS-6988:
-------------------------------

Yes the I saw that inside the function {{leadingMasterURL}}:

{code:title=}
    var leadingMasterURL = function(path) {
      // Use current location as address in case we could not find the
      // leading master.
      var address = location.hostname + ':' + location.port;
      if ($scope.state && $scope.state.leader_info) {
          address = $scope.state.leader_info.hostname + ':' +
                    $scope.state.leader_info.port;
      }

      return '//' + address + path;
    }
{code}

When I use a breakpoint on the if statement if shows that {{$scope.state}} is undefined therefore the method returns the current following master address?

> WebUI redirect doesn't work with stats from /metrics/snapshot
> -------------------------------------------------------------
>
>                 Key: MESOS-6988
>                 URL: https://issues.apache.org/jira/browse/MESOS-6988
>             Project: Mesos
>          Issue Type: Bug
>          Components: webui
>    Affects Versions: 1.1.0
>            Reporter: Yan Xu
>            Assignee: haosdent
>
> The issue described in MESOS-6446 is still not fixed in 1.1.0. (Especially for non-leading masters)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)