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

getFileStatus return wrong response when key doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • OM
    • None

    Description

      Snapshot restore tests were added as part of PR and test to restore snapshot to another bucket fails sometime for Legacy bucket layout with exception File Exists. In the deep dive, it was found that it is because of PR. In the PR, seek operation was used on RocksDB table which sometime returns non-null response and causes fake dir creation. It is possible that RocksDB's seek operation uses bloom filter which doesn't guarantee that key exists (false positive).

      To fix this, we should add volume and bucket check here. We may or may not need to iterate over the iterator.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hemantk Hemant Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: