[MDEV-11912] Debian package postinst scripts breaks chained replications Created: 2017-01-25 Updated: 2017-05-17 Resolved: 2017-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform Debian, Replication |
| Affects Version/s: | 10.1.20, 10.1.21 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Anton Avramov | Assignee: | Sergei Golubchik |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
The problem is discovered on Debian jessie and Ubuntu trusty with version 10.1.20. However I presume it is valid for the other major version as well. |
||
| Description |
|
As part of the upgrade the postinst script of deb package is starting mysqld instance as followes: You would see that binary logging is disabled, but there is no option: --skip-slave-start |
| Comments |
| Comment by Daniel Black [ 2017-01-26 ] |
|
Good diagnosis and fix lukav. |
| Comment by Daniel Black [ 2017-01-26 ] |
|
Though maybe the --skip-slave-start should be part of --bootstrap because of its use by mysql_install_db serg? |
| Comment by Otto Kekäläinen [ 2017-01-27 ] |
|
lukav Thanks for the report! Which repository did you use to install MariaDB? What is the exact version number and revision? What do you think the solution should be, and if you have a suggestion, did you test it and can you verify it worked? |
| Comment by Anton Avramov [ 2017-01-27 ] |
|
I mirror the http://ftp.osuosl.org/pub/mariadb/repo/10.1/debian repository and the servers install from that mirror. I haven't implemented or tested a solution, since I don't repackage the deb, just mirror them. |
| Comment by Sergei Golubchik [ 2017-03-02 ] |
|
lukav, you know, as far as I can see (in the source code) --bootstrap does automatically imply --skip-slave-start. And also the server starts slaves after checking if it's in a bootstrap mode, so even if --skip-slave-start was not implied, slaves would not have been started anyway, as the server exits immediately after bootstrap. May be what you're seeing is caused by something completely different... |
| Comment by Anton Avramov [ 2017-03-02 ] |
|
Hmmm... Since it is a master<->master replication the same error is observed on both sides. What do you think? |
| Comment by Sergei Golubchik [ 2017-03-02 ] |
|
In --bootstrap the server doesn't listen on a socket or tcp ports. Your cron job shouldn't have been able to connect to the server. |
| Comment by Anton Avramov [ 2017-03-02 ] |
|
I suggest we wait to happen again and then will report further details. |
| Comment by Sergei Golubchik [ 2017-05-17 ] |
|
lukav, I'll close this issue, because it didn't have any new information for two months. But don't worry, when you have something — just add a comment and I'll reopen the issue. |