From 6b5285bbcb439944ba6c4701571ffbb00258d5a1 Mon Sep 17 00:00:00 2001 From: Mingliang Liu Date: Tue, 6 Jun 2017 11:06:49 -0700 Subject: [PATCH] HADOOP-14472. Azure: TestReadAndSeekPageBlobAfterWrite fails intermittently. Contributed by Mingliang Liu --- .../fs/azure/TestReadAndSeekPageBlobAfterWrite.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestReadAndSeekPageBlobAfterWrite.java b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestReadAndSeekPageBlobAfterWrite.java index e6219dffb46..41b8386fac8 100644 --- a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestReadAndSeekPageBlobAfterWrite.java +++ b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestReadAndSeekPageBlobAfterWrite.java @@ -275,18 +275,8 @@ public class TestReadAndSeekPageBlobAfterWrite { writesSinceHFlush++; output.flush(); if ((i % SYNC_INTERVAL) == 0) { - long start = Time.monotonicNow(); output.hflush(); writesSinceHFlush = 0; - long end = Time.monotonicNow(); - - // A true, round-trip synchronous flush to Azure must take - // a significant amount of time or we are not syncing to storage correctly. - LOG.debug("hflush duration = " + (end - start) + " msec."); - assertTrue(String.format( - "hflush duration of %d, less than minimum expected of %d", - end - start, MINIMUM_EXPECTED_TIME), - end - start >= MINIMUM_EXPECTED_TIME); } } } finally {