MXS-836: Fix retry_on_failure not working
The service start retry mechanism mistakenly returned an error when a service failed to start but a retry was queued. This caused MaxScale to stop whenever a service failed to start.
This commit is contained in:
parent
3e08c248b9
commit
fca09e0d7b
@ -135,6 +135,7 @@ static char *service_params[] =
|
||||
"ignore_databases_regex",
|
||||
"log_auth_warnings",
|
||||
"source", /**< Avrorouter only */
|
||||
"retry_on_failure",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -452,6 +452,9 @@ int serviceStartAllPorts(SERVICE* service)
|
||||
(void*) service, retry_after);
|
||||
MXS_NOTICE("Failed to start service %s, retrying in %d seconds.",
|
||||
service->name, retry_after);
|
||||
|
||||
/** This will prevent MaxScale from shutting down if service start is retried later */
|
||||
listeners = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user