Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-5790

LeaseManager.findPath is very slow when many leases need recovery

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: namenode, performance
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Committed to branch-2 and trunk.

      Description

      We recently saw an issue where the NN restarted while tens of thousands of files were open. The NN then ended up spending multiple seconds for each commitBlockSynchronization() call, spending most of its time inside LeaseManager.findPath(). findPath currently works by looping over all files held for a given writer, and traversing the filesystem for each one. This takes way too long when tens of thousands of files are open by a single writer.

      1. hdfs-5790.txt
        5 kB
        Todd Lipcon
      2. hdfs-5790.txt
        4 kB
        Todd Lipcon

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development