Jyotirmoy Sinha created HDDS-7607:
-------------------------------------

             Summary: [snapshot] SnapshotDiff command lists unmodified file as 
modified
                 Key: HDDS-7607
                 URL: https://issues.apache.org/jira/browse/HDDS-7607
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Manager
    Affects Versions: HDDS-6517-Snapshot
         Environment: docker-compose on HDDS-6517-Snapshot
            Reporter: Jyotirmoy Sinha


SnapshotDiff command lists unmodified file as modified.

Steps :
 # Create volume and bucket
 # Put key key1 and take snapshot snap1
 # Add new key key2 and take snapshot snap2 (key1 is unchanged)
 # SnapshotDiff lists key2 as added and key1 as modified

{code:java}
bash-4.2$ ozone sh volume create vol1
bash-4.2$ ozone sh bucket create vol1/buck1
bash-4.2$ ozone sh key put vol1/buck1/key1 README.md
bash-4.2$ ozone sh snapshot create vol1/buck1 snap1
bash-4.2$ ozone sh key put vol1/buck1/key2 CONTRIBUTING.md
bash-4.2$ ozone sh snapshot create vol1/buck1 snap2
bash-4.2$ ozone sh snapshot snapshotDiff vol1/buck1 snap1 snap2
Difference between snapshot snap1 and snapshot snap2:
+    key2
M    key1 {code}
The keys captured under both snapshots have same data info :
{code:java}
bash-4.2$ ozone sh key info vol1/buck1/.snapshot/snap1/key1
{
  "volumeName" : "vol1",
  "bucketName" : "buck1",
  "name" : ".snapshot/snap1/key1",
  "dataSize" : 3811,
  "creationTime" : "2022-12-08T09:07:10.450Z",
  "modificationTime" : "2022-12-08T09:07:12.247Z",
  "replicationConfig" : {
    "replicationFactor" : "THREE",
    "requiredNodes" : 3,
    "replicationType" : "RATIS"
  },
  "ozoneKeyLocations" : [ {
    "containerID" : 1,
    "localID" : 109611004723200001,
    "length" : 3811,
    "offset" : 0,
    "keyOffset" : 0
  } ],
  "metadata" : { }
}
bash-4.2$ ozone sh key info vol1/buck1/.snapshot/snap2/key1
{
  "volumeName" : "vol1",
  "bucketName" : "buck1",
  "name" : ".snapshot/snap2/key1",
  "dataSize" : 3811,
  "creationTime" : "2022-12-08T09:07:10.450Z",
  "modificationTime" : "2022-12-08T09:07:12.247Z",
  "replicationConfig" : {
    "replicationFactor" : "THREE",
    "requiredNodes" : 3,
    "replicationType" : "RATIS"
  },
  "ozoneKeyLocations" : [ {
    "containerID" : 1,
    "localID" : 109611004723200001,
    "length" : 3811,
    "offset" : 0,
    "keyOffset" : 0
  } ],
  "metadata" : { }
} {code}
Expected response - key1 should not be listed under modified marker for 
snapshotDiff



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to