Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2186

Pulse WAN information may indicate that senders are unhealthy even if they are not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • wan
    • None

    Description

      The WAN information tile on the pulse homepage displays either a green or or orange triangle indicating the status of the connection to the remote side.

      That tile is populated from DistributedSystemMXBean.viewRemoteClusterStatus.

      Unfortunately, that method iterators over the gateway senders of all members and adds them to a the status map by remote DS id. That means that it will only keep the connected status last sender that was added. If that last sender was a secondary, it's entirely normal that it might not be connected

        
      public Map<String, Boolean> viewRemoteClusterStatus() {
          if (mapOfGatewaySenders.values().size() > 0) {
            Map<String, Boolean> senderMap = new HashMap<String, Boolean>();
            Iterator<GatewaySenderMXBean> it = mapOfGatewaySenders.values().iterator();
            while (it.hasNext()) {
              GatewaySenderMXBean bean = it.next();
              Integer dsId = bean.getRemoteDSId();
              if (dsId != null) {
                senderMap.put(dsId.toString(), bean.isConnected());
              }
      ...
      

      This method should probably only look at the primary gateway sender's status.

      Attachments

        Activity

          People

            upthewaterspout Dan Smith
            upthewaterspout Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: