Jyotirmoy Sinha created HDDS-7511:
-------------------------------------

             Summary: [snapshot] List Snapshot does not list snapshots created 
from 2nd bucket in a volume
                 Key: HDDS-7511
                 URL: https://issues.apache.org/jira/browse/HDDS-7511
             Project: Apache Ozone
          Issue Type: Task
          Components: Ozone Manager
    Affects Versions: 1.3.0
         Environment: docker-compose on HDDS-6517-Snapshot
h4.
            Reporter: Jyotirmoy Sinha


List Ozone snapshot is not listing the snapshots from 2nd bucket created in a 
volume.

Steps :
 # Create volume vol1
 # Create bucket buck1 in volume vol1 and put key
 # Create snapshot of buck1
 # List snapshot of buck1, all snapshots are listed
 # Create bucket buck2 in volume vol1 and put key
 # Create snapshot of buck2
 # List snapshot of buck2, it returns an empty list

{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 NOTICE.txt
bash-4.2$ ozone sh snapshot create vol1/buck1 snap1
bash-4.2$ ozone sh snapshot ls vol1/buck1
[ {
  "volumeName" : "vol1",
  "bucketName" : "buck1",
  "name" : "snap1",
  "creationTime" : 1668767914043,
  "snapshotStatus" : "SNAPSHOT_ACTIVE",
  "snapshotID" : "c37f37f8-de24-4d91-828a-8e3c8dad34e3",
  "snapshotPath" : "vol1/buck1",
  "checkpointDir" : "-c37f37f8-de24-4d91-828a-8e3c8dad34e3"
} ]
bash-4.2$
bash-4.2$ ozone sh bucket create vol1/buck2
bash-4.2$ ozone sh key put vol1/buck2/key1 CONTRIBUTING.md
bash-4.2$ ozone sh --verbose snapshot create vol1/buck2 snap2
Volume Name : vol1
Bucket Name : buck2
created snapshot 'vol1/buck2 snap2'.
bash-4.2$ ozone sh snapshot ls vol1/buck2
[ ] {code}
If we do an fs -ls in buck2/.snapshot it is displayed properly :
{code:java}
bash-4.2$ ozone  fs -ls ofs://om/vol1/buck2/.snapshot/snap2
Found 1 items
-rw-rw-rw-   3 hadoop hadoop      10567 2022-11-18 10:39 
ofs://om/vol1/buck2/.snapshot/snap2/key1 {code}
Expected Response - List snapshot of buck2 should list all snapshots created 
for it



--
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