-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Store offset commit metadata when calling rd_kafka_offsets_store
#4084
Store offset commit metadata when calling rd_kafka_offsets_store
#4084
Conversation
cc @emasab |
Hey folks, |
There's no CHANGELOG yet for the release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, besides the tiny issue with the test. I'd like @emasab to weigh in.
We should add back the CHANGELOG, but under the next version, (we can use 2.1.0, or just call it vNext or something).
"Retrieving committed offsets to verify committed offset " | ||
"metadata\n"); | ||
rd_kafka_topic_partition_list_t *committed_toppar; | ||
committed_toppar = rd_kafka_topic_partition_list_new(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be destroyed at the end of the test, rd_kafka_topic_partition_list_destroy(committed_toppar);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Fixed this in 5d37ab1.
@mathispesch Thanks for the contribution! For security reason currently it's not allowed to run SemaphoreCI on forked PRs. I merge it into an internal branch and open a new PR. If you want to do additional changes before merging to master please open a new PR based on that branch. |
@mathispesch @emasab should it also store metadata when using |
Fixes #3927.
Offset commit metadata can be used to send additional data to the broker when making an offset commit. See this doc from the Java consumer.
Librdkafka currently sends the offset commit metadata when the commit is requested by calling
rd_kafka_commit_queue
but not when callingrd_kafka_offsets_store
to use the auto-commit. This PR fixes that by storing the offset commit metadata when callingrd_kafka_offsets_store
.