Skip to content

Commit e46fbed

Browse files
apurtellApache9
authored andcommitted
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 <[email protected]> Signed-off-by: Pankaj Kumar <[email protected]>
1 parent 0b879f2 commit e46fbed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMobStoreScanner.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,15 @@ public void testGetMassive() throws Exception {
166166
byte[] bigValue = new byte[25*1024*1024];
167167

168168
Put put = new Put(row1);
169+
Bytes.random(bigValue);
169170
put.addColumn(family, qf1, bigValue);
171+
table.put(put);
172+
put = new Put(row1);
173+
Bytes.random(bigValue);
170174
put.addColumn(family, qf2, bigValue);
175+
table.put(put);
176+
put = new Put(row1);
177+
Bytes.random(bigValue);
171178
put.addColumn(family, qf3, bigValue);
172179
table.put(put);
173180

0 commit comments

Comments
 (0)