Skip to content
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

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

Merged
merged 5 commits into from
May 3, 2023

Conversation

philipnee
Copy link
Owner

assing()

@philipnee
Copy link
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
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
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 added a commit that referenced this pull request Sep 11, 2023
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 added a commit that referenced this pull request Sep 13, 2023
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