[MDEV-32279] ANALYZE TABLE is replicated without use_stat_tables Created: 2023-09-28 Updated: 2023-10-17 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Description |
|
ANALYZE TABLE statement may or may not collect EITS statistics, depending It is replicated as statement, that is, the ANALYZE TABLE statement itself is written into the binary log. That is, we rely on ANALYZE TABLE to be executed on the slave in the same way as it was executed on the master. Put the attached testcase into e.g. mysql-test/suite/rpl/t/rpl_a1.test and look into its output:
no stats on master, but
there are stats on the slave. |
| Comments |
| Comment by Sergei Golubchik [ 2023-09-28 ] | |
|
server has hundreds of variables that affect how statements are executed. most of them aren't replicated. | |
| Comment by Sergei Petrunia [ 2023-10-11 ] | |
|
serg, I've tried to see how for example check_constraint_checks is handled and found Discussed with Elkin , take-aways: are that two solutions are possible
I'm not sure which one is better. Any other arguments? | |
| Comment by Sergei Golubchik [ 2023-10-11 ] | |
|
I don't see what is the bug here. If you configure master and slave to do different things they will do different things, exactly as you wanted. I think there's no bug here, everything behaves as expected. |