[ 
https://issues.apache.org/jira/browse/HBASE-11974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139194#comment-14139194
 ] 

Ted Yu commented on HBASE-11974:
--------------------------------

Patch v6 is consistent with behavior from 0.98
Take a look at 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCaller.java
 around line 121:
{code}
        beforeCall();
        callable.prepare(tries != 0); // if called with false, check table 
status on ZK
{code}
NotServingRegionException would cause reload parameter to become true, leading 
to call of HConnectionImplementation.relocateRegion()

> When a disabled table is scanned, NotServingRegionException is thrown instead 
> of TableNotEnabledException
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-11974
>                 URL: https://issues.apache.org/jira/browse/HBASE-11974
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 11974-test.patch, 11974-v1.txt, 11974-v2.txt, 
> 11974-v3.txt, 11974-v4.txt, 11974-v5.txt, 11974-v6.txt
>
>
> When a disabled table is scanned, TableNotEnabledException should be thrown.
> However, currently NotServingRegionException is thrown.
> Thanks to Romil Choksi who discovered this problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to