Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-23567

TestReplicationStatus Suspicious Assertion

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

          ServerMetrics sm = metrics.getLiveServerMetrics().get(server);
          List<ReplicationLoadSource> rLoadSourceList = sm.getReplicationLoadSourceList();
          // check SourceList still only has one entry
          assertTrue("failed to get ReplicationLoadSourceList", (rLoadSourceList.size() == 2));
          assertEquals(PEER_ID2, rLoadSourceList.get(0).getPeerID());
      

      Claims that the sourceList should only have one entry and asserts that the one entry is PEER_ID2 but it also asserts that the list should have two items in it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: