You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by li...@apache.org on 2021/06/11 07:38:15 UTC
[hadoop] branch branch-3.3 updated: Revert "HDFS-16033 Fix issue of
the StatisticsDataReferenceCleaner cleanUp (#3042)"
This is an automated email from the ASF dual-hosted git repository.
liuml07 pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 91bcfbd Revert "HDFS-16033 Fix issue of the StatisticsDataReferenceCleaner cleanUp (#3042)"
91bcfbd is described below
commit 91bcfbd72e615867e0958224d2de377c8bff6eb7
Author: Mingliang Liu <li...@apache.org>
AuthorDate: Fri Jun 11 00:35:41 2021 -0700
Revert "HDFS-16033 Fix issue of the StatisticsDataReferenceCleaner cleanUp (#3042)"
This reverts commit 8c0f9480549a4e7fa7de02c9bf73bccb0381f22a.
---
.../src/main/java/org/apache/hadoop/fs/FileSystem.java | 9 +--------
1 file changed, 1 insertion(+), 8 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 e3c8d0d..528f6c2 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
@@ -4013,19 +4013,12 @@ public abstract class FileSystem extends Configured
* 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);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org