[MDEV-9609] wsrep_debug only logs DDL information on originating node Created: 2016-02-22 Updated: 2021-06-01 Resolved: 2021-05-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, wsrep |
| Fix Version/s: | 10.6.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | galera, wsrep | ||
| Sub-Tasks: |
|
| Description |
|
When wsrep_debug is enabled, Galera Cluster logs more verbose information to the error log. For example, when DDL is executed on a particular node, the node logs some information like this:
However, when wsrep_OSU_method is set to TOI and the DDL command is replicated to the other nodes in the cluster, those other nodes do not log anything about the DDL to their error logs, even if wsrep_debug is enabled on those other nodes. It would be useful to see some kind of information in the error logs about replicated DDL when wsrep_debug is ON. The main use case is when trying to track exactly what DDL is being replicated to other nodes. |
| Comments |
| Comment by Nirbhay Choubey (Inactive) [ 2016-02-23 ] | |||||||||||||||
|
GeoffMontee Even though DDLs, replicated under TOI, show up in the error log, they | |||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2016-02-23 ] | |||||||||||||||
|
Hi nirbhay_c, I was hoping the logs would have some Galera-specific information that the general log doesn't contain, such as the server that sent the DDL. The problem that I am debugging is that a user's cluster seems to be executing DDL statements twice. I can see the duplicate DDL statements in SHOW ENGINE INNODB STATUS and SHOW FULL PROCESSLIST, so the general log would only confirm what I already know: that the statements are being executed twice. What I was actually hoping for was a way to determine where the duplicate DDL statements are coming from. For example, maybe log entries like this: For DDL executed locally:
For DDL received from another node:
Maybe I can find the information that I need in the binary log instead. | |||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2021-05-11 ] | |||||||||||||||
|
Example of output:
| |||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2021-05-19 ] | |||||||||||||||
|
ralf.gebhardt@mariadb.com Only wsrep_debug=1 | |||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2021-05-19 ] | |||||||||||||||
|
1 == SERVER |