mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Xu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MESOS-6988) WebUI redirect doesn't work with stats from /metrics/snapshot
Date Tue, 14 Feb 2017 20:28:41 GMT

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

Yan Xu edited comment on MESOS-6988 at 2/14/17 8:27 PM:
--------------------------------------------------------

Yes in my clusters I was never able to view these stats on a following master.

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?


was (Author: xujyan):
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)

Mime
View raw message