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

c/topic_table_probe: use btree_map in topic table probe #16798

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Feb 29, 2024

Replaced absl::flat_hash_map that was used in topic_table_probe with the btree_map to avoid large allocations when we deal with large number of topics.
Fixes: #16779

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

Replaced `absl::flat_hash_map` that was used in `topic_table_probe` with
the `btree_map` to avoid large allocations when we deal with large
number of topics.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
@mmaslankaprv mmaslankaprv marked this pull request as ready for review February 29, 2024 11:23
@mmaslankaprv mmaslankaprv merged commit 5d64679 into redpanda-data:dev Feb 29, 2024
19 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

@vbotbuildovich
Copy link
Collaborator

/backport v23.2.x

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.

.Oversized allocation: 401408 bytes in topic_table_probe::handle_topic_creation
3 participants