Rev 594: merge from ronnie in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Wed Aug 22 07:31:30 GMT 2007
------------------------------------------------------------
revno: 594
revision-id: tridge at samba.org-20070822073129-ot641pslynosp6d2
parent: tridge at samba.org-20070822071855-94o4boiec7hci2bt
parent: sahlberg at ronnie-20070822025324-yv60b42iumi831rg
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Wed 2007-08-22 17:31:29 +1000
message:
merge from ronnie
modified:
include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13
server/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
server/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
server/ctdb_ltdb_server.c ctdb_ltdb_server.c-20070607120348-7r182h0nlqxysyss-1
server/ctdb_monitor.c ctdb_monitor.c-20070518100625-8jf4ft1mjzmb22ck-1
server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1
server/ctdb_server.c ctdb.c-20061127094323-t50f58d65iaao5of-2
server/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2
server/ctdbd.c ctdbd.c-20070411085044-dqmhr6mfeexnyt4m-1
server/eventscript.c eventscript.c-20070704074533-95f10rsay8um8wrr-1
tools/ctdb.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1
------------------------------------------------------------
revno: 432.1.220
merged: sahlberg at ronnie-20070822025324-yv60b42iumi831rg
parent: sahlberg at ronnie-20070822023831-mn6esaesgabaqnz3
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-22 12:53:24 +1000
message:
when we receive a packet from the network, check explicitely that the
node is not banned it the call is for a database record. i.e a REQ/REPLY
CALL/DMASTER
if we get such a call while banned, ignore the packet and write an entry
in the logfile
------------------------------------------------------------
revno: 432.1.219
merged: sahlberg at ronnie-20070822023831-mn6esaesgabaqnz3
parent: sahlberg at ronnie-20070822013448-926b379hshbonc0l
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-22 12:38:31 +1000
message:
create a define to represent the 'invalid' generation id we used in two
places.
create a new helper function to generate new generation id values that
know about the invalid id and avoids generating it.
update the ctdb status tool to know about the invalid generation id and
print the string INVALID instead
------------------------------------------------------------
revno: 432.1.218
merged: sahlberg at ronnie-20070822013448-926b379hshbonc0l
parent: sahlberg at ronnie-20070822003835-q3699f5nsjm248zh
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-22 11:34:48 +1000
message:
if the node is inactive i.e. banned or disconnected then that node is
not participating in the cluster
if a client tries to attach to a database while the node is inactive,
return an error back to the client and fail the attach
------------------------------------------------------------
revno: 432.1.217
merged: sahlberg at ronnie-20070822003835-q3699f5nsjm248zh
parent: sahlberg at ronnie-20070821234648-r4haehe330vs0ec1
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-22 10:38:35 +1000
message:
when a node becomes banned its databases are no longer part of ctdb
and it should thus no longer serve any database access calls until it
has been reintroduced into the cluster.
when becoming banned, reset the local generation id to 1 to prevent
any further database access calls from other nodes from being processed.
------------------------------------------------------------
revno: 432.1.216
merged: sahlberg at ronnie-20070821234648-r4haehe330vs0ec1
parent: sahlberg at ronnie-20070821072515-cnt7i6uxgi2kxapx
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-22 09:46:48 +1000
message:
if lockwait takes an excessive time to complete. log the time it took to
complete and also the name of the database
------------------------------------------------------------
revno: 432.1.215
merged: sahlberg at ronnie-20070821072515-cnt7i6uxgi2kxapx
parent: sahlberg at ronnie-20070820234627-2hw7x8jqpvvyyu2q
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Tue 2007-08-21 17:25:15 +1000
message:
change the structure used for node flag change messages so that we can
see both the old flags as well as the new flags (so we can tell which
flags changed)
send the CTDB_SRVID_RECONFIGURE messages to connected nodes only, not to
every node, connected or not, in the cluster.
in the handler inside the recovery daemon which is invoked for node flag
change messages, only do a takeover_run() and redistribute the ip addresses IF it was the
disabled or the unhealthy flags that changed. Also send out the cluster
reconfigured message in this case.
If any of the other flags changed we dont need to do the takeover_run(0
here since that will be done during recovery.
------------------------------------------------------------
revno: 432.1.214
merged: sahlberg at ronnie-20070820234627-2hw7x8jqpvvyyu2q
parent: sahlberg at ronnie-20070820234353-1uh474q548rwmh1w
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Tue 2007-08-21 09:46:27 +1000
message:
when we shutdown the service due to receiving a 'ctdb shutdown' command
from the administrator, log this as 'Received SHUTDOWN command. Stopping
CTDB daemon.' so that the administrator will know when looking at the
log 'why' the ctdb service was terminated.
Previously the only thing logged was 'shutting down' which is not
detailed enough.
------------------------------------------------------------
revno: 432.1.213
merged: sahlberg at ronnie-20070820234353-1uh474q548rwmh1w
parent: sahlberg at ronnie-20070820233303-8psii3akxvtu4je9
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Tue 2007-08-21 09:43:53 +1000
message:
add an atexit() that will print "CTDB daemon shutting down" in the log
when the main daemon exits
------------------------------------------------------------
revno: 432.1.212
merged: sahlberg at ronnie-20070820233303-8psii3akxvtu4je9
parent: sahlberg at ronnie-20070820232214-nvm6cicoaexgkqzw
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Tue 2007-08-21 09:33:03 +1000
message:
setup the logfile much earlier in the startup procedure for ctdbd
change initial errors that cause ctdb to fail to start from printf to
DEBUG(0
add a DEBUG(0 to log that the ctdb service is starting
------------------------------------------------------------
revno: 432.1.211
merged: sahlberg at ronnie-20070820232214-nvm6cicoaexgkqzw
parent: sahlberg at ronnie-20070820224242-o82oah4tkpwix96d
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Tue 2007-08-21 09:22:14 +1000
message:
make sure that the event script is executable and just ignore it
othervise
------------------------------------------------------------
revno: 432.1.210
merged: sahlberg at ronnie-20070820224242-o82oah4tkpwix96d
parent: sahlberg at ronnie-20070820041658-rcz2cdtpm6n18nww
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Tue 2007-08-21 08:42:42 +1000
message:
dont pollute the log with 'Registered PID XXX for client YYY' at log
level 0.
change the log level to 3 for this information message
------------------------------------------------------------
revno: 432.1.209
merged: sahlberg at ronnie-20070820041658-rcz2cdtpm6n18nww
parent: sahlberg at ronnie-20070820032927-puhpwu4aw4uu9m74
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Mon 2007-08-20 14:16:58 +1000
message:
if a public address has already been taken over by a node, then let that
public address remain at that node until either the node becomes
unhealthy or the original/primary node for that address becomes healthy
again.
Othervise what will happen is
1, if we ban a node, the banning code immediately does a
takeover_run() and reassigns the public address to a different node in
the cluster.
2, a few seconds later (at most) the recovery daemon will detect that
the number of nodes has shrunk and will initiate a recovery.
During the recovery the public address would again be assigned to a
node, this time a different node.
------------------------------------------------------------
revno: 432.1.208
merged: sahlberg at ronnie-20070820032927-puhpwu4aw4uu9m74
parent: sahlberg at ronnie-20070816013435-5hnitt79ydv67dai
parent: tridge at samba.org-20070820011338-ppqfbix9v5j5ll3o
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Mon 2007-08-20 13:29:27 +1000
message:
merge from tridge
Diff too large for email (486, the limit is 200).
More information about the samba-cvs
mailing list