]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2205] logged really unexpected exception in manager's dtor.
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 17 Oct 2012 23:12:50 +0000 (16:12 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 17 Oct 2012 23:12:50 +0000 (16:12 -0700)
src/bin/auth/auth_messages.mes
src/bin/auth/datasrc_clients_mgr.h

index f5253e6959327f219b5e897f98c0006c12815b7a..e8cb2885f2c7201cc21e0abe2e274429620fa7fa 100644 (file)
@@ -301,3 +301,11 @@ AUTH_DATASRC_CLIENTS_BUILDER_FAILED or
 AUTH_DATASRC_CLIENTS_BUILDER_FAILED_UNEXPECTED error messages in past
 logs.  If this message appears, the maintenance of the data source
 clients hasn't been working properly for some time.
+
+% AUTH_DATASRC_CLIENTS_SHUTDOWN_UNEXPECTED_ERROR Unexpected error on waiting for data source builder thread
+Some exception happens while waiting for the termination of the
+separate thread for maintaining data source clients.  This shouldn't
+happen in normal conditions; it should be either fatal system level
+errors such as severe memory shortage or some internal bug.  If that
+happens, and if it's not in the middle of terminating b10-auth, it's
+probably better to stop and restart it.
index 073e2ccbda98f2a5307b6ab7f097a2c1f6c5c831..7389a6b222b0e91ba88d73ff10d59cb4357929ae 100644 (file)
@@ -128,7 +128,10 @@ public:
             // simply let it go through.
             LOG_ERROR(auth_logger, AUTH_DATASRC_CLIENTS_SHUTDOWN_ERROR).
                 arg(ex.what());
-        } catch (...) {}
+        } catch (...) {
+            LOG_ERROR(auth_logger,
+                      AUTH_DATASRC_CLIENTS_SHUTDOWN_UNEXPECTED_ERROR);
+        }
 
         cleanup();              // see below
     }