[SCM] CTDB repository - branch 1.2-nodeflags updated - ctdb-1.9.1-212-gad7e426

Ronnie Sahlberg sahlberg at samba.org
Wed Oct 27 20:48:10 MDT 2010


The branch, 1.2-nodeflags has been updated
       via  ad7e42688e45a3a093c1476b5cceb07993cf7744 (commit)
      from  2a3872827e3ffda166191fc6ad09144a11d5041c (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.2-nodeflags


- Log -----------------------------------------------------------------
commit ad7e42688e45a3a093c1476b5cceb07993cf7744
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Oct 28 13:38:34 2010 +1100

    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.

-----------------------------------------------------------------------

Summary of changes:
 server/ctdb_call.c    |    8 ++++----
 server/ctdb_control.c |    2 +-
 server/ctdb_daemon.c  |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/server/ctdb_call.c b/server/ctdb_call.c
index 0bb7902..c5f7e7d 100644
--- a/server/ctdb_call.c
+++ b/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/server/ctdb_control.c b/server/ctdb_control.c
index 56cda8f..20785bc 100644
--- a/server/ctdb_control.c
+++ b/server/ctdb_control.c
@@ -760,7 +760,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/server/ctdb_daemon.c b/server/ctdb_daemon.c
index 12ad954..5eca727 100644
--- a/server/ctdb_daemon.c
+++ b/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;
 	}
 


-- 
CTDB repository


More information about the samba-cvs mailing list