Skip to content

fix(posting): prevent stale cache hits when maxTs < readTs (#9597)#9614

Merged
matthewmcneely merged 1 commit intomainfrom
matthewmcneely/fix-cache-selection-ts-bug
Feb 27, 2026
Merged

fix(posting): prevent stale cache hits when maxTs < readTs (#9597)#9614
matthewmcneely merged 1 commit intomainfrom
matthewmcneely/fix-cache-selection-ts-bug

Conversation

@matthewmcneely
Copy link
Copy Markdown
Contributor

Description

When reading posting lists from the cache, readFromCache only verified that minTs <= readTs, but did not check that maxTs >= readTs. This allowed stale cache entries to be returned when newer data had been committed to disk but the cache hadn't been updated yet.

Closes #9597

Checklist

  • The PR title follows the
    Conventional Commits syntax, leading
    with fix:, feat:, chore:, ci:, etc.
  • Code compiles correctly and linting (via trunk) passes locally
  • Tests added for new functionality, or regression tests for bug fixes added as applicable

@matthewmcneely matthewmcneely requested a review from a team as a code owner February 26, 2026 17:53
@github-actions github-actions bot added area/testing Testing related issues area/core internal mechanisms go Pull requests that update Go code labels Feb 26, 2026
@matthewmcneely matthewmcneely merged commit 934a203 into main Feb 27, 2026
26 checks passed
@matthewmcneely matthewmcneely deleted the matthewmcneely/fix-cache-selection-ts-bug branch February 27, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core internal mechanisms area/testing Testing related issues go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

Inconsistent aggregate counts and query results across Alpha nodes under sustained writes (HA setup)

2 participants