Skip to content

KAFKA-18308; Update CoordinatorSerde#18455

Merged
dajac merged 2 commits intoapache:trunkfrom
dajac:KAFKA-18308
Jan 10, 2025
Merged

KAFKA-18308; Update CoordinatorSerde#18455
dajac merged 2 commits intoapache:trunkfrom
dajac:KAFKA-18308

Conversation

@dajac
Copy link
Copy Markdown
Member

@dajac dajac commented Jan 9, 2025

This patch updates the GroupCoordinatorSerde and the ShareGroupCoordinatorSerde to leverage the CoordinatorRecordType to deserialize records. With this, newly added record are automatically picked up. In other words, the serdes work with all defined records without doing anything.

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 KIP-932 Queues for Kafka generator RPC and Record code generator labels Jan 9, 2025
Copy link
Copy Markdown
Member

@AndrewJSchofield AndrewJSchofield left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

}

@Override
protected ApiMessage apiMessageKeyFor(short recordVersion) {
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.

Personally, I would take this opportunity to stop using "recordVersion" as the variable name here. Really, it has become record type, which happened to be implemented as a version number.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Makes sense. Changed it.

@github-actions github-actions Bot added the transactions Transactions and EOS label Jan 10, 2025
@dajac dajac merged commit 87334e6 into apache:trunk Jan 10, 2025
@dajac dajac deleted the KAFKA-18308 branch January 10, 2025 10:17
m1a2st pushed a commit to m1a2st/kafka that referenced this pull request Jan 10, 2025
This patch updates the GroupCoordinatorSerde and the ShareGroupCoordinatorSerde to leverage the CoordinatorRecordType to deserialize records. With this, newly added record are automatically picked up. In other words, the serdes work with all defined records without doing anything.

Reviewers: Andrew Schofield <aschofield@confluent.io>
ijuma added a commit to ijuma/kafka that referenced this pull request Jan 10, 2025
…emove-metadata-version-methods-for-versions-older-than-3.0

* apache-github/trunk:
  KAFKA-18340: Change Dockerfile to use log4j2 yaml instead log4j properties (apache#18378)
  MINOR: fix flaky RemoteLogManagerTest#testStopPartitionsWithDeletion (apache#18474)
  KAFKA-18311: Enforcing copartitioned topics (4/N) (apache#18397)
  KAFKA-18308; Update CoordinatorSerde (apache#18455)
  KAFKA-18440: Convert AuthorizationException to fatal error in AdminClient (apache#18435)
  KAFKA-17671: Create better documentation for transactions (apache#17454)
  KAFKA-18304; Introduce json converter generator (apache#18458)
  MINOR: Clean up classic group tests (apache#18473)
  KAFKA-18399 Remove ZooKeeper from KafkaApis (2/N): CONTROLLED_SHUTDOWN and ENVELOPE (apache#18422)
  MINOR: improve StreamThread periodic processing log (apache#18430)
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
This patch updates the GroupCoordinatorSerde and the ShareGroupCoordinatorSerde to leverage the CoordinatorRecordType to deserialize records. With this, newly added record are automatically picked up. In other words, the serdes work with all defined records without doing anything.

Reviewers: Andrew Schofield <aschofield@confluent.io>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
This patch updates the GroupCoordinatorSerde and the ShareGroupCoordinatorSerde to leverage the CoordinatorRecordType to deserialize records. With this, newly added record are automatically picked up. In other words, the serdes work with all defined records without doing anything.

Reviewers: Andrew Schofield <aschofield@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generator RPC and Record code generator KIP-932 Queues for Kafka transactions Transactions and EOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants