Skip to content

Commit

Permalink
HDFS-17393. Remove unused FSNamesytemLock cond in FSNamesystem (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanderXu authored Feb 23, 2024
1 parent 10ab8ab commit a897e74
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@
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;
Expand Down Expand Up @@ -662,7 +661,6 @@ private boolean isFromProxyUser(CallerContext ctx) {
private KeyProviderCryptoExtension provider = null;

private volatile boolean imageLoaded = false;
private final Condition cond;

private final FSImage fsImage;

Expand Down Expand Up @@ -704,7 +702,6 @@ void setImageLoaded() {
try {
setImageLoaded(true);
dir.markNameCacheInitialized();
cond.signalAll();
} finally {
writeUnlock("setImageLoaded");
}
Expand Down Expand Up @@ -875,7 +872,6 @@ static FSNamesystem loadFromDisk(Configuration conf) throws IOException {
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;
Expand Down

0 comments on commit a897e74

Please sign in to comment.