From 1d05d5fb3741ff282c8cea80fb69a28a87e33c0e Mon Sep 17 00:00:00 2001 From: yikf <13468507104@163.com> Date: Fri, 11 Jun 2021 11:35:52 +0800 Subject: [PATCH] revert HADOOP-17728. --- .../src/main/java/org/apache/hadoop/fs/FileSystem.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java index 057382bed9cde..b92237fc9703f 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java @@ -4004,19 +4004,13 @@ public void cleanUp() { * Background action to act on references being removed. */ private static class StatisticsDataReferenceCleaner implements Runnable { - /** - * Represents the timeout period expires for remove reference objects from - * the STATS_DATA_REF_QUEUE when the queue is empty. - */ - private static final int REF_QUEUE_POLL_TIMEOUT = 10000; @Override public void run() { while (!Thread.interrupted()) { try { StatisticsDataReference ref = - (StatisticsDataReference)STATS_DATA_REF_QUEUE. - remove(REF_QUEUE_POLL_TIMEOUT); + (StatisticsDataReference)STATS_DATA_REF_QUEUE.remove(); ref.cleanUp(); } catch (InterruptedException ie) { LOGGER.warn("Cleaner thread interrupted, will stop", ie);