Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Incompatible change, Reviewed
-
Description
The current getContentSummary implementation does not take into account the snapshot path, thus if we have the following ops:
1. create dirs /foo/bar
2. take snapshot s1 on /foo
3. create a 1 byte file /foo/bar/baz
then "du /foo" and "du /foo/.snapshot/s1" can report same results for "bar", which is incorrect since the 1 byte file is not included in snapshot s1.
In the meanwhile, the snapshot diff list size is no longer included in the computation result. This can bring minor incompatibility but is consistent with the change in HDFS-7728.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-13659 Add more test coverage for contentSummary for snapshottable path
- Resolved