Skip to content

fix(tests): fix flaky initial_size_correct_with_multievents test#268

Open
vparfonov wants to merge 1 commit into
ViaQ:v0.54.0-rhfrom
vparfonov:fix-flaky-ledger-lock-test-rh
Open

fix(tests): fix flaky initial_size_correct_with_multievents test#268
vparfonov wants to merge 1 commit into
ViaQ:v0.54.0-rhfrom
vparfonov:fix-flaky-ledger-lock-test-rh

Conversation

@vparfonov
Copy link
Copy Markdown

Manually construct a write-only BufferWriter and Ledger during the test setup instead of using create_default_buffer_v2. This prevents spawning a detached background finalizer task, ensuring the Arc<Ledger> and file lock are released synchronously and deterministically when dropped.

cherry pick: vectordotdev#25239

Manually construct a write-only `BufferWriter` and `Ledger` during the test setup instead of using `create_default_buffer_v2`.
This prevents spawning a detached background finalizer task, ensuring the `Arc<Ledger>` and file lock are released synchronously
and deterministically when dropped.
@openshift-ci openshift-ci Bot requested a review from cahartma May 11, 2026 12:59
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 11, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vparfonov
Once this PR has been reviewed and has the lgtm label, please assign xperimental for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot requested a review from jcantrill May 11, 2026 12:59
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.

1 participant