Skip to content

KAFKA-14950: implement assign() and assignment()#3

Merged
philipnee merged 5 commits into
ctr-stagingfrom
consumer-refactor-assign
May 3, 2023
Merged

KAFKA-14950: implement assign() and assignment()#3
philipnee merged 5 commits into
ctr-stagingfrom
consumer-refactor-assign

Conversation

@philipnee

Copy link
Copy Markdown
Owner

assing()

@philipnee

Copy link
Copy Markdown
Owner Author

@kirktrue

consumer = spy(newConsumer(time, new StringDeserializer(), new StringDeserializer()));
consumer.assign(singleton(new TopicPartition("foo", 3)));
assertTrue(consumer.subscription().isEmpty());
assertTrue(consumer.assignment().isEmpty());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be expected to have the foo-3 assignment here? (assigned from user in the subscriptionState as a result of the previous consumer.assign)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

😓 - I guess the test never passed.

@philipnee
philipnee merged commit 2f87731 into ctr-staging May 3, 2023
kirktrue added a commit that referenced this pull request May 24, 2023
…nly closed once

Added IdempotentCloser to ensure resources are only closed once. While this class is broadly useful, it will be constrained to consumer internals until a later date.
philipnee pushed a commit that referenced this pull request Jun 9, 2023
…nly closed once

Added IdempotentCloser to ensure resources are only closed once. While this class is broadly useful, it will be constrained to consumer internals until a later date.
philipnee pushed a commit that referenced this pull request Sep 11, 2023
…nly closed once

Added IdempotentCloser to ensure resources are only closed once. While this class is broadly useful, it will be constrained to consumer internals until a later date.
philipnee pushed a commit that referenced this pull request Sep 11, 2023
…nly closed once

Added IdempotentCloser to ensure resources are only closed once. While this class is broadly useful, it will be constrained to consumer internals until a later date.
philipnee pushed a commit that referenced this pull request Sep 11, 2023
…es are only closed once"

This reverts commit 76d5c96.
philipnee pushed a commit that referenced this pull request Sep 13, 2023
…nly closed once

Added IdempotentCloser to ensure resources are only closed once. While this class is broadly useful, it will be constrained to consumer internals until a later date.
philipnee pushed a commit that referenced this pull request Sep 13, 2023
…nly closed once

Added IdempotentCloser to ensure resources are only closed once. While this class is broadly useful, it will be constrained to consumer internals until a later date.
philipnee pushed a commit that referenced this pull request Sep 13, 2023
…es are only closed once"

This reverts commit 76d5c96.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants