Skip to content

feat: ignore parquet migrated blocks in store gateway#8366

Merged
GiedriusS merged 2 commits intothanos-io:mainfrom
verejoel:feature/parquet-migration-flag
Jul 16, 2025
Merged

feat: ignore parquet migrated blocks in store gateway#8366
GiedriusS merged 2 commits intothanos-io:mainfrom
verejoel:feature/parquet-migration-flag

Conversation

@verejoel
Copy link
Copy Markdown
Contributor

@verejoel verejoel commented Jul 8, 2025

This PR aims to provide a clean migration path when using the thanos-parquet-gateway. By supporting this new extension key, blocks can be optionally ignored by the store gateway metasyncers.

For additional details, see thanos-io/thanos-parquet-gateway#14

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • introduce new constant to block package that is used as meta extension key to denote that a block has been migrated to Parquet
  • introduce new meta syncer filter that ignores blocks if ParquetMigrated extension flag is set
  • add a new flag to the store gateway, which ignores blocks where ParquetMigrated flag is set if enabled

Verification

Tested locally with filesystem blocks.

Signed-off-by: Joel Verezhak <j.verezhak@gmail.com>
@verejoel verejoel force-pushed the feature/parquet-migration-flag branch from 2d00a9c to ecd54da Compare July 8, 2025 15:46

cmd.Flag("disable-admin-operations", "Disable UI/API admin operations like marking blocks for deletion and no compaction.").Default("false").BoolVar(&sc.disableAdminOperations)

cmd.Flag("ignore-parquet-migrated-blocks", "If true, store gateway will ignore blocks that have been migrated to parquet format. This allows for safe migration from TSDB to parquet blocks.").Default("false").BoolVar(&sc.ignoreParquetMigratedBlocks)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, let's always enable this, it doesn't make sense to introduce yet another flag. We already have a million of them

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
@GiedriusS GiedriusS force-pushed the feature/parquet-migration-flag branch from d3c47df to b495129 Compare July 16, 2025 15:30
@GiedriusS GiedriusS marked this pull request as ready for review July 16, 2025 19:50
@GiedriusS GiedriusS merged commit 0dc0b29 into thanos-io:main Jul 16, 2025
33 of 35 checks passed
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.

2 participants