Skip to content
New issue

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

group corodinate offset commit failure with same offsets #353

Closed
bt-wil opened this issue Apr 20, 2018 · 2 comments
Closed

group corodinate offset commit failure with same offsets #353

bt-wil opened this issue Apr 20, 2018 · 2 comments

Comments

@bt-wil
Copy link

bt-wil commented Apr 20, 2018

[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=67) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError
[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=7) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError
[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=87) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError
[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=27) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError
[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=107) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError
[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=47) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError
[2018-04-20 03:08:31+0000] ERROR    aiokafka.consumer.group_coordinator: OffsetCommit failed for group <GROUP-ID> on partition TopicPartition(topic='<TOPIC>', partition=127) with offset OffsetAndMetadata(offset=19983421, metadata=''): RequestTimedOutError

My first question is should I be worried about this error since it is a error?

The second thing is that I notice that all the topic offset are the same, which seems odd. Looking at the code, it seem to be a reporting error: https://github.com/aio-libs/aiokafka/blob/v0.4.0/aiokafka/consumer/group_coordinator.py#L930-L933, with the last offset was assigned here: https://github.com/aio-libs/aiokafka/blob/v0.4.0/aiokafka/consumer/group_coordinator.py#L850.

The offset might also be reported incorrectly here.
https://github.com/aio-libs/aiokafka/blob/v0.4.0/aiokafka/consumer/group_coordinator.py#L876-L880

@tvoinarovskyi
Copy link
Member

tvoinarovskyi commented Apr 21, 2018

My first question is should I be worried about this error since it is a error?

Depends on how many of those you have. If you use autocommit and next commit was successful it will have no impact. Probably the issue was in a connection loss, as long as those don't repeat frequently you should be ok.

The second thing is that I notice that all the topic offset are the same, which seems odd. Looking at the code, it seem to be a reporting error: https://github.com/aio-libs/aiokafka/blob/v0.4.0/aiokafka/consumer/group_coordinator.py#L930-L933, with the last offset was assigned here: https://github.com/aio-libs/aiokafka/blob/v0.4.0/aiokafka/consumer/group_coordinator.py#L850.

The offset might also be reported incorrectly here.
https://github.com/aio-libs/aiokafka/blob/v0.4.0/aiokafka/consumer/group_coordinator.py#L876-L880

Yes, it is an error, sorry about that.

I will look into the log levels. Probably this case should not produce an error.

@tvoinarovskyi
Copy link
Member

tvoinarovskyi commented Apr 21, 2018

Checked with Java client. The error is logged in the same ERROR level, https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java#L748. I will leave the behaviour in aiokafka the same. But it bugs me, that we issue an error per partition. Probably it's better to produce only a single error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants