Ctest created HBASE-24207:
-----------------------------
Summary: Wrong argument input order in
TestCompactorMemLeak#assertMajorCompactionOK
Key: HBASE-24207
URL: https://issues.apache.org/jira/browse/HBASE-24207
Project: HBase
Issue Type: Bug
Components: Compaction, regionserver, test
Affects Versions: 2.2.4
Reporter: Ctest
In TestCompactorMemLeak#assertMajorCompactionOK, the input argument order for
Assert.assertEquals(long expected, long actual) is wrong. This produced
confusion when the test failed.
Below is the original code:
{code:java}
Assert.assertEquals(regions.size(), 1);
HRegion region = regions.get(0);
Assert.assertEquals(region.getStores().size(), 1);
HStore store = region.getStore(FAMILY);
Assert.assertEquals(store.getStorefilesCount(), 1);
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)