Skip to content

Fix stale event DedicatedAttributes when Trace buffer is reused#6878

Closed
mapno wants to merge 1 commit intografana:mainfrom
mapno:fix/reset-event-dedicated-attrs
Closed

Fix stale event DedicatedAttributes when Trace buffer is reused#6878
mapno wants to merge 1 commit intografana:mainfrom
mapno:fix/reset-event-dedicated-attrs

Conversation

@mapno
Copy link
Copy Markdown
Contributor

@mapno mapno commented Apr 8, 2026

What this PR does:

Reset event DedicatedAttributes before writing attributes in eventToParquet. The Trace buffer is reused across traces during block creation (create.go), and unlike resources and spans, events were not resetting their DedicatedAttributes. This caused dedicated event attribute values from a previous trace to leak into subsequent traces occupying the same buffer position.

Resources reset at schema.go:411, spans reset at schema.go:515, but events at schema.go:594 were missing the reset.

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a correctness issue in the vParquet5 trace-to-parquet conversion where Event.DedicatedAttributes could retain values from a previously-encoded trace when the Trace buffer is reused during block creation.

Changes:

  • Reset Event.DedicatedAttributes before writing event attributes in eventToParquet.

Comment thread tempodb/encoding/vparquet5/schema.go
Reset event DedicatedAttributes before writing attributes in
eventToParquet. The Trace buffer is reused across traces during block
creation (create.go), and unlike resources and spans, events were not
resetting their DedicatedAttributes. This caused dedicated event
attribute values from a previous trace to leak into subsequent traces
occupying the same buffer position.
@mapno mapno force-pushed the fix/reset-event-dedicated-attrs branch from 545eab5 to 7f8ad29 Compare April 8, 2026 18:29
@mapno mapno marked this pull request as ready for review April 8, 2026 18:29
Copilot AI review requested due to automatic review settings April 8, 2026 18:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread tempodb/encoding/vparquet5/schema.go
@mapno
Copy link
Copy Markdown
Contributor Author

mapno commented Apr 10, 2026

Superseded by #6914

@mapno mapno closed this Apr 10, 2026
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