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

SKYEDEN-3020 | consumers retransmission improvements #1941

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

MarcinBobinski
Copy link
Collaborator

@MarcinBobinski MarcinBobinski commented Dec 23, 2024

In the current retransmission process, offsets are updated only locally in Hermes consumers via KafkaConsumer::seek().

This pull request introduces a change to also commit offsets to Kafka using KafkaConsumer::commitSync().

Furthermore, it increments the partitionAssignmentTerm to ensure Kafka-committed offsets are not overwritten by concurrently processed events created before retransmission.

@MarcinBobinski MarcinBobinski force-pushed the SKYEDEN-3020-ConsumerRetransmissionImprovements branch from 9981d34 to b304b45 Compare December 23, 2024 11:07
@MarcinBobinski MarcinBobinski changed the title SKYEDEN-3271 | consumers retransmission improvements SKYEDEN-3020 | consumers retransmission improvements Dec 23, 2024
MarcinBobinski and others added 2 commits January 8, 2025 11:23
…erRetransmissionImprovements

# Conflicts:
#	hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/consumer/receiver/MessageReceiver.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant