This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 1c5d0d3bc3e [bug](meta) exit when get RollbackException in observer
(#31687) (#31953)
1c5d0d3bc3e is described below
commit 1c5d0d3bc3ef256946684577db08d22bd327709c
Author: Lijia Liu <[email protected]>
AuthorDate: Thu Mar 7 21:39:03 2024 +0800
[bug](meta) exit when get RollbackException in observer (#31687) (#31953)
---
.../src/main/java/org/apache/doris/journal/bdbje/BDBJEJournal.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/journal/bdbje/BDBJEJournal.java
b/fe/fe-core/src/main/java/org/apache/doris/journal/bdbje/BDBJEJournal.java
index cd0d54c6420..85ebfe2814b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/journal/bdbje/BDBJEJournal.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/journal/bdbje/BDBJEJournal.java
@@ -564,6 +564,13 @@ public class BDBJEJournal implements Journal { //
CHECKSTYLE IGNORE THIS LINE: B
}
} catch (RollbackException rollbackEx) {
if (!Env.isCheckpointThread()) {
+ // Because Doris FE can not rollback its edit log, so it
should restart and replay the new master's
+ // edit log.
+ if (rollbackEx.getEarliestTransactionId() != 0) {
+ LOG.error("Catch rollback log exception and it may
have replayed outdated "
+ + "logs, so exec System.exit(-1).",
rollbackEx);
+ System.exit(-1);
+ }
LOG.warn("catch rollback log exception. will reopen the
ReplicatedEnvironment.", rollbackEx);
bdbEnvironment.closeReplicatedEnvironment();
bdbEnvironment.openReplicatedEnvironment(new
File(environmentPath));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]