Skip to content
Permalink
Browse files
HBASE-26761 TestMobStoreScanner (testGetMassive) can OOME (#4204)
Change the timing of the test but not the objective by storing three large
MOB values into the row with three separate puts, each randomizing the
data. Increases running time of the testGetMassive case 2x but avoids OOME
in the test environment where the OOME was consistently reproductable.

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Pankaj Kumar <pankajkumar@apache.org>
  • Loading branch information
apurtell committed Mar 11, 2022
1 parent f3faa26 commit 71ff3ec32371e1580155080fff6c4e5535b6ff85
Showing 1 changed file with 7 additions and 0 deletions.
@@ -164,8 +164,15 @@ public void testGetMassive() throws Exception {
byte[] bigValue = new byte[25*1024*1024];

Put put = new Put(row1);
Bytes.random(bigValue);
put.addColumn(family, qf1, bigValue);
table.put(put);
put = new Put(row1);
Bytes.random(bigValue);
put.addColumn(family, qf2, bigValue);
table.put(put);
put = new Put(row1);
Bytes.random(bigValue);
put.addColumn(family, qf3, bigValue);
table.put(put);

0 comments on commit 71ff3ec

Please sign in to comment.