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
I recently added an exit from the loop on timeout (stop_loop() function) and I wanted to process all messages that were not processed due to the condition len(messages_batch) >= kafka_consumer_config['max_messages'].
So, I copied the block with "proceed" and "commit", placing it after the loop with the condition len(messages_batch) > 0. However, this block sometimes causes an unexpected error KafkaError{code=NO_OFFSET, val=-168, str="Commit failed: Local: No offset stored"}.
I have no idea what the problem is because, in theory, if this commit block starts working, there should be unprocessed messages. But sometimes, I get this error and sometimes I don't.
Description
I have random problem while committing offset.
Here is consumer code
I recently added an exit from the loop on timeout (
stop_loop()
function) and I wanted to process all messages that were not processed due to the conditionlen(messages_batch) >= kafka_consumer_config['max_messages']
.So, I copied the block with "proceed" and "commit", placing it after the loop with the condition
len(messages_batch) > 0
. However, this block sometimes causes an unexpected errorKafkaError{code=NO_OFFSET, val=-168, str="Commit failed: Local: No offset stored"}
.I have no idea what the problem is because, in theory, if this commit block starts working, there should be unprocessed messages. But sometimes, I get this error and sometimes I don't.
Maybe I do not see something?
I can send any information or log if necessary.
P.S.
confluent_kafka.version - 2.5.0
confluent_kafka.libversion - 2.5.0
client config except secrets:
Operating system - docker container, image apache/airflow:2.9.2
How to reproduce
I guess run my code, no idea.
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
):{...}
'debug': '..'
as necessary)The text was updated successfully, but these errors were encountered: