This is an automated email from the ASF dual-hosted git repository. ferhui pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new a897e745f598 HDFS-17393. Remove unused FSNamesytemLock cond in FSNamesystem (#6567) a897e745f598 is described below commit a897e745f598ef05fc0c253b2a776100e48688d2 Author: ZanderXu <zande...@apache.org> AuthorDate: Fri Feb 23 15:37:27 2024 +0800 HDFS-17393. Remove unused FSNamesytemLock cond in FSNamesystem (#6567) --- .../java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java index 44b79a3e0eef..075398f000ec 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java @@ -176,7 +176,6 @@ import java.util.TreeMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.function.Supplier; @@ -662,7 +661,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean, private KeyProviderCryptoExtension provider = null; private volatile boolean imageLoaded = false; - private final Condition cond; private final FSImage fsImage; @@ -704,7 +702,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean, try { setImageLoaded(true); dir.markNameCacheInitialized(); - cond.signalAll(); } finally { writeUnlock("setImageLoaded"); } @@ -875,7 +872,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean, conf.get(HADOOP_CALLER_CONTEXT_SEPARATOR_KEY, HADOOP_CALLER_CONTEXT_SEPARATOR_DEFAULT); fsLock = new FSNamesystemLock(conf, detailedLockHoldTimeMetrics); - cond = fsLock.newWriteLockCondition(); cpLock = new ReentrantLock(); this.fsImage = fsImage; --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org