This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 97cea9b5c9 [improvement](bdbje) add more log to make bdbje
DatabaseNotFoundException problem easily solved (#15715)
97cea9b5c9 is described below
commit 97cea9b5c90ec5df48b7ed1d7ac549638cefa3a0
Author: caiconghui <[email protected]>
AuthorDate: Mon Jan 9 08:55:21 2023 +0800
[improvement](bdbje) add more log to make bdbje DatabaseNotFoundException
problem easily solved (#15715)
Co-authored-by: caiconghui1 <[email protected]>
---
.../src/main/java/org/apache/doris/journal/bdbje/BDBJEJournal.java | 6 ++++++
1 file changed, 6 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 d6bfb0ee9f..74cd8052bb 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
@@ -32,6 +32,7 @@ import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.je.Database;
import com.sleepycat.je.DatabaseEntry;
import com.sleepycat.je.DatabaseException;
+import com.sleepycat.je.DatabaseNotFoundException;
import com.sleepycat.je.LockMode;
import com.sleepycat.je.OperationStatus;
import com.sleepycat.je.rep.InsufficientLogException;
@@ -303,6 +304,11 @@ public class BDBJEJournal implements Journal { //
CHECKSTYLE IGNORE THIS LINE: B
bdbEnvironment.setup(dbEnv, selfNodeName, selfNodeHostPort,
helperHostPort,
Env.getServingEnv().isElectable());
} catch (Exception e) {
+ if (e instanceof DatabaseNotFoundException) {
+ LOG.error("It is not allowed to set
metadata_failure_recovery to true "
+ + "when meta dir or bdbje dir is empty, which may
mean it is "
+ + "the first time to start this node");
+ }
LOG.error("catch an exception when setup bdb environment. will
exit.", e);
System.exit(-1);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]