Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1465

Eliminate FS image loading code duplication between OIV and FSImage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.22.0
    • None
    • namenode
    • None

    Description

      Konstantin wrote in HADOOP-5467:

      Ideally we should have the same source code reading the fsimage file and then using different visitors to process deserialized data. I think we can achieve that goal by implementing a LoadFSImageVisitor, which will call FSNamesystem methods to add inodes to the directory tree and so on, making it a replacement to FSImage.loadFSImage().
      The LoadFSImageVisitor can be passed to FSImageProcessor same as other visitors Jakob implemented.
      We can do it in a separate Jira, but it should be done before the next release so that we had uniform deserialization in the release.
      This approach will probably also require to move FSImageProcessor code inside server.namenode package. The OfflineImageViewer itself should remain in tools.

      This work never got done, and it caused a problem in HDFS-1435. This JIRA is to track that work.

      Attachments

        Issue Links

          Activity

            People

              jghoman Jakob Homan
              atm Aaron Myers
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: