You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `finalize()` is called right after a rotation, the current segment
contains only a file header and SegmentMetadata — no real trace events.
Previously this empty segment was sealed as a `.bin` file, picked up by
the background worker, and uploaded to S3. This caused the
`stress_test_all_segments_uploaded_and_valid` test to flake (~1hr to
reproduce) when it asserted every uploaded segment has events.
The fix tracks whether any real events have been written to the current
segment (`has_real_events`). On `finalize()`, if no real events exist,
the `.active` file is deleted instead of sealed. This also avoids
wasting bandwidth uploading empty segments in production.
Also adds an optional `test_filter` input to the stress test workflow
so individual tests can be targeted for validation.
0 commit comments