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

[snapshot] Throw appropriate error messages when deleting a file in .snapshot path

    XMLWordPrintableJSON

Details

    Description

      Throw appropriate error messages when deleting a file in .snapshot path

      Current implementation -

      # ozone sh key delete vol1/buck1/.snapshot/snap1
      Key not found .snapshot/snap1
      
      # ozone fs -rm -r -f -skipTrash ofs://ozone1/vol1/buck1/.snapshot/snap1
      23/10/10 06:41:53 ERROR ozone.BasicRootedOzoneClientAdapterImpl: delete key failed Unable to get file status: volume: vol1 bucket: buck1 key: .snapshot/snap1
      rm: `ofs://ozone1/vol1/buck1/.snapshot/snap1': Input/output error 

      The above error responses are not indicative of the actual error.

      Attachments

        Issue Links

          Activity

            People

              hemantk Hemant Kumar
              jyosin Jyotirmoy Sinha
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: