-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unexpected Offset Increment of 2 Per Message in Single-Partition Kafka Topic #549
Comments
Thanks for filing this concern with us, @vcanuel. |
Hi @smcvb, I have run the Axon example without any issues. I have pinpointed the problem: it occurs when the confirmation mode is set to transactional: kafka:
publisher:
confirmation-mode: transactional
clientid: kafka-axon-example
producer:
retries: 1
bootstrap-servers: localhost:29092
transaction-id-prefix: axontx Is this normal ? |
@vcanuel, first and foremost, my sincere apology for the late reply here. The last two weeks where more hectic then I expected. Concerning your finding on the transaction mode, that's a good detail to have. Note that Axon Framework doesn't do any offset or transactional logic. Nonetheless, I did a little searching and uncovered this issue on the
This led me to do some further research, finding this Stack Overflow post.
In hindsight I should've triggered on the transaction mode you selected. However, I haven't had a lot of recent play time with Kafka, so this nugget of info got lost to me. Nonetheless, I am confident we can close this issue as resolved through the above mentioned information. |
Hi @smcvb , Thanks for the detailed and thorough explanation! Regards, Vikncent. |
Description:
Hi,
I’ve encountered an issue where, after writing messages to a Kafka topic with a single partition, the offsets increment by 2 instead of the expected increment of 1. For example, the sequence of offsets is 0, 2, 4, etc.
Is this normal ?
Basic information
Axon Framework version: 4.10.2
JDK version: 21
Kafka Extension version: 4.10.0
My application properties :
Steps to Reproduce:
Expected Behavior:
Offsets should increment by 1 for each new message (e.g., 0, 1, 2, 3, …).
Actual Behavior:
Offsets increment by 2 for each new message (e.g., 0, 2, 4, …).
The text was updated successfully, but these errors were encountered: