Skip to content

Commit

Permalink
don't try to save utilization profile during forced Environment#close…
Browse files Browse the repository at this point in the history
…(); #XD-802 fixed
  • Loading branch information
penemue committed Apr 14, 2020
1 parent c99cdeb commit 6955e2c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,10 @@ public void close() {
if (throwableOnClose != null) {
throw new EnvironmentClosedException(throwableOnClose); // add combined stack trace information
}
checkInactive(ec.getEnvCloseForcedly());
final boolean closeForcedly = ec.getEnvCloseForcedly();
checkInactive(closeForcedly);
try {
if (!ec.getEnvIsReadonly() && ec.isGcEnabled()) {
if (!closeForcedly && !ec.getEnvIsReadonly() && ec.isGcEnabled()) {
executeInTransaction(new TransactionalExecutable() {
@Override
public void execute(@NotNull final Transaction txn) {
Expand Down Expand Up @@ -989,7 +990,7 @@ private void checkInactive(boolean exceptionSafe) {
private void reportAliveTransactions(final boolean debug) {
if (transactionTimeout() == 0) {
String stacksUnavailable = "Transactions stack traces are not available, " +
"set \'" + EnvironmentConfig.ENV_MONITOR_TXNS_TIMEOUT + " > 0\'";
"set '" + EnvironmentConfig.ENV_MONITOR_TXNS_TIMEOUT + " > 0'";
if (debug) {
loggerDebug(stacksUnavailable);
} else {
Expand Down

0 comments on commit 6955e2c

Please sign in to comment.