You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2022/03/11 07:21:22 UTC

[hbase] branch branch-2.5 updated: HBASE-26761 TestMobStoreScanner (testGetMassive) can OOME (#4204)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new 057bc95  HBASE-26761 TestMobStoreScanner (testGetMassive) can OOME (#4204)
057bc95 is described below

commit 057bc952681253edbb1ec836a0cfee151745c5d7
Author: Andrew Purtell <ap...@apache.org>
AuthorDate: Thu Mar 10 22:44:42 2022 -0800

    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 <zh...@apache.org>
    Signed-off-by: Pankaj Kumar <pa...@apache.org>
---
 .../org/apache/hadoop/hbase/regionserver/TestMobStoreScanner.java  | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMobStoreScanner.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMobStoreScanner.java
index c0d0f67..0356b12 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMobStoreScanner.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMobStoreScanner.java
@@ -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);