HDFS-14497. Addendum: Write lock held by metasave impact following RPC processing.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org> (cherry picked from commitdde9399b37
) (cherry picked from commite29ae7db12
)
This commit is contained in:
parent
d91c68729c
commit
c61c114a3d
|
@ -592,7 +592,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
||||||
* HDFS-14497: Concurrency control when many metaSave request to write
|
* HDFS-14497: Concurrency control when many metaSave request to write
|
||||||
* meta to same out stream after switch to read lock.
|
* 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
|
* Notify that loading of this FSDirectory is complete, and
|
||||||
|
|
Loading…
Reference in New Issue