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

Make block increment deletion number configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 2.10.0, 3.2.0, 3.0.4, 3.1.2
    • None
    • None
    • Reviewed

    Description

      When NN deletes a large directory, it will hold the write lock long time. For improving this, we remove the blocks in a batch way. So that other waiters have a chance to get the lock. But right now, the batch number is a hard-coded value.

        static int BLOCK_DELETION_INCREMENT = 1000;
      

      We can make this value configurable, so that we can control the frequency of other waiters to get the lock chance.

      Attachments

        1. HDFS-13831.branch-3.0.001.patch
          5 kB
          Wei-Chiu Chuang
        2. HDFS-13831.004.patch
          5 kB
          Ryan Wu
        3. HDFS-13831.003.patch
          5 kB
          Ryan Wu
        4. HDFS-13831.002.patch
          5 kB
          Ryan Wu
        5. HDFS-13831.001.patch
          4 kB
          Ryan Wu

        Issue Links

          Activity

            People

              jianliang.wu Ryan Wu
              linyiqun Yiqun Lin
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: