Skip to content

TrackConsumersPool makes memory updates wait on one shared lock #24994

Description

@yashrb24

Describe the bug

TrackConsumersPool uses one exclusive lock around its consumer map. Every grow, shrink, and try_grow call takes this lock, even though these operations only look up a consumer. This means memory updates from different tasks/partitions must wait for each other.

The values stored for each consumer are already safe to update from multiple threads. We should allow these lookups to happen at the same time while keeping registration and reporting exclusive.

To Reproduce

N/A

Expected behavior

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions