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

LeaseException in Scan should be retired

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.0.4, 2.1.3
    • Fix Version/s: 3.0.0, 2.2.0, 2.3.0, 2.1.5
    • Component/s: Client, Scanners
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      We should retry LeaseException just like other exceptions like OutOfOrderScannerNextException and UnknownScannerException
      Code in ClientScanner´╝Ü

      if ((cause != null && cause instanceof NotServingRegionException) ||
              (cause != null && cause instanceof RegionServerStoppedException) ||
              e instanceof OutOfOrderScannerNextException || e instanceof UnknownScannerException ||
              e instanceof ScannerResetException) {
            // Pass. It is easier writing the if loop test as list of what is allowed rather than
            // as a list of what is not allowed... so if in here, it means we do not throw.
            if (retriesLeft <= 0) {
              throw e; // no more retries
            }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                troclosan Igor Rudenko
                Reporter:
                allan163 Allan Yang
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: