Yashaswini G A created HDDS-17791:
-------------------------------------

             Summary: Optimized FSO snapdiff reports empty diffList despite 
fileTable delta file count shows 1, legacy path reports CREATE
                 Key: HDDS-17791
                 URL: https://issues.apache.org/jira/browse/HDDS-17791
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Yashaswini G A


Optimized snapshot diff ({{{}ozone.om.snapshot.diff.optimized.enabled=true{}}}) 
can return an empty change list for FILE_SYSTEM_OPTIMIZED (FSO) buckets even 
when two consecutive snapshots clearly differ in namespace content (e.g. a new 
key appears between snapshots). The legacy snapdiff path on the same snapshot 
pair typically reports the expected CREATE entries. OM logs show the optimized 
pipeline computing a non‑empty fileTable delta while producing entry count: 0.


h2. Steps to reproduce
 # Create a volume and an FSO bucket.
 # Confirm {{ozone.om.snapshot.diff.optimized.enabled}} is {{true}} (e.g. 
{{{}ozone getconf -confKey ...{}}}).
 # Write key {{.../a}} (or any path under a prefix).
 # Create snapshot S1.
 # Write a new key {{.../b}} (same prefix).
 # Create snapshot S2.
 # Verify content differs:
 ** {{ozone sh key list volume/bucket/.snapshot/S1}} (and/or prefix filter) → a 
only
 ** {{ozone sh key list volume/bucket/.snapshot/S2}} → a and b
 # Run snapdiff: {{{}ozone sh snapshot diff volume/bucket S1 S2{}}}, then fetch 
report ({{{}--get-report{}}} / {{-r}} with {{{}--json{}}}).

h2. Expected result
 * Snapdiff report includes at least one change (e.g. CREATE for {{{}b{}}}).
 * OM log: optimized report generation ends with entry count ≥ 1 consistent 
with the fileTable delta.

h2. Actual result
 * CLI JSON: {{{}diffList: []{}}}, {{{}jobStatus: DONE{}}}, often {{reason: 
"Report is dependency unordered."}}
 * OM logs (optimized path), for the same job:
 ** {{Computed Delta SST File Set for table 'fileTable', file count: 1}} (or 
similar non‑zero delta)
 ** Short {{MergeJoinSnapDiffWriter}} classify / merge-join timings (~0-2 ms)
 ** {{Generated optimized snapshot diff report, entry count: 0}}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to