[
https://issues.apache.org/jira/browse/HBASE-23567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16994753#comment-16994753
]
David Mollitor commented on HBASE-23567:
----------------------------------------
Should also be....
{code:java}
assertEquals("failed to get ReplicationLoadSourceList", 2,
rLoadSourceList.size());
{code}
> TestReplicationStatus Suspicious Assertion
> ------------------------------------------
>
> Key: HBASE-23567
> URL: https://issues.apache.org/jira/browse/HBASE-23567
> Project: HBase
> Issue Type: Task
> Reporter: David Mollitor
> Priority: Minor
>
> {code:java|TestReplicationStatus.java}
> 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());
> {code}
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)