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>
This commit is contained in:
Andrew Purtell 2022-03-10 22:44:42 -08:00 committed by Duo Zhang
parent 0b879f2054
commit e46fbedf56

View File

@ -166,8 +166,15 @@ public class TestMobStoreScanner {
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);