Skip to content

Commit

Permalink
[hotfix][state/forst] Use correct executor for ForSt coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakelly committed Sep 27, 2024
1 parent 4bed35b commit a5f1c82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public ForStStateExecutor(
if (isWriteInline) {
Preconditions.checkState(readIoParallelism > 0);
this.coordinatorThread =
Executors.newSingleThreadScheduledExecutor(
Executors.newSingleThreadExecutor(
new ExecutorThreadFactory("ForSt-StateExecutor-Coordinator-And-Write"));
this.readThreadCount = readIoParallelism;
this.readThreads =
Expand All @@ -95,7 +95,7 @@ public ForStStateExecutor(
} else {
Preconditions.checkState(readIoParallelism > 0 || writeIoParallelism > 0);
this.coordinatorThread =
Executors.newSingleThreadScheduledExecutor(
Executors.newSingleThreadExecutor(
new ExecutorThreadFactory("ForSt-StateExecutor-Coordinator"));
if (readIoParallelism <= 0 || writeIoParallelism <= 0) {
this.readThreadCount = Math.max(readIoParallelism, writeIoParallelism);
Expand Down

0 comments on commit a5f1c82

Please sign in to comment.