Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14874

Fix TestHDFSCLI and TestDFSShell test break because of logging change in mkdir

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0
    • Component/s: hdfs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The change in HADOOP-16138 breaks TestHDFSCLI and TestDFSShell
      Since it changed the text in the exception :

      -        throw new PathNotFoundException(itemParentPath.toString());
      +        throw new PathNotFoundException(String.format(
      +            "mkdir failed for path: %s. Item parent path not found: %s.",
      +        itemPath.toString(), itemParentPath.toString()));
             }
      

      For reference :
      https://builds.apache.org/job/PreCommit-HDFS-Build/27958/testReport/

      The way I plan to fix it: create this jira where I `revert` this change in the sense that I will create a PR with the original log. No need for the additional logging what we added

      Thanks Ayush Saxena for finding this issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gabor.bota Gabor Bota
                Reporter:
                gabor.bota Gabor Bota
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: