Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11384

[Snapshot] The new snapshot could not be found after renaming the old snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Snapshot

    Description

      Repro step: 

      1. Create a snapshot.
      2. Rename the snapshot.
      3. List the snapshot.

      Log: 

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

      I also tried copying data from the snapshot to the bucket but got the KEY_NOT_FOUND error.

       

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            karn.singh Karn Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: