From ddc964932817b4c4e4f4dc848dae764d5285e875 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Fri, 12 Oct 2018 15:06:42 -0700 Subject: [PATCH] HDDS-646. TestChunkStreams.testErrorReadGroupInputStream fails. Contributed by Nanda kumar. --- .../test/java/org/apache/hadoop/ozone/om/TestChunkStreams.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestChunkStreams.java b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestChunkStreams.java index 7ff9d63653..177694c2a0 100644 --- a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestChunkStreams.java +++ b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestChunkStreams.java @@ -226,7 +226,7 @@ public int read(byte[] b, int off, int len) throws IOException { // read following 300 bytes, but only 200 left len = groupInputStream.read(resBuf, 340, 260); - assertEquals(5, groupInputStream.getCurrentStreamIndex()); + assertEquals(4, groupInputStream.getCurrentStreamIndex()); assertEquals(0, groupInputStream.getRemainingOfIndex(4)); assertEquals(160, len); assertEquals(dataString, new String(resBuf).substring(0, 500));