You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2019/12/12 14:43:00 UTC
[jira] [Commented] (HBASE-23567) TestReplicationStatus Suspicious
Assertion
[ 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)