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

[Cache] Fix versioned namespace atomic clears #35803

Merged
merged 1 commit into from Feb 24, 2020
Merged

[Cache] Fix versioned namespace atomic clears #35803

merged 1 commit into from Feb 24, 2020

Commits on Feb 20, 2020

  1. Fix versioned namespace clears

    When using namespace versioning to achieve atomic cache clears, only
    delete cache keys matching the old/current version.
    
    This resolves tag inconsistency issues whereby the process running the
    clear would delete keys set against the new version by more recently
    spawned concurreny processes. Most seriously this could result in newly
    set data keys remaining, but with empty associated tag sets meaning the
    invalidation via tags was no longer possible.
    
    Clearing specific prefixes is not supported when using versioned
    namespaces as it is desirable to clear all old keys as they will no
    longer be used and would otherwise eventually fill cache memory.
    Trevor North committed Feb 20, 2020
    Copy the full SHA
    971b177 View commit details
    Browse the repository at this point in the history