Hadoop Common
  1. Hadoop Common
  2. HADOOP-7145

Configuration.getLocalPath should trim whitespace from the provided directories

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      MR and HDFS use the Configuration.getTrimmedStrings API for local directory lists, but in a few places also use Configuration.getLocalPath. The former API trims whitespace around each entry in the list, but the latter doesn't. This can cause some subtle problems - the latter API should be fixed to also trim the directory names.

        Activity

        Hide
        Tom White added a comment -

        +1

        Show
        Tom White added a comment - +1
        Hide
        Todd Lipcon added a comment -

        Committed to 22 and trunk, thanks for reviewing, Tom.

        Show
        Todd Lipcon added a comment - Committed to 22 and trunk, thanks for reviewing, Tom.
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #506 (See https://hudson.apache.org/hudson/job/Hadoop-Common-trunk-Commit/506/)

        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #506 (See https://hudson.apache.org/hudson/job/Hadoop-Common-trunk-Commit/506/ )
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-22-branch #27 (See https://hudson.apache.org/hudson/job/Hadoop-Common-22-branch/27/)

        Show
        Hudson added a comment - Integrated in Hadoop-Common-22-branch #27 (See https://hudson.apache.org/hudson/job/Hadoop-Common-22-branch/27/ )
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk #608 (See https://hudson.apache.org/hudson/job/Hadoop-Common-trunk/608/)
        HADOOP-7145. Configuration.getLocalPath should trim whitespace from the provided directories. Contributed by Todd Lipcon.

        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk #608 (See https://hudson.apache.org/hudson/job/Hadoop-Common-trunk/608/ ) HADOOP-7145 . Configuration.getLocalPath should trim whitespace from the provided directories. Contributed by Todd Lipcon.

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development