Skip to content

KAFKA-18648: Add back support for metadata version 0-3#18716

Merged
ijuma merged 3 commits intoapache:trunkfrom
ijuma:kafka-18648-kafka-python-metadata-version
Jan 29, 2025
Merged

KAFKA-18648: Add back support for metadata version 0-3#18716
ijuma merged 3 commits intoapache:trunkfrom
ijuma:kafka-18648-kafka-python-metadata-version

Conversation

@ijuma
Copy link
Copy Markdown
Member

@ijuma ijuma commented Jan 27, 2025

During testing, we identified that kafka-python (and aiokafka) relies on metadata request v0 and
hence we need to add these back to comply with the premise of KIP-896 - i.e. it should not
break the clients listed within it.

I reverted the changes from #18218 related to the removal of metadata versions 0-3.

I will submit a separate PR to undeprecate these API versions on the relevant 3.x branches.

kafka-python (and aiokafka) work correctly (produce & consume) with this change on
top of the 4.0 branch.

Committer Checklist (excluded from commit message)

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

@ijuma ijuma changed the title (WIP) KAFKA-18648: Add back support for metadata version 1-3 (4.0) (WIP) KAFKA-18648: Add back support for metadata version 0-3 (4.0) Jan 28, 2025
@ijuma ijuma changed the title (WIP) KAFKA-18648: Add back support for metadata version 0-3 (4.0) KAFKA-18648: Add back support for metadata version 0-3 Jan 28, 2025
@ijuma ijuma force-pushed the kafka-18648-kafka-python-metadata-version branch from edf106d to 65ba914 Compare January 28, 2025 19:39
@ijuma ijuma changed the base branch from 4.0 to trunk January 28, 2025 19:41
@ijuma ijuma closed this Jan 28, 2025
@ijuma ijuma reopened this Jan 28, 2025
@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jan 28, 2025

Reopened the PR to get the CI to run.

@github-actions github-actions Bot added core Kafka Broker clients labels Jan 28, 2025
@ijuma ijuma requested review from chia7712 and mumrah January 28, 2025 21:26
@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jan 28, 2025

KafkaAdminClientTest > testAdminClientApisAuthenticationFailure() seems to be failing consistently in multiple PRs. Unrelated to this change.

@mumrah
Copy link
Copy Markdown
Member

mumrah commented Jan 28, 2025

@ijuma you can re-run the whole CI workflow in the UI. Select "Re-run all jobs"
image

You can also push an empty commit (or just merge in trunk).

Copy link
Copy Markdown
Member

@mumrah mumrah left a comment

Choose a reason for hiding this comment

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

LGTM

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jan 28, 2025

@ijuma you can re-run the whole CI workflow in the UI. Select "Re-run all jobs"

Yes, I've been using that. This particular test that I mentioned keeps failing. :)

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jan 29, 2025

(the reason why I reopened this PR is that GitHub didn't trigger the run after I changed the base branch and it seemed to get stuck - I usually rely on the button you shared)

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Jan 29, 2025

Java 23 build passed.

@ijuma ijuma merged commit e6d72c9 into apache:trunk Jan 29, 2025
@ijuma ijuma deleted the kafka-18648-kafka-python-metadata-version branch January 29, 2025 02:35
ijuma added a commit that referenced this pull request Jan 29, 2025
During testing, we identified that kafka-python (and aiokafka) relies on metadata request v0 and
hence we need to add these back to comply with the premise of KIP-896 - i.e. it should not
break the clients listed within it.

I reverted the changes from #18218 related to the removal of metadata versions 0-3.

I will submit a separate PR to undeprecate these API versions on the relevant 3.x branches.

kafka-python (and aiokafka) work correctly (produce & consume) with this change on
top of the 4.0 branch.

Reviewers: David Arthur <[email protected]>
pdruley pushed a commit to pdruley/kafka that referenced this pull request Feb 12, 2025
During testing, we identified that kafka-python (and aiokafka) relies on metadata request v0 and
hence we need to add these back to comply with the premise of KIP-896 - i.e. it should not
break the clients listed within it.

I reverted the changes from apache#18218 related to the removal of metadata versions 0-3.

I will submit a separate PR to undeprecate these API versions on the relevant 3.x branches.

kafka-python (and aiokafka) work correctly (produce & consume) with this change on
top of the 4.0 branch.

Reviewers: David Arthur <[email protected]>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
During testing, we identified that kafka-python (and aiokafka) relies on metadata request v0 and
hence we need to add these back to comply with the premise of KIP-896 - i.e. it should not
break the clients listed within it.

I reverted the changes from apache#18218 related to the removal of metadata versions 0-3.

I will submit a separate PR to undeprecate these API versions on the relevant 3.x branches.

kafka-python (and aiokafka) work correctly (produce & consume) with this change on
top of the 4.0 branch.

Reviewers: David Arthur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients core Kafka Broker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants