hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Yiqun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-9951) Improve the Node key definition in OfflineImageReconstructor
Date Mon, 14 Mar 2016 07:14:33 GMT
Lin Yiqun created HDFS-9951:

             Summary: Improve the Node key definition in OfflineImageReconstructor
                 Key: HDFS-9951
                 URL: https://issues.apache.org/jira/browse/HDFS-9951
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Lin Yiqun
            Assignee: Lin Yiqun
            Priority: Minor

In class {{OfflineImageReconstructor}}, it uses many {{SectionProcessors}} to process xml
files and load the subtree of the XML into a Node structure. But there are lots of places
that node removes key by directively writing value in methods rather than define them first.
Like this:
Node expiration = directive.removeChild("expiration");
We could improve this to define them in Node and them invoked like this way:
Node expiration=directive.removeChild(Node.CACHE_MANAGER_SECTION_EXPIRATION);
And it will be good to manager node key's name in the future.

This message was sent by Atlassian JIRA

View raw message