-
Notifications
You must be signed in to change notification settings - Fork 589
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
storage: change map type for _db
in kvstore
#18499
storage: change map type for _db
in kvstore
#18499
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.
I think those issues are actually already fixed by Tyler's commit from 3 months ago changing this from a node_hash_map to a btree_map.
However we didn't have chunked_hash_map back then so this is the right thing to do either way.
#include "bytes/iobuf.h" | ||
#include "container/chunked_hash_map.h" | ||
#include "metrics/metrics.h" | ||
#include "storage/fwd.h" | ||
#include "storage/ntp_config.h" |
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.
good to remove the btree include further down?
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.
Oops, fixed!
also backport to 24.1 at least? |
In an effort to move to fragmented data structures, the `absl::btree_map` type used in the `kvstore` is now replaced by a `chunked_hash_map`. We do not rely on the ordering or any sort of pointer/reference/iterator stability provided by `absl::btree_map` in our current uses of `_db`, so this is a painless swap.
85fe2a3
to
88a1614
Compare
/backport v24.1.x |
In an effort to move to fragmented data structures, the
absl::btree_map
type used in thekvstore
is now replaced by achunked_hash_map
.We do not rely on the ordering or any sort of pointer/reference/iterator stability provided by
absl::btree_map
in our current uses of_db
, so this is a painless swap.Fixes #15906
Fixes #10744
Backports Required
Release Notes