From dde9399b37bffb77da17c025f0b9b673d7088bc6 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 --- .../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 c8af720d1d..55722d74b0 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 @@ -596,7 +596,7 @@ private void logAuditEvent(boolean succeeded, * 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