5.5 - Add --skip-log-bin for bootstrap mode and run mysql_install_db only on upgrade in debian #365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BUGS:
Package upgrade on Ubuntu runs mysql_install_db even though data directory already exists
https://bugs.launchpad.net/percona-server/+bug/1457614
Debian package ignores GTID options when restarts server
https://bugs.launchpad.net/percona-server/+bug/1507812
INFO:
It's needed to run mysql_install_db in debian packaging only on install and not on upgrade and also there's a fix for running bootstrap mode with --skip-log-bin so that those statements don't get into bin log without GTID's and mess the numbering. This does not affect 5.7 so it will be only null merge here for 5.7.
TEST BUILD:
http://jenkins.percona.com/job/percona-server-5.6-debian-binary/73/
TEST:
So it can be seen below that before the upgrade GTID's stopped at 2 and after upgrade and inserting 2 rows they continued at 3 and 4.
BEFORE UPGRADE:
UPGRADE:
AFTER UPGRADE AND INSERTING NEW DATA: