Skip to content

Commit

Permalink
additional reset of consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Sep 28, 2024
1 parent a15c985 commit ca21205
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
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.16'
version = '1.18.17'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void readFromStart() throws InterruptedException {
queue.clear();
startupPhaseConsume.set(true);
leftToRead.set(0);
startupItems = -1;
queueTasks.shutdownNow();
queueTasks.awaitTermination(4, TimeUnit.SECONDS);
queueTasks = Executors.newFixedThreadPool(60);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ public void run() {
try {
getConsumer().poll(Duration.ofMillis(100));
Thread.sleep(1000);
} catch (InterruptedException e) {
// throw new RuntimeException(e);
e.printStackTrace();
}
} catch (InterruptedException e) {}
}
seek(offsets);
super.setStartupLoadCount(getDatabase().getStartupLoadCount());
Expand All @@ -189,11 +186,7 @@ public void run() {
try {
getConsumer().poll(Duration.ofMillis(100));
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
//throw new RuntimeException(e);

}
} catch (InterruptedException e) {}
}
seek(offsets);
super.setStartupLoadCount(getConnectionHandler().getStartupLoadCount());
Expand Down

0 comments on commit ca21205

Please sign in to comment.