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

MINOR: ListPartitionReassignmentsResponse should not be entirely failed when a topic-partition does not exist #7486

Merged

Conversation

dajac
Copy link
Contributor

@dajac dajac commented Oct 10, 2019

When a ListPartitionReassignmentsRequest containing a non-existing topic-partition is sent to the controller, the controller returns a ListPartitionReassignmentsResponse with the top level error code set to UNKNOWN_TOPIC_OR_PARTITION. If multiple topic-partitions are passed in the same request, the caller has no way to know which ones do not exist any more. It has to use another admin call to figure it out and then retries the former.

Instead, the controller should ignore any non-existing topic-partitions. It is fine because they don't have any reassignments by definition so the contract of the API remains valid.

Committer Checklist (excluded from commit message)

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

…esponse when a topic partition does not exist but

rather return nothing for it.
@cmccabe
Copy link
Contributor

cmccabe commented Oct 10, 2019

LGTM

@dajac
Copy link
Contributor Author

dajac commented Oct 10, 2019

JDK 11 and Scala 2.13 had two failing tests:

  • kafka.api.SaslOAuthBearerSslEndToEndAuthorizationTest.testNoDescribeProduceOrConsumeWithoutTopicDescribeAcl
  • org.apache.kafka.streams.integration.KTableKTableForeignKeyJoinIntegrationTest.doInnerJoinFilterOutRapidlyChangingForeignKeyValues

They are not related to changes made by this PR.

@cmccabe cmccabe merged commit fa2a9f0 into apache:trunk Oct 10, 2019
asfgit pushed a commit that referenced this pull request Oct 10, 2019
…ed when a topic-partition does not exist (#7486)

Reviewers: Colin P. McCabe <cmccabe@apache.org>
(cherry picked from commit fa2a9f0)
@dajac dajac deleted the minor-list-rartition-reassignments-response branch October 11, 2019 07:31
@stanislavkozlovski
Copy link
Contributor

In the future, it's good to make sure to update the KIP. I did so already fwiw

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