You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ctest (Jira)" <ji...@apache.org> on 2020/04/17 18:01:00 UTC
[jira] [Created] (HBASE-24207) Wrong argument input order in
TestCompactorMemLeak#assertMajorCompactionOK
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)