You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/07/26 00:02:09 UTC

[jira] [Created] (HDFS-2195) Refactor StorageDirectory to not be an non-static inner class

Refactor StorageDirectory to not be an non-static inner class
-------------------------------------------------------------

                 Key: HDFS-2195
                 URL: https://issues.apache.org/jira/browse/HDFS-2195
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: data-node, name-node
    Affects Versions: 0.23.0
            Reporter: Todd Lipcon
            Assignee: Todd Lipcon


While working on HDFS-1073 I continually found it inconvenient that StorageDirectory is a non-static inner class of Storage. This makes testing more complicated, and also has unintuitive results, like {{sd.read()}} having side effects on a Storage object.

I'd like to try to make it a static inner class so that these side effects are clearer and it's easier to use in isolation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira