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

Cache finalized replica info during datanode shutdown for fast restarting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • datanode
    • None

    Description

      HDFS-7928 persist the whole volume map on the disk and let the datanode read that file and create the volume map during startup. This significantly improve the datanode startup time.
      But it not works for any cases. For example, if datanode is killed, it's no chance to save the volume map.
      Add a shutdown hook to make sure the volume map is saved during shutdown.
      If the datanode is terminated by kill or other methods, we only reload the finalized replca from cache. It's is safe because the DirectoryScanner will run soon to correct possible missmatch.

      Attachments

        1. HDFS-15059.patch
          13 kB
          Yang Yun

        Issue Links

          Activity

            People

              hadoop_yangyun Yang Yun
              hadoop_yangyun Yang Yun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: