Skip to content

KAFKA-19271: allow intercepting internal method call #19832

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

mjsax
Copy link
Member

@mjsax mjsax commented May 27, 2025

To allow intercepting the internal subscribe call to the async-consumer,
we need to extend ConsumerWrapper interface accordingly, instead of
returning the wrapped async-consumer back to the KS runtime.

To allow intercepting the internal subscribe call to the async-consumer,
we need to extend ConsumerWrapper interface accordingly, instead of
returning the wrapped async-consumer back to the KS runtime.
@mjsax mjsax added streams KIP-1071 PRs related to KIP-1071 labels May 27, 2025
@github-actions github-actions bot added the small Small PRs label May 27, 2025
Copy link
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! one question

@@ -3926,38 +3925,6 @@ t2p1, new PartitionInfo(t2p1.topic(), t2p1.partition(), null, new Node[0], new N
);
}

@ParameterizedTest
Copy link
Member

Choose a reason for hiding this comment

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

Why have you removed these tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR removes public AsyncKafkaConsumer<byte[], byte[]> consumer() which is not needed any longer, but the test rely on it.

Copy link
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

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

Fine for me, but I'm not sure I get it. We could still keep a protected consumer if the test tests something useful, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KIP-1071 PRs related to KIP-1071 small Small PRs streams
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants