Skip to content

[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

Merged
merged 2 commits into from
Jul 15, 2025

Conversation

hedgieinsocks
Copy link
Contributor

@hedgieinsocks hedgieinsocks commented Jul 12, 2025

I have noticed that my custom sync_binlog=1000 value from .spec.myCnf is not applied. It turned out the operator enforces either 1 or 0. 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:

  • If you previously set syncBinlog=true, set syncBinlog=1
  • If you previously set syncBinlog=false, set syncBinlog=0
  • If you want the binary log to be flushed to disk after a given <number> of events, set syncBinlog=<number>

@hedgieinsocks
Copy link
Contributor Author

@mmontes11 I think unit test workflow should be updated after recent changes. It passes only because of make: Nothing to be done for 'test'. e.g. https://github.com/mariadb-operator/mariadb-operator/actions/runs/16235625445/job/45845334316?pr=1324 when in reality there are some issues.

@mmontes11
Copy link
Member

mmontes11 commented Jul 12, 2025

Hey @hedgieinsocks ! Thanks for flagging this. Indeed, there were some regressions in our end. Please rebase with main!

@hedgieinsocks hedgieinsocks force-pushed the sync_binlog_to_int branch 2 times, most recently from 1e7f881 to dbc5743 Compare July 13, 2025 19:01
@mmontes11 mmontes11 self-requested a review July 14, 2025 07:31
@mmontes11 mmontes11 changed the title Convert SyncBinlog to integer BREAKING CHANGE: Convert SyncBinlog to integer Jul 14, 2025
Copy link
Member

@mmontes11 mmontes11 left a 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.

@mmontes11 mmontes11 self-requested a review July 14, 2025 08:50
Copy link
Member

@mmontes11 mmontes11 left a 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?

@mmontes11 mmontes11 self-requested a review July 15, 2025 09:46
Copy link
Member

@mmontes11 mmontes11 left a 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.

@mmontes11 mmontes11 merged commit e023a6e into mariadb-operator:main Jul 15, 2025
10 checks passed
@mmontes11 mmontes11 changed the title BREAKING CHANGE: Convert SyncBinlog to integer BREAKING CHANGE: [Replication] Convert SyncBinlog to integer Jul 18, 2025
@mmontes11 mmontes11 mentioned this pull request Jul 18, 2025
8 tasks
@mmontes11 mmontes11 changed the title BREAKING CHANGE: [Replication] Convert SyncBinlog to integer [BREAKING CHANGE, Replication] Convert SyncBinlog to integer Jul 18, 2025
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy