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

Move stale metadata check inside shard_for #4413

Closed
wants to merge 1 commit into from

Commits on Apr 26, 2022

  1. Move stale metadata check inside shard_for

    metadata_cache.contains() is a slow call with many partitions becase
    it scans the entire parition list looking for the specified one.
    
    On the fetch planning path we can avoid this cost simply by
    moving the check inside a shard_for check we do immediately
    after the metadata check: in a stable system the shard_for check will
    fail any time the metadata call will fail.
    
    Issue redpanda-data#4410
    travisdowns committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    5c0254c View commit details
    Browse the repository at this point in the history