Skip to content

compactor: return error if encoding is unsupported#6209

Merged
carles-grafana merged 1 commit intografana:mainfrom
carles-grafana:fix-compactor-panic
Jan 14, 2026
Merged

compactor: return error if encoding is unsupported#6209
carles-grafana merged 1 commit intografana:mainfrom
carles-grafana:fix-compactor-panic

Conversation

@carles-grafana
Copy link
Copy Markdown
Contributor

@carles-grafana carles-grafana commented Jan 14, 2026

Otherwise it will panic.
This happens when trying to compact preview blocks.

What this PR does:

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]

Otherwise it will panic.
This happens when trying to compact preview blocks.
Comment thread tempodb/compactor_test.go
meta := &backend.BlockMeta{
BlockID: backend.NewUUID(),
TenantID: testTenantID,
Version: "vParquet5-preview6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: for test might be more illustrative to have vParquet5-unsupported if that works

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's only versions with "preview" that are considered unsupported. others are considered invalid and already returned an error. see https://github.com/carles-grafana/tempo/blob/fix-compactor-panic/tempodb/encoding/versioned.go#L71

@carles-grafana carles-grafana merged commit 39b229b into grafana:main Jan 14, 2026
22 checks passed
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.

2 participants