Skip to content

Commit

Permalink
recreate thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Sep 27, 2024
1 parent 0318603 commit a15c985
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'com.nucleodb'
version = '1.18.15'
version = '1.18.16'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void readFromStart() throws InterruptedException {
leftToRead.set(0);
queueTasks.shutdownNow();
queueTasks.awaitTermination(4, TimeUnit.SECONDS);
queueTasks = Executors.newFixedThreadPool(60);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public void start(int queueHandlers) {
public synchronized void readFromStart() throws InterruptedException {
thread.shutdownNow();
thread.awaitTermination(4, TimeUnit.SECONDS);
thread = Executors.newFixedThreadPool(1);
boolean connectionType = this.getConnectionHandler() != null;
boolean databaseType = this.getDatabase() != null;

Expand Down

0 comments on commit a15c985

Please sign in to comment.