Skip to content

Commit fbfe7b3

Browse files
committed
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]>
1 parent 0018cbe commit fbfe7b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiRespectsLimits.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ public void testBlockMultiLimits() throws Exception {
154154
Bytes.toBytes("5"), // Buffer
155155
};
156156

157-
// Set the value size so that one result will be less than the MAX_SIE
157+
// Set the value size so that one result will be less than the MAX_SIZE
158158
// however the block being reference will be larger than MAX_SIZE.
159159
// This should cause the regionserver to try and send a result immediately.
160-
byte[] value = new byte[MAX_SIZE - 100];
160+
byte[] value = new byte[1];
161161
Bytes.random(value);
162162

163163
for (byte[] col : cols) {

0 commit comments

Comments
 (0)