percona-server
percona-server copied to clipboard
PS-6002: CREATE/ALTER EVENT STATE TO KEEP ENABLED ON REPLICAS
https://jira.percona.com/browse/PS-6002
This feature introduces a global config variable --replica-enable-event that accepts the regex patterns of the events in format "db_pattern.event_pattern" for those events that need to be re-enabld after the creation or modification of event on replica server, unlike the current behavior where the replicated events are by default set to the state SLAVESIDE_DISABLED.
The below shall be the behavior when a replicated event matches the pattern
specified in the --replica-enable-event
.
-
When an event is created as ENABLED on source, it shall remain ENABLED on replica as well.
-
When an event is created as DISABLED it shall remain DISABLED on replica as well.
-
If an event in ENABLED state is altered as DISABLED on source, then it shall become DISABLED on replica as well.
-
If an event in ENABLED state is altered and if it remains ENABLED on source, then it shall remain ENABLED on replica as well.
-
If an event in DISABLED state is altered and if it remains DISABLED on source then, shall remain DISABLED on replica as well.
-
If an event in DISABLED state is altered to ENABLED state on the source server, then it shall become ENABLED on replica as well.
Related approved PR: https://github.com/percona/percona-server/pull/4400