[MDEV-11653] MariaDB 10.0 mysql_tzinfo_to_sql broken while replicating via Galera Created: 2016-12-23 Updated: 2019-12-12 Resolved: 2019-12-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Time zones |
| Affects Version/s: | 10.0.27-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Art van Scheppingen | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Environment: |
RH6 |
||
| Description |
|
PRECONDITIONS: STEPS LEADING TO THE PROBLEM: EXPECTED OUTCOME: ACTUAL OUTCOME: This means the timezone information gets replicated to the other nodes by default. This isn't that bad, unless you encounter a problem in the transactions: Galera will import the timezone information correctly on the node it got executed on, however on the other two Galera nodes it fails (even after certification) as the real execution is not performed until it has been applied to the first node. This can mess up the timezone tables pretty badly and result in an inconsistent state of the data in the nodes. This is probably all due to the wsrep_replicate_myisam, and as you refer to it yourself: Removing the line from the output could help it from replicating, and executing it on all nodes individually would also be possible. However, there is no guarantee this will create 100% same data on these tables, as the identifiers are created during execution of the query. The only reliable workaround would be to first import the timezone information to the cluster without myisam replication enabled, then dump the tables using mysqldump, truncate the tables, adding the myisam replication to the dump and executing this against the cluster. FREQUENCE OF OCCURENCE: |
| Comments |
| Comment by Daniel Black [ 2017-03-09 ] | |||||||||||||||||||||||||||||||
|
Art, can you provide you mysql configuration and galera provider version please? Developers notes: See commit 7fd382f11 test case - didn't see this happening (10.0.29-MariaDB-wsrep,Galera 3.20(rXXXX)).
| |||||||||||||||||||||||||||||||
| Comment by Gaetano Giunta [ 2017-06-03 ] | |||||||||||||||||||||||||||||||
|
I think that this bug also affects non-mariadb. Here is my connection info: Server version: 5.6.34-79.1-56-log Percona XtraDB Cluster (GPL), Release rel79.1, Revision 7c38350, WSREP version 26.19, wsrep_26.19 I tried to insert the timezone data both using the sql generated from mysql_tzinfo_to_sql and removing the 1st line ( wsrep_replicate_myisam ). 1st result: inconsistent data in the tz tables across nodes | |||||||||||||||||||||||||||||||
| Comment by Gaetano Giunta [ 2017-06-03 ] | |||||||||||||||||||||||||||||||
|
ps: managed to get acceptable results by manually editing the sql generated by mysql_tzinfo_to_sql and
| |||||||||||||||||||||||||||||||
| Comment by Mark Stoute [ 2017-08-08 ] | |||||||||||||||||||||||||||||||
|
I seem to be experiencing the same issue as Art. Mariadb version: 10.1.18
The process completes, However the mysql.time_zone tables are missing most data. For instance time_zone_name is empty, and time_zone_transition is 132KiB (vs 4.1MiB on a dev server with wsrep off). Error log is full of messages like the below:
Since this is a production server and there are vendor/version differences I'm reluctant to try Gaetano's fix. The first few lines of mysql_tzinfo_to_sql's output are:
| |||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2019-12-12 ] | |||||||||||||||||||||||||||||||
|
Support for 10.0-galera has ended. |