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

Quota is not preserved in snapshot INode

    XMLWordPrintableJSON

Details

    Description

      Quota feature is not preserved during snapshot creation, this causes INodeDirectory#metadataEquals to ALWAYS return true. Therefore, snapshotDiff will ALWAYS return the snapshot root as modified, even if the quota is set before the snapshot creation:

      $ hdfs snapshotDiff /diffTest s0 .
      Difference between snapshot s0 and current directory under directory /diffTest:
      M	.
      

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              smeng Siyao Meng
              Votes:
              1 Vote for this issue
              Watchers:
              1 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 - 1.5h
                  1.5h