You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetPartitionsLostHandler and SetPartitionsRevokedHandler handlers are not invoked when consumer loses consumer group due to exceeded poll interval.
How to reproduce
Confluent.Kafka Verion 2.6.1
Consumer setup
varconsumer=newConsumerBuilder<string,string>(newConsumerConfig{BootstrapServers=config["Kafka:BootstrapServers"],GroupId="your-group-id",AutoOffsetReset=AutoOffsetReset.Earliest,MaxPollIntervalMs=15000,SessionTimeoutMs=10000}).SetPartitionsLostHandler((consumer,list)=>{_logger.LogInformation("Partitions lost");}).SetErrorHandler((consumer,error)=>{_logger.LogInformation(error.Reason);}).Build();varmessage1=consumer.Consume();awaitTask.Delay(Timespan.FromSeconds(30));// Here, the following warning message is logged // [thrd:main]: Application maximum poll interval (15000ms) exceeded by 7ms (adjust max.poll.interval.ms for long-running message processing): leaving group// Subsequent Consume() raises ConsumeException with ErrorCode.Local_MaxPollExceededvarmessage2=consumer.Consume();
Expected Result
SetPartitionsLostHandler is invoked on partitions ownership loss.
Actual Result
Only SetLogHandler is invoked.
Checklist
Please provide the following information:
A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
Confluent.Kafka nuget version.
Apache Kafka version.
Client configuration.
Operating system.
Provide logs (with "debug" : "..." as necessary in configuration).
Provide broker log excerpts.
Critical issue.
The text was updated successfully, but these errors were encountered:
Description
SetPartitionsLostHandler
andSetPartitionsRevokedHandler
handlers are not invoked when consumer loses consumer group due to exceeded poll interval.How to reproduce
Confluent.Kafka Verion 2.6.1
Consumer setup
Expected Result
SetPartitionsLostHandler
is invoked on partitions ownership loss.Actual Result
Only
SetLogHandler
is invoked.Checklist
Please provide the following information:
The text was updated successfully, but these errors were encountered: