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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 690b3cd338 HDDS-6748. Intermittent timeout in 
TestECBlockReconstructedInputStream#testReadDataWithUnbuffer (#3416)
690b3cd338 is described below

commit 690b3cd338c426b58c8e2e600bf5369b627521fe
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon May 16 13:03:18 2022 +0200

    HDDS-6748. Intermittent timeout in 
TestECBlockReconstructedInputStream#testReadDataWithUnbuffer (#3416)
---
 .../hadoop/ozone/client/io/TestECBlockReconstructedInputStream.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-hdds/client/src/test/java/org/apache/hadoop/ozone/client/io/TestECBlockReconstructedInputStream.java
 
b/hadoop-hdds/client/src/test/java/org/apache/hadoop/ozone/client/io/TestECBlockReconstructedInputStream.java
index 80243a02d6..4fc237f34a 100644
--- 
a/hadoop-hdds/client/src/test/java/org/apache/hadoop/ozone/client/io/TestECBlockReconstructedInputStream.java
+++ 
b/hadoop-hdds/client/src/test/java/org/apache/hadoop/ozone/client/io/TestECBlockReconstructedInputStream.java
@@ -107,7 +107,7 @@ public class TestECBlockReconstructedInputStream {
 
   @Test
   public void testReadDataByteBufferMultipleStripes() throws IOException {
-    int readBufferSize = random.nextInt(4096);
+    int readBufferSize = 4096;
     // 3 stripes and a partial chunk
     int blockLength = repConfig.getEcChunkSize() * repConfig.getData() * 3
         + repConfig.getEcChunkSize() - 1;
@@ -155,7 +155,7 @@ public class TestECBlockReconstructedInputStream {
   @Test
   public void testReadDataWithUnbuffer() throws IOException {
     // Read buffer is 16kb + 5 bytes so it does not align with stripes exactly
-    int readBufferSize = random.nextInt(1024 * 16 + 5);
+    int readBufferSize = 1024 * 16 + 5;
     // 3 stripes and a partial chunk
     int blockLength = repConfig.getEcChunkSize() * repConfig.getData() * 3
         + repConfig.getEcChunkSize() - 1;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to