From 2c1158e8586440174a8b5dbe32f7b92dc651b151 Mon Sep 17 00:00:00 2001 From: Ashutosh Gupta Date: Wed, 23 Nov 2022 17:47:39 +0000 Subject: [PATCH] HADOOP-18531. Fix assertion failure in ITestS3APrefetchingInputStream (#5149) This patch MUST be applied to all branches containing HADOOP-18378 so as to ensure reliable test runs. Contributed by Ashutosh Gupta --- .../apache/hadoop/fs/s3a/ITestS3APrefetchingInputStream.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3APrefetchingInputStream.java b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3APrefetchingInputStream.java index 7d131ca6ea3..b1ab4afce47 100644 --- a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3APrefetchingInputStream.java +++ b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3APrefetchingInputStream.java @@ -173,8 +173,6 @@ public class ITestS3APrefetchingInputStream extends AbstractS3ACostTest { } // Verify that once stream is closed, all memory is freed verifyStatisticGaugeValue(ioStats, STREAM_READ_ACTIVE_MEMORY_IN_USE, 0); - assertThatStatisticMaximum(ioStats, - ACTION_EXECUTOR_ACQUIRED + SUFFIX_MAX).isGreaterThan(0); } @Test @@ -211,8 +209,6 @@ public class ITestS3APrefetchingInputStream extends AbstractS3ACostTest { } verifyStatisticGaugeValue(ioStats, STREAM_READ_BLOCKS_IN_FILE_CACHE, 0); verifyStatisticGaugeValue(ioStats, STREAM_READ_ACTIVE_MEMORY_IN_USE, 0); - assertThatStatisticMaximum(ioStats, - ACTION_EXECUTOR_ACQUIRED + SUFFIX_MAX).isGreaterThan(0); } @Test