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

Fix the check condition for reserved path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None
    • Reviewed

    Description

      Currently the .reserved patch check function is:

      public static boolean isReservedName(String src) {
        return src.startsWith(DOT_RESERVED_PATH_PREFIX);
      }
      

      And DOT_RESERVED_PATH_PREFIX is /.reserved, it should be /.reserved/, for example: if some other directory prefix with /.reserved, we say it's /.reservedpath, then the check is wrong.

      Attachments

        1. HDFS-7637.001.patch
          0.8 kB
          Yi Liu

        Activity

          People

            hitliuyi Yi Liu
            hitliuyi Yi Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: