From c61c114a3db021d1d86f290ce8fb6185582ed986 Mon Sep 17 00:00:00 2001 From: He Xiaoqiao Date: Tue, 27 Aug 2019 15:26:21 -0700 Subject: [PATCH] HDFS-14497. Addendum: Write lock held by metasave impact following RPC processing. Signed-off-by: Wei-Chiu Chuang (cherry picked from commit dde9399b37bffb77da17c025f0b9b673d7088bc6) (cherry picked from commit e29ae7db1258f08339cf0f53968fce6f98ada3ac) --- .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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