[
https://issues.apache.org/jira/browse/HBASE-8705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715076#comment-13715076
]
rajeshbabu commented on HBASE-8705:
-----------------------------------
I mean we can retry until we find one online server to assign META.
After reaching max attempts if we reset i value to 0(only for META region),
then we can check for online servers even after max attempts. If any one RS is
online then META will be assinged.
{code}
if (plan == null) {
LOG.warn("Unable to determine a plan to assign " + region);
if (tomActivated){
this.timeoutMonitor.setAllRegionServersOffline(true);
} else {
if (region.isMetaRegion()) {
try {
if (i == maximumAttempts) {
i = 0;
}
Thread.sleep(this.sleepTimeBeforeRetryingMetaAssignment);
continue;
} catch (InterruptedException e) {
LOG.error("Got exception while waiting for META assignment");
Thread.currentThread().interrupt();
}
}
regionStates.updateRegionState(region, RegionState.State.FAILED_OPEN);
}
return;
}
{code}
> RS holding META when restarted in a single node setup may hang infinitely
> without META assignment
> -------------------------------------------------------------------------------------------------
>
> Key: HBASE-8705
> URL: https://issues.apache.org/jira/browse/HBASE-8705
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.95.1
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Priority: Minor
> Fix For: 0.98.0, 0.95.2
>
> Attachments: HBASE-8705_1.patch, HBASE-8705_2.patch, HBASE-8705.patch
>
>
> This bug may be minor as it likely to happen in a single node setup.
> I restarted the RS holding META. The master tried assigning META using
> MetaSSH. But tried this before the new RS came up.
> So as not region plan is found
> {code}
> if (plan == null) {
> LOG.warn("Unable to determine a plan to assign " + region);
> if (tomActivated){
> this.timeoutMonitor.setAllRegionServersOffline(true);
> } else {
> regionStates.updateRegionState(region,
> RegionState.State.FAILED_OPEN);
> }
> return;
> }
> {code}
> we just return without assigment. And this being the META the small cluster
> just hangs.
--
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