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

CachingGetSpaceUsed#used should use LongAdder after DN splits lock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.3.6
    • None
    • datanode
    • None

    Description

      After HDFS-15382, dn uses fine-grained lock.

      So we should better use LongAdder instead of AtomicLong in class CachingGetSpaceUsed.

      Attachments

        Activity

          People

            zhanghaobo farmmamba
            zhanghaobo farmmamba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: