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

OFS CLI fail to copy form source bucket to destination bucket if destination bucket doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Ozone Filesystem
    • None

    Description

      OFS cli fails to copy keys from source bucket to destination bucket if destination bucket doesn't exist with exception message cp: Bucket or Volume name has an unsupported character : _.

      In actual, CLI tries to create bucket when it doesn't exist with ._ COPYING _ extension code.

      We need to update Ozone to be compatible with Hadoop and allow copy if bucket doesn't exist.

      Step to reproduce: Similar to test

      • Create a source volume: vol1 and bucket: bucket1
      • Add key: key1 to /vol1/bucket1
      • Run -cp command using OFS CLI with source path: /vol1/bucket1/key1 and destination path: /vol1/bucket2.
      • It would fail with exception message cp: Bucket or Volume name has an unsupported character : _.

      This is discovered while debugging HDDS-7861, a snapshot test. During debugging, we passed the wrong bucket and test failed with above exception.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: