From e29ae7db1258f08339cf0f53968fce6f98ada3ac 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) --- .../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 d7006540fad..0e6a8c4c897 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 @@ -594,7 +594,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