Skip to content

Metadata refactor to add internal fields#4279

Merged
Milind L (milindl) merged 6 commits intodev_kip881_all_protocol_changesfrom
dev_kip881_all_protocol_changes_metadata_refactor
May 15, 2023
Merged

Metadata refactor to add internal fields#4279
Milind L (milindl) merged 6 commits intodev_kip881_all_protocol_changesfrom
dev_kip881_all_protocol_changes_metadata_refactor

Conversation

@emasab
Copy link
Copy Markdown
Contributor

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.

store private metadata into a struct that contains
the public one.
Replaced by rd_kafka_metadata_internal_t
remove internal accessors.
Copy link
Copy Markdown
Contributor

@milindl Milind L (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!

Comment thread src/rdkafka_int.h Outdated
Comment thread src/rdkafka_metadata.h
Comment thread src/rdkafka_range_assignor.c Outdated
Comment thread src/rdkafka.c
Add internal accessor function for that.
for rd_kafka_metadata_get_internal
@milindl Milind L (milindl) merged commit f976d27 into dev_kip881_all_protocol_changes May 15, 2023
@milindl Milind L (milindl) deleted the dev_kip881_all_protocol_changes_metadata_refactor branch May 15, 2023 15:57
Milind L (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 <[email protected]>
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