You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ctest (Jira)" <ji...@apache.org> on 2020/04/17 18:02:00 UTC
[jira] [Updated] (HBASE-24207) Wrong argument input order in
TestCompactorMemLeak#assertMajorCompactionOK
[ https://issues.apache.org/jira/browse/HBASE-24207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ctest updated HBASE-24207:
--------------------------
Attachment: HBASE-24207.000.patch
Status: Patch Available (was: Open)
> 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
> Priority: Minor
> Labels: compaction, regionserver, test
> Attachments: HBASE-24207.000.patch
>
>
> 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)