Skip to content

[KIP-932]: Add logging for acknowledgement apis - #5537

Open
Pratyush Ranjan (PratRanj07) wants to merge 2 commits into
masterfrom
dev_kip-932_add_ack_logging
Open

[KIP-932]: Add logging for acknowledgement apis#5537
Pratyush Ranjan (PratRanj07) wants to merge 2 commits into
masterfrom
dev_kip-932_add_ack_logging

Conversation

@PratRanj07

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 29, 2026 06:52
@PratRanj07
Pratyush Ranjan (PratRanj07) requested a review from a team as a code owner June 29, 2026 06:52
@confluent-cla-assistant

confluent-cla-assistant Bot commented Jun 29, 2026

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds additional debug logging for Share Consumer explicit acknowledgement APIs, improving observability when acknowledge requests are rejected due to invalid state or in-flight tracking conditions.

Changes:

  • Log a debug message when explicit acknowledge APIs are called while in implicit acknowledgement mode.
  • Log a debug message when an acknowledged offset is not found in any in-flight acquired batch.
  • Log a debug message when attempting to acknowledge a GAP record.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/* Explicit acknowledge APIs require explicit acknowledgement mode */
if (rd_kafka_share_acknowledgement_mode_is_implicit(rkshare))
if (rd_kafka_share_acknowledgement_mode_is_implicit(rkshare)) {
rd_kafka_dbg(rkshare->rkshare_rk, CONSUMER, "SHAREACK",
&entry, &idx);
if (err)
if (err) {
rd_kafka_dbg(rkshare->rkshare_rk, CONSUMER, "SHAREACK",
/* GAP records cannot be acknowledged */
if (entry->types[idx] == RD_KAFKA_SHARE_INTERNAL_ACK_GAP)
if (entry->types[idx] == RD_KAFKA_SHARE_INTERNAL_ACK_GAP) {
rd_kafka_dbg(rkshare->rkshare_rk, CONSUMER, "SHAREACK",
@airlock-confluentinc
airlock-confluentinc Bot force-pushed the dev_kip-932_add_ack_logging branch from ecd844f to 3ea6576 Compare July 30, 2026 06:48
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.

2 participants