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

Metadata refactor to add internal fields #4279

Conversation

emasab
Copy link
Contributor

@emasab emasab commented May 12, 2023

The additional memory is allocated after the public struct and freed together with it, along with nested array memory, through the usage of rd_tmpabuf_t.

mdit->brokers are sorted by mdit->brokers[i].id
mdit->topics[i].partitions are sorted by mdit->topics[i].partitions[j].id.

emasab added 3 commits May 12, 2023 09:44
store private metadata into a struct that contains
the public one.
Replaced by rd_kafka_metadata_internal_t
remove internal accessors.
Copy link
Contributor

@milindl milindl 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 making this change!

src/rdkafka_int.h Outdated Show resolved Hide resolved
src/rdkafka_metadata.h Show resolved Hide resolved
src/rdkafka_range_assignor.c Outdated Show resolved Hide resolved
emasab and others added 3 commits May 15, 2023 14:05
Add internal accessor function for that.
for rd_kafka_metadata_get_internal
@milindl milindl merged commit f976d27 into dev_kip881_all_protocol_changes May 15, 2023
@milindl milindl deleted the dev_kip881_all_protocol_changes_metadata_refactor branch May 15, 2023 15:57
milindl added a commit that referenced this pull request May 16, 2023
* Change embedded MemberMetadata protocol [KIP-881]

* Change parsing of Metadata to extract broker racks [KIP-881]

* Metadata refactor to add internal fields (#4279)

* Metadata and leader epoch refactor.
store private metadata into a struct that contains
the public one.


Co-authored-by: Emanuele Sabellico <esabellico@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants