From dc9cca4a83726a386dded9b6818b0218763968e9 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Thu, 10 Mar 2022 11:41:14 -0800 Subject: [PATCH] HBASE-26761 TestMobStoreScanner (testGetMassive) can OOME 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. --- .../org/apache/hadoop/hbase/mob/TestMobStoreScanner.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreScanner.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreScanner.java index f0c442fb0455..e9514350b640 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreScanner.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreScanner.java @@ -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);