Skip to content

Commit

Permalink
fix: fixed larger closing time of the database introduced after 23.5.1
Browse files Browse the repository at this point in the history
Fixed issue #1234
  • Loading branch information
lvca committed Sep 10, 2023
1 parent ce15b04 commit 0d29ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions engine/src/main/java/com/arcadedb/engine/PageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public void close() {
if (flushThread != null) {
try {
flushThread.close();
flushThread.interrupt();
flushThread.join();
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
Expand Down Expand Up @@ -132,6 +133,7 @@ public void kill() {
if (flushThread != null) {
try {
flushThread.close();
flushThread.interrupt();
flushThread.join();
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ public void run() {
flushPagesFromQueueToDisk();

} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
running = false;
return;
} catch (final Exception e) {
LogManager.instance().log(this, Level.SEVERE, "Error on processing page flush requests", e);
}
Expand Down

0 comments on commit 0d29ef0

Please sign in to comment.