Skip to content

fix(store-gateway): ensure Parquet bucket store honors query sharding - #7892

Open
SungJin1212 wants to merge 1 commit into
cortexproject:masterfrom
SungJin1212:fix-parquet-store-query-sharding
Open

SungJin1212 wants to merge 1 commit into
cortexproject:masterfrom
SungJin1212:fix-parquet-store-query-sharding

Conversation

@SungJin1212

Copy link
Copy Markdown
Member

What this PR does:
parquetBucketStore.Series ignores the query sharding info of a Series request. It injects req.ShardInfo into ctx, but the next errgroup.WithContext(srv.Context()) shadows ctx with the original request context. shard.Query therefore never sees the shard info, materializedLabelsFilterCallback doesn't filter, and every vertical shard gets back all series.

This PR passes the shard-aware ctx to errgroup.WithContext. LabelNames/LabelValues already do this.

I've noticed this in https://github.com/cortexproject/cortex/actions/runs/39948129153/job/120397954890?pr=7689

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

@SungJin1212
SungJin1212 requested a review from a team as a code owner October 23, 2026 12:34
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@SungJin1212
SungJin1212 force-pushed the fix-parquet-store-query-sharding branch from c7f679f to c2e2565 Compare October 23, 2026 12:35

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant