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

pkg/block/fetcher: fix concurrent map usage #2474

Merged
merged 1 commit into from
Apr 20, 2020

Commits on Apr 20, 2020

  1. pkg/block/fetcher: fix concurrent map usage

    Fixes: thanos-io#2471
    
    This commit fixes an issue where multiple goroutines in the block
    fetcher filtering were concurrently accessing the same map. The
    goroutines were concurrently writing AND reading to the shared metas
    map. This commit guards this concurrent access by giving the
    DeduplicateFilter struct a mutex.
    
    Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
    squat committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    835875d View commit details
    Browse the repository at this point in the history