You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Andrew Schofield (Jira)" <ji...@apache.org> on 2026/03/13 13:48:00 UTC
[jira] [Created] (KAFKA-20309) Too many SharePollEvents created
Andrew Schofield created KAFKA-20309:
----------------------------------------
Summary: Too many SharePollEvents created
Key: KAFKA-20309
URL: https://issues.apache.org/jira/browse/KAFKA-20309
Project: Kafka
Issue Type: Bug
Affects Versions: 4.2.0
Reporter: Andrew Schofield
Assignee: Andrew Schofield
SharePollEvent is used in a share consumer to signal to the background thread that the application thread is polling. The mechanism for governing when to make a new event is too loose which can result in too many events being created. Generally, there is only a single event outstanding, but sometimes a higher number are enqueued unnecessarily.
The AsyncKafkaConsumer introduced a mechanism to control the number of events and something similar is appropriate in the share consumer also.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)