[MDEV-21758] Events switched randomly to SLAVESIDE_DISABLED Created: 2020-02-18 Updated: 2020-03-09 Resolved: 2020-03-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Events, Server |
| Affects Version/s: | 10.3.22, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.2.32, 10.3.23, 10.4.13, 10.5.2 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | azurit | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
Debian Buster, 64bit |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
After upgrade from 10.3.18 to 10.3.22, events in all databases probably randomly switched it's status to 'SLAVESIDE_DISABLED' (statuses before this happened were ENABLED and some events were DISABLED). I'm not using master-slave configuration at all, it is single server. |
| Comments |
| Comment by Elena Stepanova [ 2020-03-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report. The regression was introduced by this commit:
The change makes all events which were created by a server with a different server_id to get disabled. Moreover, they remain disabled even if the server is later started with the initial server_id again.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2020-03-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If SST is done from a galera node that is also acting as MASTER newly synced node in galera eco-system will also copy-over the event state enabling duplicate event in galera eco-system. Identification uses naturally server_id so not sure what you can do here to (1) avoid enabling events that should not be enabled and (2) allow events that should be enabled to be enabled. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-03-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We should probably add some sort of a note or a warning for users recommending them to check their events (at least if there was a chance that server_id of their server has changed at least once). As I understand, the fix makes sure that the events don't get disabled anymore, but those which did will remain disabled, so people would need to update them manually to re-enable. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ian Gilfillan [ 2020-03-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks elenst, will document - |