You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "chenrongwei (JIRA)" <ji...@apache.org> on 2018/01/15 09:41:00 UTC

[jira] [Updated] (HBASE-19798) Retry time should not be 0

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

chenrongwei updated HBASE-19798:
--------------------------------
    Environment: 
linux centos 6.5 

jdk 1.8

 

 

  was:
hbase.client.retries.number  should not be set to zero.

if set to zero  will cause ConnectionManager  report NoServerForRegionException.

source code detail in 1.2.6's ConnectionManager  like belows:

      int localNumRetries = (retry ? numTries : 1); 

      for (int tries = 0; true; tries++) {

        if (tries >= localNumRetries) {

          throw new NoServerForRegionException("Unable to find region for "

              + Bytes.toStringBinary(row) + " in " + tableName +

              " after " + localNumRetries + " tries.");

        }

 

    Description: 
hbase.client.retries.number  should not be set to zero.

if set to zero  will cause ConnectionManager  report NoServerForRegionException.

source code detail in 1.2.6's ConnectionManager  like belows:

      int localNumRetries = (retry ? numTries : 1); 

      for (int tries = 0; true; tries++) {

        if (tries >= localNumRetries)

{           throw new NoServerForRegionException("Unable to find region for "               + Bytes.toStringBinary(row) + " in " + tableName +               " after " + localNumRetries + " tries.");         }

actual exception info

org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for 196053079 in fin_tech:crawler_event after 0 tries.

> Retry time should not be 0
> --------------------------
>
>                 Key: HBASE-19798
>                 URL: https://issues.apache.org/jira/browse/HBASE-19798
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>    Affects Versions: 1.2.6
>         Environment: linux centos 6.5 
> jdk 1.8
>  
>  
>            Reporter: chenrongwei
>            Priority: Minor
>
> hbase.client.retries.number  should not be set to zero.
> if set to zero  will cause ConnectionManager  report NoServerForRegionException.
> source code detail in 1.2.6's ConnectionManager  like belows:
>       int localNumRetries = (retry ? numTries : 1); 
>       for (int tries = 0; true; tries++) {
>         if (tries >= localNumRetries)
> {           throw new NoServerForRegionException("Unable to find region for "               + Bytes.toStringBinary(row) + " in " + tableName +               " after " + localNumRetries + " tries.");         }
> actual exception info
> org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for 196053079 in fin_tech:crawler_event after 0 tries.



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