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

Discrepancy in Trash directory in ofs vs o3fs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      The renamed destination keys are different for ofs and o3fs.

      # ozone fs -rm o3fs://xyz.abc.ozone1/o3fs
      21/10/11 11:22:31 INFO Configuration.deprecation: io.bytes.per.checksum is deprecated. Instead, use dfs.bytes-per-checksum
      21/10/11 11:22:31 INFO fs.TrashPolicyDefault: Moved: 'o3fs://xyz.abc.ozone1/o3fs' to trash at: /.Trash/om/Current/o3fs
      # ozone fs -rm ofs://ozone1/abc/xyz/ofs
      21/10/11 11:22:00 INFO Configuration.deprecation: io.bytes.per.checksum is deprecated. Instead, use dfs.bytes-per-checksum
      21/10/11 11:22:00 INFO fs.TrashPolicyDefault: Moved: 'ofs://ozone1/abc/xyz/ofs' to trash at: ofs://ozone1/abc/xyz/.Trash/om/Current/abc/xyz/ofs
      # ozone fs -ls -R ofs://ozone1/abc/xyz
      -rw-rw-rw- 3 om om 0 2021-10-11 11:22 ofs://ozone1/abc/xyz/.Trash/om/Current/abc/xyz/ofs
      -rw-rw-rw- 3 om om 0 2021-10-11 11:22 ofs://ozone1/abc/xyz/.Trash/om/Current/o3fs
      

       

      Files lying at same level moves to different trash directory structure.
      o3fs -> /<vol>/<buck>/.Trash/<user>/Current/..<dir if any>..
      ofs -> /<vol>/<buck>/.Trash/<user>/Current/<vol>/<buck>/..<dir if any>..

      Omitting the volume and bucket name from OFS trash key name since its redundant.

       

      Attachments

        Activity

          People

            sadanand_shenoy Sadanand Shenoy
            soumdmw Soumitra Sulav (Old)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: