[fix](bdbje) remove System.exit(-1) in BDBEnvironment.close() (#19335)
* https://github.com/apache/doris/issues/18766
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user