Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wal: fix wal_queue_max_size assignment during initial box.cfg #10015

Merged

Conversation

sergepetrenko
Copy link
Collaborator

@sergepetrenko sergepetrenko commented May 16, 2024

wal_queue_max_size took effect only after the initial box.cfg call, meaning that users with non-zero replication_sync_timeout still synced using the default 16 Mb queue size. In some cases the default was too big and the same issues described in #5536 arose.

Fix this.

Closes #10013

NO_DOC=bugfix

@sergepetrenko sergepetrenko self-assigned this May 16, 2024
@sergepetrenko sergepetrenko requested a review from a team as a code owner May 16, 2024 12:52
@coveralls
Copy link

coveralls commented May 16, 2024

Coverage Status

coverage: 87.101% (+0.02%) from 87.083%
when pulling 0593032 on sergepetrenko:apply-wal-queue-max-size
into 2cfba5e
on tarantool:master
.

Copy link
Contributor

@Serpentian Serpentian left a comment

Choose a reason for hiding this comment

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

Thank you for the patch! No objections. Looks great!

@Serpentian Serpentian removed their assignment May 16, 2024
Copy link
Collaborator

@Gerold103 Gerold103 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 patch!

@sergepetrenko sergepetrenko added full-ci Enables all tests for a pull request and removed full-ci Enables all tests for a pull request labels May 20, 2024
wal_queue_max_size took effect only after the initial box.cfg call,
meaning that users with non-zero `replication_sync_timeout` still synced
using the default 16 Mb queue size. In some cases the default was too
big and the same issues described in tarantool#5536 arose.

Fix this.

Closes tarantool#10013

NO_DOC=bugfix
@sergepetrenko sergepetrenko added the full-ci Enables all tests for a pull request label May 21, 2024
@sergepetrenko sergepetrenko merged commit ab0f791 into tarantool:master May 21, 2024
93 checks passed
@sergepetrenko
Copy link
Collaborator Author

Backports:
3.1 #10035
2.11 #10034

@sergepetrenko sergepetrenko deleted the apply-wal-queue-max-size branch May 22, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wal_queue_max_size is set too late on initial box.cfg
5 participants