-
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
Fixed node_hash_map
caused oversized allocations in cluster module
#17423
Conversation
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.
Looks fine from what I can tell.
Reminder that we lose pointer stability like this so this is something to check for whether it's needed.
new failures in https://buildkite.com/redpanda/redpanda/builds/46871#018e7f8e-df46-41e6-8570-d2f18f4137a1:
|
Replaced `node_hash_map` data structures that were used in `topic_table` to store topic and partition specific data with chunked hash maps to avoid large allocation of index table. Fixes: redpanda-data#16960 Signed-off-by: Michał Maślanka <michal@redpanda.com>
Fixes: redpanda-data#16959 Signed-off-by: Michał Maślanka <michal@redpanda.com>
Fixes: redpanda-data#16951 Signed-off-by: Michał Maślanka <michal@redpanda.com>
This is something I don't know how to address in a sane way. I can't think of a way to verify this without auditing all the uses of the container. |
Yeah not sure I am pretty sure you can write some form of clang-tidy analyzer (IIRC that's what google did with abseil) but it's certainly not easy. The possibility is to use debug iterators. We do actually implicitly get those as we use |
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/46888#018e80a1-4e29-4fe7-b1f5-4936921c8ef7 |
/backport v23.3.x |
Failed to create a backport PR to v23.3.x branch. I tried:
|
Replaced
absl::node_hash_map
with the newly introducedchunked_hash_map
to prevent oversized allocation needed for the indexing array.Fixes: #16960
Fixes: #16959
Fixes: #16951
Backports Required
Release Notes