Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5942

HConnnectionManager.getRegionServerWithRetries doesn't call afterCall properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.1
    • 0.92.2
    • None
    • None
    • Reviewed

    Description

      HConnnectionManager.getRegionServerWithRetries:

                return callable.call();
              } catch (Throwable t) {
                callable.shouldRetry(t);
      

      shouldRetry relies on the proper startTime and endTime to calculate the timeout value. However, callable.afterCall() is called in finally block. Thus callable.callTimeout will be set to negative value in callable.shouldRetry().

      Attachments

        1. hbase-5942.patch
          1 kB
          ramkrishna.s.vasudevan

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            zhihyu@ebaysf.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: