You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2022/05/16 11:03:24 UTC

[ozone] branch master updated: HDDS-6748. Intermittent timeout in TestECBlockReconstructedInputStream#testReadDataWithUnbuffer (#3416)

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 <64...@users.noreply.github.com>
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: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org