Skip to content

feat: update TSDB block meta extensions field when converted to parquet#14

Open
verejoel wants to merge 4 commits intothanos-io:mainfrom
verejoel:feature/migration-path
Open

feat: update TSDB block meta extensions field when converted to parquet#14
verejoel wants to merge 4 commits intothanos-io:mainfrom
verejoel:feature/migration-path

Conversation

@verejoel
Copy link
Copy Markdown
Contributor

@verejoel verejoel commented Jul 8, 2025

Fixes #11 .

I also added support for this new flag in Thanos: thanos-io/thanos#8366

Signed-off-by: Joel Verezhak <j.verezhak@gmail.com>
@verejoel verejoel force-pushed the feature/migration-path branch from 9db3485 to de5276b Compare July 8, 2025 14:13
verejoel added 2 commits July 8, 2025 16:38
Signed-off-by: Joel Verezhak <j.verezhak@gmail.com>
Signed-off-by: Joel Verezhak <j.verezhak@gmail.com>
@verejoel verejoel force-pushed the feature/migration-path branch from 527e0cd to 5341da1 Compare July 8, 2025 14:46
@verejoel verejoel marked this pull request as ready for review July 8, 2025 14:50
Comment thread convert/convert.go Outdated
Comment thread convert/convert.go Outdated
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Comment thread convert/convert.go
// ParquetMigratedExtensionKey is the key used in TSDB block metadata Extensions
// to indicate that the block has been migrated to Parquet format.
// TODO: Import this constant from Thanos when it becomes available in their metadata package.
ParquetMigratedExtensionKey = "parquet_migrated"
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.

@GiedriusS
Copy link
Copy Markdown
Member

I'm afraid this is a bit harder than it looks like - if the converter process crashes right before this marking then the blocks are successfully converted but on the other side meta.json doesn't have that marker. Instead I suggest doing a different thing - in meta.pb track the list of ULIDs from which that Parquet block was converted and read them from the original Thanos Store instance.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve migration path

2 participants