[
https://issues.apache.org/jira/browse/HBASE-6713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447463#comment-13447463
]
chunhui shen commented on HBASE-6713:
-------------------------------------
bq.Why this change:{code}- if (!r.getRegionInfo().isMetaRegion() &&
r.isAvailable()) {
+ if (!r.getRegionInfo().isMetaTable() && r.isAvailable()) {{code}
MetaTable means -ROOT- or .META.
MetaRegion only means .META.
HRegionserver#closeUserRegions means closing all the user regions, but it will
also close -ROOT- without the patch, I think it's a mistake
In the patch,I try to close MetaTable regions after the compact/split thread
exited, so closeUserRegions shouldn't close -ROOT- region
> Stopping meta/root RS may take 50mins when it is in region-splitting
> --------------------------------------------------------------------
>
> Key: HBASE-6713
> URL: https://issues.apache.org/jira/browse/HBASE-6713
> Project: HBase
> Issue Type: Bug
> Components: regionserver
> Affects Versions: 0.94.1
> Reporter: chunhui shen
> Assignee: chunhui shen
> Fix For: 0.94.3
>
> Attachments: HBASE-6713.patch
>
>
> When we stop the RS carrying ROOT/META, if it is in the splitting for some
> region, the whole stopping process may take 50 mins.
> The reason is :
> 1.ROOT/META region is closed when stopping the regionserver
> 2.The Split Transaction failed updating META and it will retry
> 3.The retry num is 100, and the total time is about 50 mins as default;
> This configuration is set by
> HConnectionManager#setServerSideHConnectionRetries
> I think 50 mins is too long to acceptable, my suggested solution is closing
> MetaTable regions after the compact/split thread is closed
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira