[MDEV-25742] Proposition to add support for multi commands/scripts execution for the wsrep_notify_cmd parameter Created: 2021-05-20 Updated: 2021-05-20 Resolved: 2021-05-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Galera, Replication, Scripts & Clients |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Trivial |
| Reporter: | Tymoteusz Blazejczyk | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Galera, mysqld, notifications, replication, script, server | ||
| Description |
|
Current implementation of the wsrep_notify_cmd parameter and the --wsrep-notify-command command line argument support only a single command/script implementation of execution. Proposition is to add support for adding multi commands/scripts to the wsrep_notify_cmd parameter for example:
Separate only by commas should be enough. This will allow to call N registered commands/scripts. Like in the software observer pattern. It seems that the internal implementation of the mysqld should split the wsrep_notify_cmd parameter, simple loop over it and call each command/script separately. Maybe better will be to fork each script/command and join them together after the for loop. This will preserve the default behavior that invocation of the command/script block node (warning section). Original discussion: https://github.com/MariaDB/mariadb-docker/issues/28#issuecomment-844793730 |
| Comments |
| Comment by Daniel Black [ 2021-05-20 ] |
|
From discussion: "If a user wants their own notification script as well as what you what you develop, they can wrap it in a script themselves. If really needed its a rather simple shell script to fan out an[d] reap, lets not burden the server the the added complexity." |