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: restore testUnauthorizedTopicMetadataRequest #18578

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

TaiJuWu
Copy link
Collaborator

@TaiJuWu TaiJuWu commented Jan 16, 2025

This was removed during removal of zk code (#18542), but we should instead convert it to work with kraft.

Committer Checklist (excluded from commit message)

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

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tests Test fixes (including flaky tests) labels Jan 16, 2025
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@TaiJuWu thanks for restoring the test. LGTM


val updateMetadataRequest = new UpdateMetadataRequest.Builder(ApiKeys.UPDATE_METADATA.latestVersion, 0,
0, 0, partitionStates.asJava, Seq(broker).asJava, topicIds).build()
MetadataCacheTest.updateCache(metadataCache, updateMetadataRequest)
Copy link
Member

Choose a reason for hiding this comment

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

we should have a jira to cleanup the usage of MetadataCacheTest.updateCache, as it is using updateMetadataRequest which is not used by kraft production code anymore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this is already trace by https://issues.apache.org/jira/browse/KAFKA-18540.
I will handle it ASAP.

@github-actions github-actions bot removed the triage PRs from the community label Jan 17, 2025
@ijuma ijuma changed the title MINOR: retrieve testUnauthorizedTopicMetadataRequest MINOR: restore testUnauthorizedTopicMetadataRequest Jan 19, 2025
Copy link
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@ijuma
Copy link
Member

ijuma commented Jan 19, 2025

Failures are clearly unrelated since this is not changing any non test code:

FAILED ❌ ClientIdQuotaTest > testThrottledProducerConsumer(String, String).quorum=kraft.groupProtocol=classic
FAILED ❌ ClientIdQuotaTest > testThrottledProducerConsumer(String, String).quorum=kraft.groupProtocol=consumer
FAILED ❌ ClientIdQuotaTest > testQuotaOverrideDelete(String, String).quorum=kraft.groupProtocol=classic

@ijuma ijuma merged commit ff3de0c into apache:trunk Jan 19, 2025
8 of 10 checks passed
@TaiJuWu TaiJuWu deleted the retrive_miss_test branch January 19, 2025 09:37
ijuma pushed a commit that referenced this pull request Jan 19, 2025
This was removed during removal of zk code (#18542), but
we should instead convert it to work with kraft.

Reviewers: Ismael Juma <[email protected]>, Chia-Ping Tsai <[email protected]>
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
This was removed during removal of zk code (apache#18542), but
we should instead convert it to work with kraft.

Reviewers: Ismael Juma <[email protected]>, Chia-Ping Tsai <[email protected]>
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
This was removed during removal of zk code (apache#18542), but
we should instead convert it to work with kraft.

Reviewers: Ismael Juma <[email protected]>, Chia-Ping Tsai <[email protected]>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
This was removed during removal of zk code (apache#18542), but
we should instead convert it to work with kraft.

Reviewers: Ismael Juma <[email protected]>, Chia-Ping Tsai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved core Kafka Broker tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants