Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12615 Router-based HDFS federation phase 2
  3. HDFS-13233

RBF: MountTableResolver doesn't return the correct mount point of the given path

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0, 2.10.0, 2.9.1, 3.0.3
    • Component/s: hdfs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Method MountTableResolver->getMountPoint will traverse mount table and return the first mount point which the input path starts with, but the condition is not sufficient.

      Suppose the mount point table contains: "/user" "/user/test" "/user/test1", if the input path is "/user/test111", the return mount point is "/user/test1", but the correct one should be "/user".

        Attachments

        1. HDFS-13233.001.patch
          3 kB
          wangzhiyuan
        2. HDFS-13233.002.patch
          3 kB
          wangzhiyuan
        3. HDFS-13233.003.patch
          3 kB
          wangzhiyuan
        4. HDFS-13233.004.patch
          4 kB
          wangzhiyuan
        5. HDFS-13233.005.patch
          4 kB
          Yiqun Lin

          Issue Links

            Activity

              People

              • Assignee:
                striver.wang wangzhiyuan
                Reporter:
                striver.wang wangzhiyuan
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: