[fix](fe) Fix drop frontend cause bdbje and fe memory inconsistent state#35203
Merged
dataroaring merged 1 commit intoapache:masterfrom May 28, 2024
Merged
[fix](fe) Fix drop frontend cause bdbje and fe memory inconsistent state#35203dataroaring merged 1 commit intoapache:masterfrom
bdbje and fe memory inconsistent state#35203dataroaring merged 1 commit intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 40883 ms |
TPC-DS: Total hot run time: 169083 ms |
ClickBench: Total hot run time: 30.58 s |
b30a165 to
69362db
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 39799 ms |
TPC-DS: Total hot run time: 172109 ms |
ClickBench: Total hot run time: 30.07 s |
c70f678 to
4994fbd
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 41840 ms |
TPC-DS: Total hot run time: 168818 ms |
ClickBench: Total hot run time: 30.57 s |
…t state * dropFrontend use `ReplicationGroupAdmin` to remove bdbje node, in some corner case `ReplicationGroupAdmin.removeMember` success but `editLog.logRemoveFrontend` fail will cause inconsistent node info between `fe memory` and `bdbje`
4994fbd to
28eac70
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 39666 ms |
TPC-DS: Total hot run time: 171461 ms |
ClickBench: Total hot run time: 29.81 s |
gavinchou
approved these changes
May 24, 2024
Contributor
|
PR approved by anyone and no changes requested. |
Contributor
|
PR approved by at least one committer and no changes requested. |
924060929
added a commit
that referenced
this pull request
May 30, 2024
An exception introduced by #35203 cause the frontend start failed In this cases: 1. all frontends are down and recover frontend in different host by the original metadata 2. or the only frontend's ip changed, and start with `-r` option to recover from original metadata
dataroaring
pushed a commit
that referenced
this pull request
May 31, 2024
…t state (#35203) * dropFrontend use `ReplicationGroupAdmin` to remove bdbje node, in some corner case `ReplicationGroupAdmin.removeMember` success but `editLog.logRemoveFrontend` fail will cause inconsistent node info between `fe memory` and `bdbje`
dataroaring
pushed a commit
that referenced
this pull request
May 31, 2024
An exception introduced by #35203 cause the frontend start failed In this cases: 1. all frontends are down and recover frontend in different host by the original metadata 2. or the only frontend's ip changed, and start with `-r` option to recover from original metadata
swjtu-zhanglei
added a commit
to swjtu-zhanglei/incubator-doris
that referenced
this pull request
Jul 17, 2024
```
com.sleepycat.je.rep.MasterStateException: (JE 18.3.12) Cannot remove an active master
at com.sleepycat.je.rep.util.ReplicationGroupAdmin.checkMember(ReplicationGroupAdmin.java:591)
at com.sleepycat.je.rep.util.ReplicationGroupAdmin.removeMember(ReplicationGroupAdmin.java:315)
at org.apache.doris.ha.BDBHA.removeDroppedMember(BDBHA.java:262)
at org.apache.doris.catalog.Env.removeDroppedFrontends(Env.java:3077)
at org.apache.doris.catalog.Env.transferToMaster(Env.java:1520)
at org.apache.doris.catalog.Env.access$1300(Env.java:338)
at org.apache.doris.catalog.Env$5.runOneCycle(Env.java:2792)
at org.apache.doris.common.util.Daemon.run(Daemon.java:116)
```
* the bug is introduced by apache#35203
w41ter
pushed a commit
that referenced
this pull request
Jul 17, 2024
```
com.sleepycat.je.rep.MasterStateException: (JE 18.3.12) Cannot remove an active master
at com.sleepycat.je.rep.util.ReplicationGroupAdmin.checkMember(ReplicationGroupAdmin.java:591)
at com.sleepycat.je.rep.util.ReplicationGroupAdmin.removeMember(ReplicationGroupAdmin.java:315)
at org.apache.doris.ha.BDBHA.removeDroppedMember(BDBHA.java:262)
at org.apache.doris.catalog.Env.removeDroppedFrontends(Env.java:3077)
at org.apache.doris.catalog.Env.transferToMaster(Env.java:1520)
at org.apache.doris.catalog.Env.access$1300(Env.java:338)
at org.apache.doris.catalog.Env$5.runOneCycle(Env.java:2792)
at org.apache.doris.common.util.Daemon.run(Daemon.java:116)
```
* the bug is introduced by #35203
dataroaring
pushed a commit
that referenced
this pull request
Jul 17, 2024
```
com.sleepycat.je.rep.MasterStateException: (JE 18.3.12) Cannot remove an active master
at com.sleepycat.je.rep.util.ReplicationGroupAdmin.checkMember(ReplicationGroupAdmin.java:591)
at com.sleepycat.je.rep.util.ReplicationGroupAdmin.removeMember(ReplicationGroupAdmin.java:315)
at org.apache.doris.ha.BDBHA.removeDroppedMember(BDBHA.java:262)
at org.apache.doris.catalog.Env.removeDroppedFrontends(Env.java:3077)
at org.apache.doris.catalog.Env.transferToMaster(Env.java:1520)
at org.apache.doris.catalog.Env.access$1300(Env.java:338)
at org.apache.doris.catalog.Env$5.runOneCycle(Env.java:2792)
at org.apache.doris.common.util.Daemon.run(Daemon.java:116)
```
* the bug is introduced by #35203
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ReplicationGroupAdminto remove bdbje node, in some corner caseReplicationGroupAdmin.removeMembersuccess buteditLog.logRemoveFrontendfailwill cause inconsistent node info between
fe memoryandbdbje