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

Notify Namenode missing or new block on disk as soon as possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.4.0
    • datanode
    • None
    • Reviewed

    Description

      When a bock file is deleted on disk or copied back to the disk, the DirectoryScanner can find the change, but the namenode know the change only untill the next full report. And in big cluster the period of full report is set to long time invterval.

      Call notifyNamenodeDeletedBlock if block files are deleted and call notifyNamenodeReceivedBlock if the block files is found agian. So the Incremental block report can send the change to namenode in next heartbeat.

      Attachments

        1. HDFS-15764.001.patch
          6 kB
          Yang Yun
        2. HDFS-15764.002.patch
          10 kB
          Yang Yun
        3. HDFS-15764.003.patch
          10 kB
          Yang Yun
        4. HDFS-15764.004.patch
          13 kB
          Yang Yun
        5. HDFS-15764.005.patch
          13 kB
          Yang Yun
        6. HDFS-15764.006.patch
          14 kB
          Yang Yun
        7. HDFS-15764.007.patch
          14 kB
          Yang Yun

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: