Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve WSREP provider error message if Galera library does not match… #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/config_service_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ int wsrep::config_service_v1_fetch(wsrep::provider& provider,
if (config_service_v1_probe(wsrep->dlh))
{
wsrep::log_warning() << "Provider does not support config service v1";
wsrep::log_warning() << "Provider " << provider.name() << " " <<
provider.version() << " used required at least 26.4.14";
return 1;
}
if (config_service_v1_init(wsrep->dlh))
Expand Down
8 changes: 8 additions & 0 deletions src/wsrep_provider_v26.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,8 @@ void wsrep::wsrep_provider_v26::init_services(
{
if (init_thread_service(wsrep_->dlh, services.thread_service))
{
wsrep::log_warning() << "Provider " << wsrep_->provider_name << " " <<
wsrep_->provider_version << " used required at least 26.4.4";
throw wsrep::runtime_error("Failed to initialize thread service");
}
services_enabled_.thread_service = services.thread_service;
Expand All @@ -690,6 +692,8 @@ void wsrep::wsrep_provider_v26::init_services(
{
if (init_tls_service(wsrep_->dlh, services.tls_service))
{
wsrep::log_warning() << "Provider " << wsrep_->provider_name << " " <<
wsrep_->provider_version << " used required at least 26.4.8";
throw wsrep::runtime_error("Failed to initialize TLS service");
}
services_enabled_.tls_service = services.tls_service;
Expand All @@ -698,6 +702,8 @@ void wsrep::wsrep_provider_v26::init_services(
{
if (init_allowlist_service(wsrep_->dlh, services.allowlist_service))
{
wsrep::log_warning() << "Provider " << wsrep_->provider_name << " " <<
wsrep_->provider_version << " used required at least 26.4.11";
throw wsrep::runtime_error("Failed to initialize allowlist service");
}
services_enabled_.allowlist_service = services.allowlist_service;
Expand All @@ -707,6 +713,8 @@ void wsrep::wsrep_provider_v26::init_services(
if (init_event_service(wsrep_->dlh, services.event_service))
{
wsrep::log_warning() << "Failed to initialize event service";
wsrep::log_warning() << "Provider " << wsrep_->provider_name << " " <<
wsrep_->provider_version << " used required at least 26.4.11";
// provider does not produce events, ignore
}
else
Expand Down