Skip to content

Commit 47532b7

Browse files
committed
HADOOP-19049. Fix StatisticsDataReferenceCleaner classloader leak
1 parent b2fac14 commit 47532b7

File tree

1 file changed

+1
-0
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs

1 file changed

+1
-0
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4077,6 +4077,7 @@ private interface StatisticsAggregator<T> {
40774077
STATS_DATA_CLEANER.
40784078
setName(StatisticsDataReferenceCleaner.class.getName());
40794079
STATS_DATA_CLEANER.setDaemon(true);
4080+
STATS_DATA_CLEANER.setContextClassLoader(null);
40804081
STATS_DATA_CLEANER.start();
40814082
}
40824083

0 commit comments

Comments
 (0)