You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Karn Kumar Singh (Jira)" <ji...@apache.org> on 2024/08/29 06:10:00 UTC

[jira] [Updated] (HDDS-11384) [Snapshot] The new snapshot could not be found after renaming the old snapshot

     [ https://issues.apache.org/jira/browse/HDDS-11384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karn Kumar Singh updated HDDS-11384:
------------------------------------
    Description: 
*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://ozone1/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://ozone1/test1724878439/bucket-volume-key-cli-1724878439
cp: KEY_NOT_FOUND: Snapshot '/test1724878439/bucket-volume-key-cli-1724878439/fs-snapshot-1724878439' is not found. {code}

  was:
*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}


> [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
>            Priority: Major
>
> *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://ozone1/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://ozone1/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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org