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

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


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 3316b483654 HBASE-27161 Improve TestMultiRespectsLimits (#4586)
3316b483654 is described below

commit 3316b4836541a8e2d671160ac6a1ba781fbb67a4
Author: Andrew Purtell <[email protected]>
AuthorDate: Tue Jul 12 11:19:35 2022 -0700

    HBASE-27161 Improve TestMultiRespectsLimits (#4586)
    
    TestMultiRespectLimits submits a put with an empty value. This appears
    to not be what was intended. Instead, use a single byte.
    
    Signed-off-by: Duo Zhang <[email protected]>
---
 .../java/org/apache/hadoop/hbase/client/TestMultiRespectsLimits.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiRespectsLimits.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiRespectsLimits.java
index e04963b11d1..0f8dda63912 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiRespectsLimits.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiRespectsLimits.java
@@ -146,10 +146,10 @@ public class TestMultiRespectsLimits {
       Bytes.toBytes("5"), // Buffer
     };
 
-    // Set the value size so that one result will be less than the MAX_SIE
+    // Set the value size so that one result will be less than the MAX_SIZE
     // however the block being reference will be larger than MAX_SIZE.
     // This should cause the regionserver to try and send a result immediately.
-    byte[] value = new byte[MAX_SIZE - 100];
+    byte[] value = new byte[1];
     Bytes.random(value);
 
     for (byte[] col : cols) {

Reply via email to