[MDEV-18515] The wsrep_cluster_weight status variable is not supported Created: 2019-02-08  Updated: 2019-02-20  Resolved: 2019-02-20

Status: Closed
Project: MariaDB Server
Component/s: Galera
Fix Version/s: 10.2.23, 10.3.13, 10.1.39, 10.4.4

Type: Task Priority: Major
Reporter: Julius Goryavsky Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

Current version of Galera does not support the wsrep_cluster_weight
status variable, which causes the galera_pc_weight test (from the
galera_3nodes suite) to fail:

--------------------------------------------------------------------------
galera_3nodes.galera_pc_weight 'innodb' [ fail ]
Test ended at 2019-02-08 12:27:07

CURRENT_TEST: galera_3nodes.galera_pc_weight
— /home/panda/mariadb_work/mysql-test/suite/galera_3nodes/r/galera_pc_weight.result 2019-02-06 15:27:27.000000000 +0100
+++ /home/panda/mariadb_work/mysql-test/suite/galera_3nodes/r/galera_pc_weight.reject 2019-02-08 12:27:06.771991509 +0100
@@ -1,11 +1,9 @@
connection node_1;
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_weight';
VARIABLE_VALUE = 3
-1
SET GLOBAL wsrep_provider_options = 'pc.weight=3';
SELECT VARIABLE_VALUE = 5 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_weight';
VARIABLE_VALUE = 5
-1
SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
connection node_2;
SET SESSION wsrep_sync_wait=0;
@@ -16,7 +14,6 @@
wsrep_cluster_size 2
SHOW STATUS LIKE 'wsrep_cluster_weight';
Variable_name Value
-wsrep_cluster_weight 0
...
mysqltest: Result length mismatch
...
***Warnings generated in error logs during shutdown after running tests: galera_3nodes.galera_pc_weight

2019-02-08 12:27:05 0 [Warning] WSREP: 67b51ae4overriding reported weight for 67b3e5c3
2019-02-08 12:27:05 0 [Warning] WSREP: 67b5158foverriding reported weight for 67b3e5c3
--------------------------------------------------------------------------



 Comments   
Comment by Julius Goryavsky [ 2019-02-15 ]

The patch is located here: https://github.com/MariaDB/server/pull/1177
(as I understand, errors on travis are connected with instability of the travis itself, not with tests)

Generated at Thu Feb 08 08:44:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.