[MDEV-7560] wsrep* tests depend on the version of galera library, the dependency should be checked Created: 2015-02-07  Updated: 2017-04-18  Resolved: 2017-04-18

Status: Closed
Project: MariaDB Server
Component/s: Galera, Tests
Affects Version/s: 10.1
Fix Version/s: 10.1.23, 10.0.31-galera, 10.2.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sachin Setiya (Inactive)
Resolution: Fixed Votes: 0
Labels: galera, tests


 Description   

I am getting the following failure on my local machine while running wsrep.variables:

CURRENT_TEST: wsrep.variables
--- /data/repo/git/10.1/mysql-test/suite/wsrep/r/variables.result	2015-01-27 15:49:28.000000000 +0300
+++ /data/repo/git/10.1/mysql-test/suite/wsrep/r/variables.reject	2015-02-08 00:37:27.000000000 +0300
@@ -23,7 +23,6 @@
 wsrep_causal_reads	#
 wsrep_cert_deps_distance	#
 wsrep_cert_index_size	#
-wsrep_cert_interval	#
 wsrep_cluster_conf_id	#
 wsrep_cluster_size	#
 wsrep_cluster_state_uuid	#
@@ -74,7 +73,6 @@
 wsrep_causal_reads	#
 wsrep_cert_deps_distance	#
 wsrep_cert_index_size	#
-wsrep_cert_interval	#
 wsrep_cluster_conf_id	#
 wsrep_cluster_size	#
 wsrep_cluster_state_uuid	#
 
mysqltest: Result length mismatch

I assume it's because the installed version of galera doesn't have this variable (is it right?)
If so, the tests should check the version of the library in use and tests should be skipped if the version is too low.



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2015-02-28 ]

10.1: https://github.com/MariaDB/server/commit/4c191de323be14993947197d84057c4d32fda0e6
10.0-galera:
https://github.com/MariaDB/server/commit/aa2904a7f4014cd4790086a2512dc39b533b2a8a

Comment by Daniel Black [ 2017-04-05 ]

Matching against a fixed galera version isn't appropriate as we keep bumping it (https://mariadb.com/kb/en/meta/galera-versions/).

Attached pull request (https://github.com/MariaDB/server/pull/351) does a proper version comparison.

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