You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Bing Xiao (JIRA)" <ji...@apache.org> on 2019/03/13 06:55:00 UTC

[jira] [Assigned] (HBASE-22047) LeaseException in Scan should be retired

     [ https://issues.apache.org/jira/browse/HBASE-22047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bing Xiao reassigned HBASE-22047:
---------------------------------

    Assignee: Bing Xiao

> LeaseException in Scan should be retired
> ----------------------------------------
>
>                 Key: HBASE-22047
>                 URL: https://issues.apache.org/jira/browse/HBASE-22047
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.0.4, 2.1.3
>            Reporter: Allan Yang
>            Assignee: Bing Xiao
>            Priority: Major
>
> We should retry LeaseException just like other exceptions like OutOfOrderScannerNextException and UnknownScannerException
> Code in ClientScanner:
> {code:java}
> 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
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)