[MDEV-28707] Improve WSREP provider error message if Galera library does not match Galera build Created: 2022-05-31  Updated: 2023-05-12  Resolved: 2023-05-12

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

Type: Task Priority: Critical
Reporter: Ramesh Sivaraman Assignee: Jan Lindström
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

Improve WSREP provider error message if Galera library does not match Galera build.

2022-05-31 10:40:49 0 [Note] WSREP: Using server side SSL for provider connections
2022-05-31 10:40:49 0 [Note] WSREP: Loading provider /home/vagrant/mariadb-10.6.8-4-freebsd12.3-x86_64/lib/libgalera_smm.so initial position: 00000000-0000-0000-0000-000000000000:-1
2022-05-31 10:40:49 0 [Note] WSREP: wsrep_load(): loading provider library '/home/vagrant/mariadb-10.6.8-4-freebsd12.3-x86_64/lib/libgalera_smm.so'
2022-05-31 10:40:49 0 [Note] WSREP: wsrep_load(): Galera 4.11(rXXXX) by Codership Oy <info@codership.com> loaded successfully.
2022-05-31 10:40:49 0 [Warning] WSREP: Support for thread service v1 wsrep_init_thread_service_v1 not found from provider: Undefined symbol "wsrep_init_thread_service_v1"
2022-05-31 10:40:49 0 [Warning] WSREP: Provider does not support thread service v1
2022-05-31 10:40:49 0 [ERROR] WSREP: Failed to create a new provider '/home/vagrant/mariadb-10.6.8-4-freebsd12.3-x86_64/lib/libgalera_smm.so' with options 'repl.causal_read_timeout=PT90S;base_port=16002;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;gcache.size=10M': Failed to initialize thread service
2022-05-31 10:40:49 0 [ERROR] WSREP: Failed to load provider
2022-05-31 10:40:49 0 [ERROR] Plugin 'wsrep' init function returned error.

In case of wsrep provider mismatch, I think Galera should print a message similar to version mismatch.

2022-05-31 13:48:26 0 [Note] WSREP: wsrep_load(): loading provider library '/test/GAL_MD160522-mariadb-10.6.8-linux-x86_64-dbg/lib/libgalera_smm.so'
2022-05-31 13:48:26 0 [ERROR] WSREP: provider interface version mismatch: need '26', found '25'



 Comments   
Comment by Jan Lindström [ 2023-05-10 ]

This can happen only if you use community galera library on enterprise server. Maybe there could be also some kind of version log i.e. log used version and minimum required version when some feature is missing from used galera library.

Comment by Jan Lindström [ 2023-05-12 ]

There is not such information that would allow us to distinguish MariaDB community Galera library and MariaDB Enterprise Galera library. Furthermore, there is not such information that would distinguish MariaDB Galera library from Codership Galera library.

Generated at Thu Feb 08 10:02:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.