[MDEV-24805] check_galera_version.inc is broken Created: 2021-02-07  Updated: 2021-12-23  Resolved: 2021-12-23

Status: Closed
Project: MariaDB Server
Component/s: Galera, Tests
Affects Version/s: 10.4
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Gentoo



 Description   

I'm getting

galera.galera_defaults 'innodb'          [ skipped ]  Test requires Galera library version >= 26.4.6

despite having 26.4.6 installed. It turns out that check_galera_version.inc no longer works. It uses a bunch or regexes to extract components of the requested and actual galera versions. I've added a debug printout as

SELECT @GALERA_VERSION, @GALERA_MAJOR_VERSION, @GALERA_MINOR_VERSION, @GALERA_RELEASE_VERSION
UNION ALL
SELECT @ACTUAL_GALERA_VERSION, @ACTUAL_GALERA_MAJOR_VERSION, @ACTUAL_GALERA_MINOR_VERSION, @ACTUAL_GALERA_RELEASE_VERSION;

it already had debug selects, I suggest to replace them with mine as above, the result is easier to read
The output was

26.4.6          26      4       6
4.6(r323e509)    4      4       6

That is, wsrep_provider_version now has a different format and regexes fail to parse it into a comparable representation.

I have a system Gentoo sys-cluster/galera-26.4.6



 Comments   
Comment by Jan Lindström (Inactive) [ 2021-02-08 ]

Its seems that Galera version is not set correctly i.e. in same way as in 26.4.5.

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