-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Support recover FE metadata from backup meta #50966
[Enhancement] Support recover FE metadata from backup meta #50966
Conversation
90927f4
to
f113f34
Compare
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]❌ fail : 7 / 13 (53.85%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@@ -160,8 +159,8 @@ public List<InetSocketAddress> getObserverNodes() { | |||
for (ReplicationNode replicationNode : replicationGroup.getSecondaryNodes()) { | |||
ret.add(replicationNode.getSocketAddress()); | |||
} | |||
} catch (UnknownMasterException e) { | |||
LOG.warn("Catch UnknownMasterException when calling getObserverNodes.", e); | |||
} catch (Throwable t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change this?
} catch (UnknownMasterException e) { | ||
LOG.warn("Catch UnknownMasterException when calling getObserverNodes.", e); | ||
} catch (Throwable t) { | ||
LOG.warn("Catch Exception when calling getObserverNodes.", t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG.warn("Catch Exception when calling getObserverNodes.", t); | |
LOG.warn("got exception when calling getObserverNodes.", t); |
} catch (UnknownMasterException e) { | ||
LOG.warn("Catch UnknownMasterException when calling getElectableNodes.", e); | ||
} catch (Throwable t) { | ||
LOG.warn("catch exception when calling getElectableNodes.", t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG.warn("catch exception when calling getElectableNodes.", t); | |
LOG.warn("got exception when calling getElectableNodes.", t); |
replace by #51040 |
Why I'm doing:
With this patch, it is possible to recover FE metadata if all machines are unavailable but the meta directory still exists.
bdbje_reset_election_group = true
in fe.conf. We call this FE asFE_TMP
.FE_NORMAL
.FE_NORMAL
is added to cluster successfully. StopFE_TMP
, and this node will be never used.bdbje_reset_election_group = true
to fe.conf, and restartFE_NORMAL
.FE_NORMAL
and make sure the meta is normal.bdbje_reset_election_group = true
from fe.conf, and restartFE_NORMAL
.FE_NORMAL
and remove all the other FE nodes.What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: