[MDEV-20575] Histogram Statistics are not recorded on all nodes of Galera cluster Created: 2019-09-12  Updated: 2021-12-23  Resolved: 2021-12-23

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.3.16
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Daniel Tubbs Assignee: Jan Lindström (Inactive)
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

FreeBSD 11 in a 3 node Galera cluster


Attachments: JPEG File Run on Node2.JPG     JPEG File Run on Node1.JPG    

 Description   

Running ANALYZE TABLE table_name PERSISTENT FOR ALL on one node of a Galera cluster fails to record Histogram Statistics on two of three nodes.

The ANALYZE TABLE command is replicated and run on all three nodes, but only the node where the command was initiated saves the Histogram Statistics. Both other nodes have their Histogram Statistics reset to hist_size=0, hist_type=NULL, histogram=NULL.

As a result, a query run on a node with Histogram Statistics will have a different execution plan and performance than when it is run on a now without Histogram Statistics.

As a workaround, I am able to run ANALYZE NO_WRITE_TO_BINLOG TABLE table_name PERSISTENT FOR ALL on each node.

The attached images show the results after running the ANALYZE command on Node 1 then running a second time on Node 2. When run on Node 2, the Histogram Statistics on Node 1 are reset to hist_size=0, hist_type=NULL, histogram=NULL.



 Comments   
Comment by Jan Lindström (Inactive) [ 2021-12-23 ]

Expected behavior.

Generated at Thu Feb 08 09:00:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.