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

Andrey Stepachev commented on HBASE-11974:
------------------------------------------

may be it is better to check table state in RS? 
org.apache.hadoop.hbase.regionserver.HRegionServer#getRegionByEncodedName(byte[],
 java.lang.String) is a good to place check (right before NSRE is througn)

> 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
>
>
> 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