Skip to content

[v0.54.0]fix(tests): fix flaky tests#260

Merged
openshift-merge-bot[bot] merged 2 commits intoViaQ:v0.54.0-rhfrom
vparfonov:fix-flaky-file-source-test-v054
Apr 22, 2026
Merged

[v0.54.0]fix(tests): fix flaky tests#260
openshift-merge-bot[bot] merged 2 commits intoViaQ:v0.54.0-rhfrom
vparfonov:fix-flaky-file-source-test-v054

Conversation

@vparfonov
Copy link
Copy Markdown

@vparfonov vparfonov commented Apr 22, 2026

This PR:

…test

Backport upstream fix (vectordotdev#24957) for a race condition
in run_file_source test helper. When using Unfinalized acking mode,
the default Delivered status on drop leaked checkpoint writes, causing
the second run to skip re-reading the file.

Use EventStatus::Rejected for Unfinalized mode so events are finalized
but checkpoints are NOT updated, eliminating the race condition.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-ci openshift-ci Bot requested review from jcantrill and syedriko April 22, 2026 05:42
Add yield_now() after dropping the buffer writer to allow the background
finalizer task to release its Arc<Ledger> and the lock file before
attempting to reopen the buffer. Without this, a race condition can
cause LedgerLockAlreadyHeld errors when the finalizer task hasn't
exited before the new buffer is created.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vparfonov vparfonov changed the title fix(tests): fix flaky file_start_position_server_restart_unfinalized test [v0.54.0]fix(tests): fix flaky file_start_position_server_restart_unfinalized test Apr 22, 2026
@vparfonov vparfonov changed the title [v0.54.0]fix(tests): fix flaky file_start_position_server_restart_unfinalized test [v0.54.0]fix(tests): fix flaky tests Apr 22, 2026
@vparfonov
Copy link
Copy Markdown
Author

/assign @jcantrill

Copy link
Copy Markdown
Member

@jcantrill jcantrill left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Apr 22, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 22, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcantrill, vparfonov

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

The pull request process is described 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-merge-bot openshift-merge-bot Bot merged commit 68f9190 into ViaQ:v0.54.0-rh Apr 22, 2026
9 checks passed
@vparfonov vparfonov deleted the fix-flaky-file-source-test-v054 branch April 22, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants