HDFS-14497. Addendum: Write lock held by metasave impact following RPC processing.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit dde9399b37)
This commit is contained in:
He Xiaoqiao 2019-08-27 15:26:21 -07:00 committed by Wei-Chiu Chuang
parent 80392e94b6
commit e29ae7db12
1 changed files with 1 additions and 1 deletions

View File

@ -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