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 108cfbce8c1..a091d194d0e 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 @@ -592,7 +592,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean, * HDFS-14497: Concurrency control when many metaSave request to write * meta to same out stream after switch to read lock. */ - private Object metaSaveLock = new Object(); + private final Object metaSaveLock = new Object(); /** * Notify that loading of this FSDirectory is complete, and