[MDEV-21209] mysql_tzinfo_to_sql's Galera checks do not work Created: 2019-12-03 Updated: 2020-07-29 Resolved: 2019-12-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Time zones, wsrep |
| Affects Version/s: | 10.2.27, 10.1.42, 10.3.18, 10.4.8 |
| Fix Version/s: | 10.1.44, 10.2.31, 10.3.22, 10.4.12, 10.5.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
As part of the fix for Here's the relevant commit: https://github.com/mariadb/server/commit/fa74088838c12210d782aa6c69faa5acebc1d3bc It is easy to show that this does not work. First, we can see that wsrep_on is not set:
Let's get the server's binary log position:
And then let's run mysql_tzinfo_to_sql:
If we check the binary log, then we can confirm that the ALTER TABLE statements are executed:
This should obviously not happen. The Galera checks should be fixed. |
| Comments |
| Comment by Joe Ferguson [ 2019-12-03 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Since the wsrep_on value exists in information_schema.global_variables whether it is on or off, it looks like it justs need something like this?
Or maybe that is supposed to be variable_value='on'? (either seems to work fine on any of 10.4.10, 10.3.20, 10.2.29, 10.1.43) | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-12-03 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
It looks like ON is the correct choice. We can use the following to test this:
For example, with it off:
And with it on:
| |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Geboers [ 2019-12-04 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
From what I can understand this bug prevents many people from using the mariadb docker image, would be awesome if it could be fixed in the future | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-01-13 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
jplindst, 10.1.44 hasn't been released yet, so if the bug is already closed, I assume it should have fix version 10.1.44 (unless on whatever reason it is intentional to release it only in 10.1.45). |