JiangHua Zhu created HDFS-16244:
-----------------------------------
Summary: Add the necessary write lock in
Checkpointer#doCheckpoint()
Key: HDFS-16244
URL: https://issues.apache.org/jira/browse/HDFS-16244
Project: Hadoop HDFS
Issue Type: Bug
Reporter: JiangHua Zhu
When BackupNode is enabled, Checkpointer#doCheckpoint() will start to work.
When the image file needs to be reloaded, there is a call link, for example:
FSImage#reloadFromImageFile()->FSNamesystem#clear()->FSDirectory#reset().
In FSDirectory#reset(), the write lock needs to be acquired in advance, for
example:
void reset() {
writeLock();
try {
......
} finally {
writeUnlock();
}
}
However, no write lock has been acquired before this.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]