Skip to content

Upgrade Thanos v0.42.0#7691

Open
SungJin1212 wants to merge 3 commits into
masterfrom
upgrade-thanos-0.42.0
Open

Upgrade Thanos v0.42.0#7691
SungJin1212 wants to merge 3 commits into
masterfrom
upgrade-thanos-0.42.0

Conversation

@SungJin1212

@SungJin1212 SungJin1212 commented Jul 16, 2026

Copy link
Copy Markdown
Member

Upgrade thanos version to v0.42.0

Changes

  • At store.NewBucketStore, the enableCompatibilityLabel parameter has been removed.
    Thanos completely removed the legacy compatibility feature that attached an external label.

  • At shipper.New, the dir parameter changed from string to *os.Root.
    The Thanos shipper switched to os.Root-based file access, so we added Close() to the Shipper interface so that userTSDB.Close() can release the file descriptor held by the shipper.

  • Thanos's block.Delete() now issues two additional Delete() calls for directory marker objects (<blockID>/chunks/ and <blockID>/) after removing a block's contents, to clean up empty directory markers left behind by some object storage backends.
    ㄴ Add the missing MockDelete expectations for the directory marker paths.

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

@dosubot dosubot Bot added component/store-gateway dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jul 16, 2026
@SungJin1212 SungJin1212 changed the title Add Close method to Shipper interface and handle closure in userTSDB Upgrade Thanos v0.42.0 Jul 16, 2026
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@SungJin1212 SungJin1212 force-pushed the upgrade-thanos-0.42.0 branch from 98c8d7a to de65d13 Compare July 16, 2026 02:35
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
…anup

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/store-gateway dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant