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

RBF: ConnectionManager's cleanup task will compare each pool's own active conns with its total conns

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.0, 2.10.0, 2.9.1, 3.0.3
    • None
    • None
    • Reviewed

    Description

      In the cleanup task:

      long timeSinceLastActive = Time.now() - pool.getLastActiveTime();
      int total = pool.getNumConnections();
      int active = getNumActiveConnections();
      if (timeSinceLastActive > connectionCleanupPeriodMs ||
      

      the 3rd line should be pool.getNumActiveConnections()

       

      Attachments

        1. HDFS-13230.001.patch
          9 kB
          Chao Sun
        2. HDFS-13230.000.patch
          9 kB
          Chao Sun

        Issue Links

          Activity

            People

              csun Chao Sun
              ywskycn Wei Yan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: