]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1621] fixed typos and bug which prevents configuring values for "on-fail"
authorRazvan Becheriu <razvan@isc.org>
Fri, 26 Mar 2021 14:23:48 +0000 (16:23 +0200)
committerRazvan Becheriu <razvan@isc.org>
Mon, 29 Mar 2021 18:11:29 +0000 (21:11 +0300)
ChangeLog
doc/sphinx/arm/database-connectivity.rst
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst
src/lib/database/database_connection.cc

index 5956b2eaa3608cf2488199bad80387322a60aaf4..ed9f8265a39478f457a7529c055048ee41bec8aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,10 +3,10 @@
        To achieve this, the "on-fail" connection parameter has been added
        to control the action performed on connection loss.
        The supported values are "stop-retry-exit", "serve-retry-exit" and
-       "server-retry-continue". They indicate if the server should disable
+       "serve-retry-continue". They indicate if the server should disable
        the service on connection loss ("stop-retry-exit") or if on recovery
        failure the server should shut down ("stop-retry-exit" and
-       "serve-retry-exit") or continue ("server-retry-continue").
+       "serve-retry-exit") or continue ("serve-retry-continue").
        The default value used (if not configured) is "stop-retry-exit" for
        lease, host and config backends, and "serve-retry-continue" for
        forensic log.
index 2fb920b37322d73c59bc0dd30b6f534b181df45b..f7496842c93c369ea64c1b14b7f95c9242d96f01 100644 (file)
@@ -33,15 +33,18 @@ option and continues to respond to commands.
 
 The ``on-fail`` parameter configures the actions the server should take when a
 connection is lost. It can have one of the following values:
-``stop-retry-exit`` which indicates that the server should stop the service
-while it tries to recover the connection and exit if recovery is not successful
-after ``max-reconnect-tries``.
-``serve-retry-exit`` which indicates that the server should not stop the service
-while it tries to recover the connection and exit if recovery is not successful
-after ``max-reconnect-tries``.
-``serve-retry-continue`` which indicates that the server should not stop the
-service while it tries to recover the connection and not exit if recovery is not
-successful after ``max-reconnect-tries``.
+
+-  ``stop-retry-exit`` which indicates that the server should stop the service
+   while it tries to recover the connection and exit if recovery is not
+   successful after ``max-reconnect-tries``.
+
+-  ``serve-retry-exit`` which indicates that the server should not stop the
+   service while it tries to recover the connection and exit if recovery is not
+   successful after ``max-reconnect-tries``.
+
+-  ``serve-retry-continue`` which indicates that the server should not stop the
+   service while it tries to recover the connection and not exit if recovery is
+   not successful after ``max-reconnect-tries``.
 
 If connectivity to all backends is restored, the server returns to normal
 operations. If the connection can not be restored and the server is configured
index af84c3b581f391a078e769e11a446e87e3c78796..6c223b99c9bac9fc7921fd0c25d407eef447c5cd 100644 (file)
@@ -508,13 +508,18 @@ loss of connectivity. The default value for Cassandra is 2000 ms.
 
    "Dhcp4": { "lease-database": { "on-fail" : "stop-retry-exit", ... }, ... }
 
-The default value for MySQL and PostgreSQL is ``stop-retry-exit``, which
-disables the dhcp service while trying to automatically recover lost connections
-and shuts down the server on failure after ``max-reconnect-tries``.
-Other valid values are: ``serve-retry-exit`` which does not disable the dhcp
-service but shuts down the server on failure after ``max-reconnect-tries`` and
-``serve-retry-continue`` which does not disable the dhcp service and does not
-shut down the server even if the recovery fails.
+The possible values are:
+
+-  ``stop-retry-exit`` disables the DHCP service while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``. This is the default value for MySQL and PostgreSQL.
+
+-  ``serve-retry-exit`` DHCP service continues while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``.
+
+-  ``serve-retry-continue`` DHCP service continues and does not shut down the
+   server even if the recovery fails.
 
 .. note::
 
@@ -732,13 +737,18 @@ loss of connectivity. The default value for Cassandra is 2000 ms.
 
    "Dhcp4": { "hosts-database": { "on-fail" : "stop-retry-exit", ... }, ... }
 
-The default value for MySQL and PostgreSQL is ``stop-retry-exit``, which
-disables the dhcp service while trying to automatically recover lost connections
-and shuts down the server on failure after ``max-reconnect-tries``.
-Other valid values are: ``serve-retry-exit`` which does not disable the dhcp
-service but shuts down the server on failure after ``max-reconnect-tries`` and
-``serve-retry-continue`` which does not disable the dhcp service and does not
-shut down the server even if the recovery fails.
+The possible values are:
+
+-  ``stop-retry-exit`` disables the DHCP service while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``. This is the default value for MySQL and PostgreSQL.
+
+-  ``serve-retry-exit`` DHCP service continues while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``.
+
+-  ``serve-retry-continue`` DHCP service continues and does not shut down the
+   server even if the recovery fails.
 
 .. note::
 
index 52b93dea5e49e6bf40e9f98f30186db7ce9e484e..afbb80198c1e4b46347b115ba66ab9df98926179 100644 (file)
@@ -477,13 +477,18 @@ loss of connectivity. The default value for Cassandra is 2000 ms.
 
    "Dhcp6": { "lease-database": { "on-fail" : "stop-retry-exit", ... }, ... }
 
-The default value for MySQL and PostgreSQL is ``stop-retry-exit``, which
-disables the dhcp service while trying to automatically recover lost connections
-and shuts down the server on failure after ``max-reconnect-tries``.
-Other valid values are: ``serve-retry-exit`` which does not disable the dhcp
-service but shuts down the server on failure after ``max-reconnect-tries`` and
-``serve-retry-continue`` which does not disable the dhcp service and does not
-shut down the server even if the recovery fails.
+The possible values are:
+
+-  ``stop-retry-exit`` disables the DHCP service while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``. This is the default value for MySQL and PostgreSQL.
+
+-  ``serve-retry-exit`` DHCP service continues while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``.
+
+-  ``serve-retry-continue`` DHCP service continues and does not shut down the
+   server even if the recovery fails.
 
 .. note::
 
@@ -651,13 +656,18 @@ loss of connectivity. The default value for Cassandra is 2000 ms.
 
    "Dhcp6": { "hosts-database": { "on-fail" : "stop-retry-exit", ... }, ... }
 
-The default value for MySQL and PostgreSQL is ``stop-retry-exit``, which
-disables the dhcp service while trying to automatically recover lost connections
-and shuts down the server on failure after ``max-reconnect-tries``.
-Other valid values are: ``serve-retry-exit`` which does not disable the dhcp
-service but shuts down the server on failure after ``max-reconnect-tries`` and
-``serve-retry-continue`` which does not disable the dhcp service and does not
-shut down the server even if the recovery fails.
+The possible values are:
+
+-  ``stop-retry-exit`` disables the DHCP service while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``. This is the default value for MySQL and PostgreSQL.
+
+-  ``serve-retry-exit`` DHCP service continues while trying to automatically
+   recover lost connections. Shuts down the server on failure after exhausting
+   ``max-reconnect-tries``.
+
+-  ``serve-retry-continue`` DHCP service continues and does not shut down the
+   server even if the recovery fails.
 
 .. note::
 
index a93a28ebdf0299c82a46c20648ec7148434e05d9..b00e3ab20f291d257a96ae77ea2e9bc7a39b7756 100644 (file)
@@ -282,7 +282,7 @@ ReconnectCtl::onFailActionToText(OnFailAction action) {
     case OnFailAction::STOP_RETRY_EXIT:
         return ("stop-retry-exit");
     case OnFailAction::SERVE_RETRY_EXIT:
-        return ("server-retry-exit");
+        return ("serve-retry-exit");
     case OnFailAction::SERVE_RETRY_CONTINUE:
         return ("serve-retry-continue");
     }
@@ -295,7 +295,7 @@ ReconnectCtl::onFailActionFromText(const std::string& text) {
         return (OnFailAction::STOP_RETRY_EXIT);
     } else if (text == "serve-retry-exit") {
         return (OnFailAction::SERVE_RETRY_EXIT);
-    } else if (text == "server-retry-continue") {
+    } else if (text == "serve-retry-continue") {
         return (OnFailAction::SERVE_RETRY_CONTINUE);
     } else {
         isc_throw(BadValue, "Invalid action on connection loss: " << text);