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.

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.