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

ZanderXu updated HDFS-17398:
----------------------------
    Description: 
Implement the FGL lock for the FSNamesystemLock.

 

We will use two global locks to implement this FGL lock in this milestone, 
FSLock and BMLock.

 

The FSLock is used to protect some operations:
 * Directory tree-related operations.
 * FSEditLog related operations.
 * ErasureCodingPolicy related operations.

The BMLock is used to protect some operations:
 * Block related operations
 * DN related operations

 

Both FSLock and BMLock are needed for some operations:
 * The operations involves both directory tree and block
 * The operations involves both directory tree and dn
 * The operations involves both FSEdits and block

 

The lock order should be:
 * Acquire the FSLock
 * Acquire the BMLock
 * Release the BMLock
 * Release the FSLock

 

This FGL class implements the 

 

  was:
Implement the FGL lock for the FSNamesystemLock.

 


> [FGL] Implement the FGL lock for FSNamesystemLock
> -------------------------------------------------
>
>                 Key: HDFS-17398
>                 URL: https://issues.apache.org/jira/browse/HDFS-17398
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: ZanderXu
>            Priority: Major
>
> Implement the FGL lock for the FSNamesystemLock.
>  
> We will use two global locks to implement this FGL lock in this milestone, 
> FSLock and BMLock.
>  
> The FSLock is used to protect some operations:
>  * Directory tree-related operations.
>  * FSEditLog related operations.
>  * ErasureCodingPolicy related operations.
> The BMLock is used to protect some operations:
>  * Block related operations
>  * DN related operations
>  
> Both FSLock and BMLock are needed for some operations:
>  * The operations involves both directory tree and block
>  * The operations involves both directory tree and dn
>  * The operations involves both FSEdits and block
>  
> The lock order should be:
>  * Acquire the FSLock
>  * Acquire the BMLock
>  * Release the BMLock
>  * Release the FSLock
>  
> This FGL class implements the 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to