diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-10-28 13:38:34 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-10-28 13:41:08 +1100 |
commit | db8cb31d8b8d773b5a655354b69e92dd4489c51b (patch) | |
tree | ee9efcbd4fd224b77b6674b6988eee54f4f275d5 | |
parent | 0d75856bb70a74346b2ca8d9680c940b95918003 (diff) | |
download | samba-db8cb31d8b8d773b5a655354b69e92dd4489c51b.tar.gz samba-db8cb31d8b8d773b5a655354b69e92dd4489c51b.tar.xz samba-db8cb31d8b8d773b5a655354b69e92dd4489c51b.zip |
during shutdown there is a window after we have stopped TCP and disconnected from all other nodes but before we have stopped all processing.
During this window we may still hit asynchronous events that will fail because we can not send/receive packets from other nodes.
These messages are logged as ... Transport is DOWN. To help indicate that they are benign messages related to the process of shutting down.
These messages spam the syslog during normal shutdown, so this patch will drop the loglevel of these messages to DEBUG, so that they will not appear in or spam the syslog.
(This used to be ctdb commit 8275d265d2ae19b765e30ecf18f6b6319b6e6453)
-rw-r--r-- | ctdb/server/ctdb_call.c | 8 | ||||
-rw-r--r-- | ctdb/server/ctdb_control.c | 2 | ||||
-rw-r--r-- | ctdb/server/ctdb_daemon.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c index 0bb7902dc3..c5f7e7d430 100644 --- a/ctdb/server/ctdb_call.c +++ b/ctdb/server/ctdb_call.c @@ -70,7 +70,7 @@ static void ctdb_send_error(struct ctdb_context *ctdb, int msglen, len; if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Failed to send error. Transport is DOWN\n")); + DEBUG(DEBUG_INFO,(__location__ " Failed to send error. Transport is DOWN\n")); return; } @@ -413,7 +413,7 @@ void ctdb_request_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr) struct ctdb_db_context *ctdb_db; if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Failed ctdb_request_call. Transport is DOWN\n")); + DEBUG(DEBUG_INFO,(__location__ " Failed ctdb_request_call. Transport is DOWN\n")); return; } @@ -730,7 +730,7 @@ struct ctdb_call_state *ctdb_daemon_call_send_remote(struct ctdb_db_context *ctd struct ctdb_context *ctdb = ctdb_db->ctdb; if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Failed send packet. Transport is down\n")); + DEBUG(DEBUG_INFO,(__location__ " Failed send packet. Transport is down\n")); return NULL; } @@ -814,7 +814,7 @@ void ctdb_send_keepalive(struct ctdb_context *ctdb, uint32_t destnode) struct ctdb_req_keepalive *r; if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Failed to send keepalive. Transport is DOWN\n")); + DEBUG(DEBUG_INFO,(__location__ " Failed to send keepalive. Transport is DOWN\n")); return; } diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c index 3356ba1bae..90900c94b1 100644 --- a/ctdb/server/ctdb_control.c +++ b/ctdb/server/ctdb_control.c @@ -750,7 +750,7 @@ int ctdb_daemon_send_control(struct ctdb_context *ctdb, uint32_t destnode, size_t len; if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Failed to send control. Transport is DOWN\n")); + DEBUG(DEBUG_INFO,(__location__ " Failed to send control. Transport is DOWN\n")); return -1; } diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index 12ad9543c4..5eca7275c6 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -874,7 +874,7 @@ struct ctdb_req_header *_ctdb_transport_allocate(struct ctdb_context *ctdb, size = (length+(CTDB_DS_ALIGNMENT-1)) & ~(CTDB_DS_ALIGNMENT-1); if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Unable to allocate transport packet for operation %u of length %u. Transport is DOWN.\n", + DEBUG(DEBUG_INFO,(__location__ " Unable to allocate transport packet for operation %u of length %u. Transport is DOWN.\n", operation, (unsigned)length)); return NULL; } @@ -1099,7 +1099,7 @@ int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t pnn, int len; if (ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Failed to send message. Transport is DOWN\n")); + DEBUG(DEBUG_INFO,(__location__ " Failed to send message. Transport is DOWN\n")); return -1; } |