Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tsdb: deprecate V1 block format with warning#17701

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
adityatyagi821 wants to merge1 commit intoprometheus:main
base:main
Choose a base branch
Loading
fromadityatyagi821:main

Conversation

@adityatyagi821
Copy link

This PR deprecates support for TSDB V1 block format by adding a one-time warning when a V1 block is read.

Changes:

  • AddedwarnV1Once global variable.
  • Added a warning in readMetaFile() when a V1 block is detected.
  • Ensures the warning is only logged once per process using sync.Once.

This does NOT remove V1 support yet. This is a first step to inform users that V1 blocks will be removed in a future Prometheus release (v4).

All TSDB tests pass.

@roidelapluie
Copy link
Member

Why do we need this ? I think we should re-compact these blocks to another version instead of removing support for it.

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

Reviewers

@jesusvazquezjesusvazquezAwaiting requested review from jesusvazquezjesusvazquez is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@adityatyagi821@roidelapluie

[8]ページ先頭

©2009-2025 Movatter.jp