[fix](bdbje) remove System.exit(-1) in BDBEnvironment.close() (#19335)

* https://github.com/apache/doris/issues/18766
This commit is contained in:
Lei Zhang
2023-05-11 01:01:38 +08:00
committed by GitHub
parent 0f6c69de53
commit 8845c2cf44

View File

@ -362,7 +362,6 @@ public class BDBEnvironment {
db.close();
} catch (DatabaseException exception) {
LOG.error("Error closing db {} will exit", db.getDatabaseName(), exception);
System.exit(-1);
}
}
openedDatabases.clear();
@ -372,7 +371,6 @@ public class BDBEnvironment {
epochDB.close();
} catch (DatabaseException exception) {
LOG.error("Error closing db {} will exit", epochDB.getDatabaseName(), exception);
System.exit(-1);
}
}
@ -382,7 +380,6 @@ public class BDBEnvironment {
replicatedEnvironment.close();
} catch (DatabaseException exception) {
LOG.error("Error closing replicatedEnvironment", exception);
System.exit(-1);
}
}
}
@ -396,7 +393,6 @@ public class BDBEnvironment {
replicatedEnvironment.close();
} catch (DatabaseException exception) {
LOG.error("Error closing replicatedEnvironment", exception);
System.exit(-1);
}
}
}