Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2665 Implement new Ozone Filesystem scheme ofs://
  3. HDDS-2979

Implement ofs://: Fix getFileStatus for mkdir volume

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      xyao discovered that when running ozone fs -mkdir -p ofs://om/vol1/ (only volume name is given, no bucket name or key path), the command would fail in getFileStatus (before reaching createDirectory()) in Hadoop common code:

      bash-4.2$ ozone fs -mkdir -p ofs://om/vol1/
      -mkdir: Bucket or Volume length is illegal, valid length is 3-63 characters
      
      # Same w/o -p
      bash-4.2$ ozone fs -mkdir ofs://om/vol1/
      -mkdir: Bucket or Volume length is illegal, valid length is 3-63 characters
      

      And we discovered with debugger attached that the root cause is that getFileStatus() is not behaving as expected.

      Solution: Patch existing OFS code, throw proper exception in getBucket() code to make Hadoop common happy.

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              smeng Siyao Meng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m