Skip to content

MINOR: restore testUnauthorizedTopicMetadataRequest - #18578

Merged
ijuma merged 1 commit into
apache:trunkfrom
TaiJuWu:retrive_miss_test
Jan 19, 2025
Merged

MINOR: restore testUnauthorizedTopicMetadataRequest#18578
ijuma merged 1 commit into
apache:trunkfrom
TaiJuWu:retrive_miss_test

Conversation

@TaiJuWu

@TaiJuWu TaiJuWu commented Jan 16, 2025

Copy link
Copy Markdown
Collaborator

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

@chia7712 chia7712 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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

@ijuma ijuma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks.

@ijuma

ijuma commented Jan 19, 2025

Copy link
Copy Markdown
Member

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
@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 <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
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 <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
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 <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
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 <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
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