Skip to content

KAFKA-16715: Create KafkaShareConsumer interfaces#16134

Merged
omkreddy merged 5 commits intoapache:trunkfrom
AndrewJSchofield:KAFKA-16715
Jun 4, 2024
Merged

KAFKA-16715: Create KafkaShareConsumer interfaces#16134
omkreddy merged 5 commits intoapache:trunkfrom
AndrewJSchofield:KAFKA-16715

Conversation

@AndrewJSchofield
Copy link
Copy Markdown
Member

This PR introduces ShareConsumer and KafkaShareConsumer. It is focused entirely on the minimal additions required to introduce the external programming interfaces.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@AndrewJSchofield
Copy link
Copy Markdown
Member Author

The build will not succeed until #16022 is merged.

@AndrewJSchofield
Copy link
Copy Markdown
Member Author

Closing and re-opening PR to force rebuild. This should fix the build failures because of a recent merge.

@omkreddy
Copy link
Copy Markdown
Contributor

omkreddy commented Jun 3, 2024

there are checkstyle errors:

[2024-06-03T13:13:54.181Z] * What went wrong:

[2024-06-03T13:13:54.181Z] Execution failed for task ':clients:checkstyleMain'.

[2024-06-03T13:13:54.181Z] > A failure occurred while executing org.gradle.api.plugins.quality.internal.CheckstyleAction

[2024-06-03T13:13:54.181Z]    > Checkstyle rule violations were found. See the report at: file:///home/jenkins/workspace/Kafka_kafka-pr_PR-16134/clients/build/reports/checkstyle/main.html

[2024-06-03T13:13:54.181Z]      Checkstyle files with violations: 1

[2024-06-03T13:13:54.181Z]      Checkstyle violations by severity: [error:1]

* A mock of the {@link ShareConsumer} interface you can use for testing code that uses Kafka. This class is <i> not
* thread-safe </i>.
*/
public class MockShareConsumer<K, V> implements ShareConsumer<K, V> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add tests to MockShareConsumer (similar to MockConsumerTest)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, I hadn't done that because I was putting this in as essentially just the interfaces, but I can do that. I'll do that in the next commit.

Copy link
Copy Markdown
Contributor

@apoorvmittal10 apoorvmittal10 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. LGTM!

Copy link
Copy Markdown
Contributor

@omkreddy omkreddy left a comment

Choose a reason for hiding this comment

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

@AndrewJSchofield Thanks for the PR. LGTM

@omkreddy omkreddy merged commit c3a1bef into apache:trunk Jun 4, 2024
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Jun 8, 2024
This PR introduces ShareConsumer and KafkaShareConsumer. It is focused entirely on the minimal additions required to introduce the external programming interfaces.

Reviewers: Apoorv Mittal <amittal@confluent.io>, Manikumar Reddy <manikumar.reddy@gmail.com>
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
This PR introduces ShareConsumer and KafkaShareConsumer. It is focused entirely on the minimal additions required to introduce the external programming interfaces.

Reviewers: Apoorv Mittal <amittal@confluent.io>, Manikumar Reddy <manikumar.reddy@gmail.com>
@AndrewJSchofield AndrewJSchofield deleted the KAFKA-16715 branch September 10, 2024 16:24
@mumrah mumrah added KIP-932 Queues for Kafka and removed queues-for-kafka labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

KIP-932 Queues for Kafka

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants