[ 
https://issues.apache.org/jira/browse/HDFS-16244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

JiangHua Zhu reassigned HDFS-16244:
-----------------------------------

    Assignee: JiangHua Zhu

> 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
>            Assignee: JiangHua Zhu
>            Priority: Major
>
> 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]

Reply via email to