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

RBF: Throwing an exception prevents the permit from being released when using FairnessPolicyController

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • rbf
    • Reviewed

    Description

      Bug description

      When the router uses FairnessPolicyController, each time a request is processed,

      the permit of the ns corresponding to the request will be obtained first (method acquirePermit),

      and then the  information of namenodes corresponding to the ns will be obtained(method getOrderedNamenodes).

      getOrderedNamenodes comes after acquirePermit, so if acquirePermit succeeds but getOrderedNamenodes throws an exception, the permit cannot be released.

       

      How to reproduce

      Use the original code to run the new unit test testReleasedWhenExceptionOccurs in this PR

       

       

      Attachments

        1. HDFS-17265.patch
          11 kB
          Jian Zhang

        Issue Links

          Activity

            People

              Keepromise Jian Zhang
              Keepromise Jian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: