We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When I close the reader, it stuck at the batch.Close() until it reach readBatchTimeout
batch.Close()
readBatchTimeout
func (r *reader) read(ctx context.Context, offset int64, conn *Conn) (int64, error) { ... if err = r.sendMessage(ctx, msg, highWaterMark); err != nil { batch.Close() // stuck here break }
A clear and concise description of what the bug is. Wait too long when close a consumer group reader
Kafka Version
What version(s) of Kafka are you testing against? v3.5.1
What version of kafka-go are you using? v0.4.47
To Reproduce Use the configuration to read messages continuously, then close the reader in another goroutine.
kafka.ReaderConfig{ Brokers: s.broker, GroupID: s.groupID, Topic: s.topic, MaxWait: 3 * time.Second, StartOffset: kafka.LastOffset, QueueCapacity: 4096, MaxBytes: 1024 * 1024 * 20, ReadBatchTimeout: time.Second *10, SessionTimeout: 20 * time.Second, HeartbeatInterval: 6 * time.Second, RebalanceTimeout: 10 * time.Second, }
Resources to reproduce the behavior:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When I close the reader, it stuck at the
batch.Close()
until it reachreadBatchTimeout
Kafka Version
To Reproduce
Use the configuration to read messages continuously, then close the reader in another goroutine.
The text was updated successfully, but these errors were encountered: