Karn Kumar Singh created HDDS-11384:
---------------------------------------
Summary: [Snapshot] The new snapshot could not be found after
renaming the old snapshot
Key: HDDS-11384
URL: https://issues.apache.org/jira/browse/HDDS-11384
Project: Apache Ozone
Issue Type: Bug
Components: Snapshot
Reporter: Karn Kumar Singh
*Repro step:*
# Create a snapshot.
# Rename the snapshot.
# List the snapshot.
*Log:*
{code:java}
# ozone fs -ls
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot
Found 1 items
drwxrwxrwx - hrt_qa hrt_qa 215754 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491
# ozone fs -ls -R
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491
ls: Snapshot
'/test1724878439/bucket-volume-key-cli-1724878439/fs-snapshot-1724878439' is
not found. {code}
I also tried copying data from the snapshot to the bucket but got the
KEY_NOT_FOUND error.
{code:java}
# ozone fs -ls -R
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot
drwxrwxrwx - hrt_qa hrt_qa 215754 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491
drwxrwxrwx - hrt_qa hdfs 0 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe
drwxrwxrwx - hrt_qa hdfs 0 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe/hadoopqe
drwxrwxrwx - hrt_qa hdfs 0 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe/hadoopqe/tests
drwxrwxrwx - hrt_qa hdfs 0 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe/hadoopqe/tests/resources
drwxrwxrwx - hrt_qa hdfs 0 2024-08-28 20:54
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe/hadoopqe/tests/resources/wordcount_input
-rw-rw-rw- 3 hrt_qa hdfs 215754 2024-08-28 20:54
ofs://ozone1724416894/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe/hadoopqe/tests/resources/wordcount_input/wordcount_input.txt
# ozone fs -cp
ofs://ozone1/test1724878439/bucket-volume-key-cli-1724878439/.snapshot/new-fs-snapshot-1724878491/hwqe/hadoopqe/tests/resources/wordcount_input/wordcount_input.txt
ofs://ozone1724416894/test1724878439/bucket-volume-key-cli-1724878439
cp: KEY_NOT_FOUND: Snapshot
'/test1724878439/bucket-volume-key-cli-1724878439/fs-snapshot-1724878439' is
not found. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]