-
Notifications
You must be signed in to change notification settings - Fork 138
[BREAKING CHANGE, Replication] Convert SyncBinlog to integer #1324
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
[BREAKING CHANGE, Replication] Convert SyncBinlog to integer #1324
Conversation
@mmontes11 I think unit test workflow should be updated after recent changes. It passes only because of |
Hey @hedgieinsocks ! Thanks for flagging this. Indeed, there were some regressions in our end. Please rebase with main! |
1e7f881
to
dbc5743
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hedgieinsocks ! Thanks for raising this.
Makes sense to me, left a couple of suggestions.
This will be listed as breaking change in the following release, as indicated in the PR description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hedgieinsocks could you rebase with main?
a80ce30
to
09895e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for this contribution.
I have noticed that my custom
sync_binlog=1000
value from.spec.myCnf
is not applied. It turned out the operator enforces either1
or0
. I think we should convert it to integer to allow proper configuration for those who want it.P.S. I believe this will require a special mention in the release notes so those who set it to
false
could update their manifests.BREAKING CHANGE:
syncBinlog
is now a*int
instead of a*bool
, allowing to indicate the number of events after which the binlog is flushed to disk (see MariaDB docs.). Follow these steps for migrating:syncBinlog=true
, setsyncBinlog=1
syncBinlog=false
, setsyncBinlog=0
<number>
of events, setsyncBinlog=<number>