[MDEV-9996] Do not replicate debian-sys-maint user setup in Debian postinst Created: 2016-04-26 Updated: 2020-10-01 Resolved: 2020-10-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Debian |
| Affects Version/s: | 5.5.49 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Tim Gokcen | Assignee: | Sergei Golubchik |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 7, Debian 8 |
||
| Issue Links: |
|
||||||||
| Description |
|
The postinst scripts for Debian (and Ubuntu) run several statements using the --bootstrap option to mysqld:
Because these statements will normally be sent to the binary log, these statements will be replicated – including, crucially, the setting of a new password for debian-sys-maint, which will break the /etc/init.d/mysql script on mysql slaves. The ALTER TABLE statement is also problematic. The debian-sys-maint problem is particularly bad in master-master setups, as each upgrade of MariaDB server will reset the debian-sys-maint user and cause a mismatch with the /etc/mysql/debian.cnf file on the "other" server. These three blocks should have SET SQL_LOG_BIN=0; added to the top so that these statements are never replicated. This is a similar issue to |
| Comments |
| Comment by Elena Stepanova [ 2016-05-02 ] |
|
Hi, Do you actually see it happen on 10.0.23, as the 'Affect Version/s' field says? |
| Comment by Tim Gokcen [ 2016-05-02 ] |
|
My mistake; I saw it happen in 5.5.49 and checked the source for 10.0.23, but I missed the --disable-log-bin that was added and thought it was still present. |
| Comment by Elena Stepanova [ 2016-05-02 ] |
|
Thanks. |
| Comment by Daniel Black [ 2020-10-01 ] |
|
fixed in 10.0.17+ per https://github.com/MariaDB/server/commit/dc94bd09b875b7aac106761f1a398c1c6de036f9 5.5. eol |