INTEXT-180: Fix ListenerContainer fetch pool size
JIRI: https://jira.spring.io/browse/INTEXT-180
This commit is contained in:
committed by
Artem Bilan
parent
19a27d7759
commit
c7f009f544
@@ -306,7 +306,7 @@ public class KafkaMessageListenerContainer implements SmartLifecycle {
|
||||
partitionsByBrokerMap.clear();
|
||||
partitionsByBrokerMap.putAll(partitionsAsList.groupBy(getLeader));
|
||||
if (fetchTaskExecutor == null) {
|
||||
fetchTaskExecutor = Executors.newFixedThreadPool(partitionsByBrokerMap.size());
|
||||
fetchTaskExecutor = Executors.newFixedThreadPool(partitionsByBrokerMap.keysView().size());
|
||||
}
|
||||
partitionsByBrokerMap.forEachKey(launchFetchTask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user