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

Make asynchronous blocks deletion lock and unlock durtion threshold configurable

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      I have backport the nice feature HDFS-16043 to our internal branch, it works well in our testing cluster.

      I think it's better to make the fields deleteBlockLockTimeMs and deleteBlockUnlockIntervalTimeMs configurable, so that we can control the lock and unlock duration.

      private final long deleteBlockLockTimeMs = 500;
      private final long deleteBlockUnlockIntervalTimeMs = 100;

      And we should set the default value smaller to avoid blocking other requests long time when deleting someĀ  large directories.

      Attachments

        Issue Links

          Activity

            People

              smarthan Chengwei Wang
              smarthan Chengwei Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h