Skip to content

box: flush WAL queue on sync#11315

Merged
sergepetrenko merged 1 commit intotarantool:masterfrom
nshy:gh-11118-flush-queue-on-wal-sync
Apr 3, 2025
Merged

box: flush WAL queue on sync#11315
sergepetrenko merged 1 commit intotarantool:masterfrom
nshy:gh-11118-flush-queue-on-wal-sync

Conversation

@nshy
Copy link
Contributor

@nshy nshy commented Mar 31, 2025

wal_sync() is expected to flush all prepared txns on disk. Currently it is not so because we do not flush txns waiting in WAL queue. AFAIU the issue exists for all the places where we use wal_sync() (except for box_wait_limbo_acked() where we already flush WAL queue). The test is only added for the vinyl index build as there are explicit tickets for that.

Closes #11118
Closes #11119

`wal_sync()` is expected to flush all prepared txns on disk. Currently
it is not so because we do not flush txns waiting in WAL queue. AFAIU
the issue exists for all the places where we use `wal_sync()` (except
for `box_wait_limbo_acked()` where we already flush WAL queue). The test
is only added for the vinyl index build as there are explicit tickets for
that.

Closes tarantool#11118
Closes tarantool#11119

NO_DOC=bugfix
@nshy nshy requested a review from a team as a code owner March 31, 2025 10:21
@coveralls
Copy link

Coverage Status

coverage: 87.465% (-0.02%) from 87.485%
when pulling 48b296a on nshy:gh-11118-flush-queue-on-wal-sync
into e2a6e2c
on tarantool:master
.

Copy link
Collaborator

@sergepetrenko sergepetrenko left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! LGTM.

@sergepetrenko sergepetrenko assigned nshy and unassigned sergepetrenko Apr 1, 2025
@sergepetrenko sergepetrenko assigned sergepetrenko and unassigned nshy Apr 2, 2025
@sergepetrenko sergepetrenko added full-ci Enables all tests for a pull request backport/2.11 Automatically create a 2.11 backport PR backport/3.2 Automatically create a 3.2 backport PR backport/3.3 Automatically create a 3.3 backport PR and removed full-ci Enables all tests for a pull request labels Apr 2, 2025
@sergepetrenko sergepetrenko merged commit af5f033 into tarantool:master Apr 3, 2025
83 of 85 checks passed
@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/2.11:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.2:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.3:

@TarantoolBot
Copy link
Collaborator

Backport summary

@nshy nshy deleted the gh-11118-flush-queue-on-wal-sync branch April 3, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/2.11 Automatically create a 2.11 backport PR backport/3.2 Automatically create a 3.2 backport PR backport/3.3 Automatically create a 3.3 backport PR

Projects

None yet

5 participants