-
Notifications
You must be signed in to change notification settings - Fork 552
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
k/h/metadata: use fragmented vec for topic metadata #15751
Conversation
859e8ce
to
f474465
Compare
f474465
to
6b19d55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. couple extremely not blocking nits
6b19d55
to
afd4178
Compare
Force push: remove out of date comment |
afd4178
to
1b46d08
Compare
Force push: use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
For workloads with a large amount of topics, this topics vector can grow to be an oversized allocation. Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
1b46d08
to
c535652
Compare
@@ -108,8 +108,8 @@ class delete_topics_request_fixture : public redpanda_thread_fixture { | |||
void validate_topic_is_deleteted(const model::topic& tp) { | |||
kafka::metadata_response resp = get_topic_metadata(tp); | |||
auto it = std::find_if( | |||
std::cbegin(resp.data.topics), | |||
std::cend(resp.data.topics), | |||
resp.data.topics.begin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because fragmented_vector
is missing const
-qualified versions of begin & end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you cannot compare const iterator to non const in frag vector, and you can in vector, so I just switch this all to use the non constant version (in the assertion below)
/backport v23.3.x |
/backport v23.2.x |
Failed to create a backport PR to v23.2.x branch. I tried:
|
For workloads with a large amount of topics, this topics vector can grow
to be an oversized allocation.
Backports Required
Release Notes
Improvements