[ 
https://issues.apache.org/jira/browse/HDFS-7416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219923#comment-14219923
 ] 

Haohui Mai commented on HDFS-7416:
----------------------------------

I proposes to separate the responsibilities of {{NameNodeRpcServer}}, 
{{FSNameSystem}} and {{FSDirectory}} as the following:

* {{NameNodeRpcServer}}: implements serialization / deserialization of the 
requests and the {{RetryCache}}.
* {{FSNameSystem}}: Implement barriers for safemode and HA, and the durability 
of the namespace (i.e., calling {{logSync()}} at the appropriate places)
* {{FSDirectory}}: Implement the namespace. It persists the operation by 
logging edit logs, but it should never call {{logSync()}}.

> Revisit the abstraction between NameNodeRpcServer, FSNameSystem and 
> FSDirectory
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-7416
>                 URL: https://issues.apache.org/jira/browse/HDFS-7416
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>
> {{NameNodeRpcServer}}, {{FSNameSystem}} and {{FSDirectory}} implement the 
> namespace of the NN. In the current implementation the boundary of these 
> classes are not fully clear.
> This jira tracks the efforts of clarifying the boundaries between these three 
> classes so that they can be more easily maintained in the long term.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to