Skip to content

Commit f8cb005

Browse files
committed
Fixed executor shutdown exception when running multiple workloads
1 parent 0da974e commit f8cb005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark-framework/src/main/java/io/openmessaging/benchmark/WorkloadGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class WorkloadGenerator implements ConsumerCallback, AutoCloseable {
5454
private final BenchmarkDriver benchmarkDriver;
5555
private final Workload workload;
5656

57-
private static final ExecutorService executor = Executors
57+
private final ExecutorService executor = Executors
5858
.newCachedThreadPool(new DefaultThreadFactory("messaging-benchmark"));
5959

6060
private final LongAdder messagesSent = new LongAdder();

0 commit comments

Comments
 (0)