hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11974) When a disabled table is scanned, NotServingRegionException is thrown instead of TableNotEnabledException
Date Tue, 16 Sep 2014 02:20:34 GMT

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

Enis Soztutar commented on HBASE-11974:
---------------------------------------

bq. 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)
We've discussed this with Ted offline a bit. It seems that this will not work because of the
way our meta works. 

Meta contains regions -> server mapping, and only when the table is first created and not
opened yet, the serverName is null. Other times, the server will always point to the current
location or the last location if the region is closed. So, if a region X, is opened at serverA,
meta will contain regionX -> serverA mapping. If you disable the table, the region will
be closed on serverA, but the meta will still keep the same mapping. The client cannot rely
on RS to throw the TableNotEnabledException because if serverA is then killed, the client
will never get this exception, but instead keep retrying until it runs out of retries. 

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

Mime
View raw message