Skip to content

kafka reader drops messages when context with timeout is set. #455

@xiaofeige

Description

@xiaofeige

Describe the bug
my kafka produce 5000 msgs per minutes, when I set a context with 5s timeout, it will drop 1~2 messages in every 5 minutes.
when I increase the timeout to 15s, the dropout msg will decrease. and when I set timout to 60s. no messages will be dropped.

Kafka Version
the latest stable one.

To Reproduce
my kafka produce 5000 msgs per minutes, when I set a context with 5s timeout, it will drop 1~2 messages in every 5 minutes.

Expected behavior
messages shouldn't be drop.

Additional context

I suspect here is the problem.
image
The message actually is successfully pulled, but the context is timeout when commit message。 but this function returns a empty message and a error with a deadline-exceed.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions