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-4034: Avoid unnecessary consumer coordinator lookup #1720

Closed
wants to merge 4 commits into from

Conversation

hachikuji
Copy link
Contributor

No description provided.

@ijuma
Copy link
Contributor

ijuma commented Aug 12, 2016

Thanks for the PR. Can we please also add a test in either AuthorizerIntegrationTest or EndToEndAuthorizerTest? That way we ensure the right behaviour from an authorization perspective even if the implementation details of consumer coordinator look-up change.

}

public RetriableCommitFailedException(String message, Throwable t) {
super(message, t);
Copy link
Contributor

Choose a reason for hiding this comment

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

These exceptions are public classes so I don't think we can remove the existing constructors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I'll bring them back.

@hachikuji
Copy link
Contributor Author

@ijuma Thanks for the review. I've added the integration test and attempted to clean up the coordinator lookup future logic.

// the user is manually assigning partitions and managing their own offsets).
fetcher.resetOffsetsIfNeeded(partitions);

if (!subscriptions.hasAllFetchPositions()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that both calls to this function is covered by this check already (subscriptions.position(partition) == null as similar effect), but I think no harm to add here just in case.

@guozhangwang
Copy link
Contributor

LGTM.

@ijuma
Copy link
Contributor

ijuma commented Aug 12, 2016

LGTM

@asfgit asfgit closed this in be36b32 Aug 12, 2016
@ijuma
Copy link
Contributor

ijuma commented Aug 12, 2016

Tests passed locally. Merging to trunk and 0.10.0 branches.

asfgit pushed a commit that referenced this pull request Aug 12, 2016
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #1720 from hachikuji/KAFKA-4034
norwood pushed a commit to confluentinc/kafka that referenced this pull request Aug 15, 2016
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes apache#1720 from hachikuji/KAFKA-4034
norwood pushed a commit to confluentinc/kafka that referenced this pull request Aug 26, 2016
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes apache#1720 from hachikuji/KAFKA-4034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants