Commit Graph

38 Commits

Author SHA1 Message Date
Steven Dake
24577db3a1 Commit timeout wasn't stopped when entering gather state. This patch stops
the commit timeout when the gather state is entered.

(Logical change 1.103)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@379 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-06 17:42:26 +00:00
Steven Dake
ea09155b39 remove type-punned pointer warning
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@358 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
0e0e2f2c9e Add log service level.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@349 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
6256363476 Add token callback for recovery routines.
(Logical change 1.83)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@298 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Mark Haverkamp
0f50a877d5 Check to see that the message can be sent before proceeding.
(Logical change 1.82)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@295 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Steven Dake
18f5836ae2 Get rid of valgrind warning and possible segfault.
(Logical change 1.76)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@271 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-21 00:57:00 +00:00
Steven Dake
7239bf25ad Add recovery plug support to group messaging.
(Logical change 1.74)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@263 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
2f9b479200 Bug 44.
Fixes assertion in executive when running ckptbenchth.

(Logical change 1.73)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@257 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-16 00:20:18 +00:00
Steven Dake
75268b5e32 BUG 37. Fix several leaks during configuration changes. Also fixes
a possible assert with many large messages being sent from multiple
processors at the same time.

(Logical change 1.68)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@247 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-10 01:04:29 +00:00
Steven Dake
246687d689 Get rid of magic number 1500 and replace with PACKET_SIZE_MAX.
Also fix a glaring memory overwrite bug in gmi_init which would
init 256k of memory instead of PACKET_SIZE_MAX memory.

(Logical change 1.66)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@242 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-08 03:25:56 +00:00
Steven Dake
07dd45a275 Fix bug where transition from multiple members to
single members would cause messages not to be sent.
Also fixed an assertion in transition from multiple
processors to one processor.

(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@211 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
287a5c5359 Flush all multicast messages by delivering them before
processing the token.  This ensures that the mcast fd
doesn't buffer too many old messages and avoids an assert.

(Logical change 1.61)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@208 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-28 00:37:34 +00:00
Steven Dake
aeb30a0848 Add initial support for multipathing to group messaging.
(Logical change 1.60)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@207 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
2a263fdd00 Add support to group messaging to get flow control information.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@188 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
d99bf64410 Make gmi highest priority when adding dispatch functions
(Logical change 1.54)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@170 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-14 09:25:33 +00:00
Steven Dake
ce76ee2d53 When 2 processors are part of the configuration, then one
of the members leaves, then a new configuration occurs
with 2 or more members, the "joined" list was not
being properly passed to the rest of the executive
services.  This bug fixed.

(Logical change 1.53)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@167 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-10 04:47:05 +00:00
Steven Dake
88e8d9a370 Add encryption and authentication to GMI.
(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@166 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
f446ed6a5b Remove BINDTODEVICE socket option and replace with MULTICAST_IF
to be more portable and require less root privs.

(Logical change 1.42)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@121 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-26 22:17:36 +00:00
Steven Dake
7298c7d9c0 Major improvements to fragmentation. It works alot better now.
(Logical change 1.39)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@114 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-15 00:03:02 +00:00
Steven Dake
69c97fb5ff Allow NULL delivery_fn in gmi_join. This basically has no
effect but allows the processor to participate in multicasting
and membership.

(Logical change 1.38)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@112 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:20:56 +00:00
Steven Dake
7f49b68e27 Extraneous tokens were not being rejected on token retransmits
that occurred during configuration changes.  The result was bad
behavior, especially with larger rings.  Also cleaned up the
token retransmit timer to be deleted if necessary.

(Logical change 1.37)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@110 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:19:43 +00:00
Steven Dake
7e0c9753ea Add ip to deliver_fn callback
Add ip to deliver_fn callback
Add ip to deliver_fn callback

(Logical change 1.36)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@106 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
6e980d7b47 Removed something that was necessary in last changeset.
(Logical change 1.35)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@105 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:48:48 +00:00
Steven Dake
33a8e4f137 Fix debug exit.
(Logical change 1.34)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@102 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:46:02 +00:00
Steven Dake
263b91f277 Auto merged
2004/07/12 14:37:13-07:00 mvista.com!sdake
When a processor left the membership, the next configuration would sometimes
cause a form token timeout.  While not particularly harmful, it was wasteful
and not part of the original design of the group messaging protocol.
There was some extra junk code that was added to workaround some other bug
that has since been fixed.
This junk code removed and now the form token never times out (woohoo).
Also removed some extra code that calculates the next ORF processor twice.
We only really need to do it once.

(Logical change 1.33)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@100 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:40:31 +00:00
Steven Dake
d886159e29 Add retransmit of token if no multicast or token received
within a timeout period (100 msec).  This helps avoid
a reconfiguration when only the token is lost, but no
real configuration changes have occured.

(Logical change 1.32)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@98 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 04:16:02 +00:00
Steven Dake
447bfc6813 Clean up warnings found with -pedantic.
(Logical change 1.30)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@94 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-11 07:22:12 +00:00
Steven Dake
a16954f562 Removes this_ip external dependency and instead copies the
bound to address to storage local to the group messaging
interface.

(Logical change 1.29)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@90 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-10 03:57:32 +00:00
Steven Dake
295d70a3c8 Rename poll.h to aispoll.h
(Logical change 1.28)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@84 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
5ac0ebb149 Get rid of some errors from valgrind by initializing variables.
(Logical change 1.23)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@61 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 21:12:01 +00:00
Steven Dake
7c1c23ff33 With a two node cluster and one node killed, the remaining node
didn't sent the appropriate configuration changes to the clm API
or to the rest of the services.

(Logical change 1.19)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@48 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 20:45:11 +00:00
Steven Dake
fd8978487f Add ability to pass in logging function for people that want to
use their own logging functions in their own programs.

(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@40 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
86c3d01bf4 Make bind to a device really work properly. Now
it is possible to specify the bind network and
the networking will take place over that interface.

(Logical change 1.14)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@30 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-27 21:01:24 +00:00
Steven Dake
577163d6fb Fix binding rules so that instead of binding to INADDR_ANY for
UDP sockets, bind to specific interface defined in network.conf.
This is done by creating two fds.  gmi_fd_token is used for all
token communication.  gmi_fd_mcast is used for all mcast
communication.  I'm not sure if gmi_fd_mcast binding rules is
correct.  Once work begins on multipathing, this will have to
be figured out :)

2004/06/23 13:55:52-07:00 mvista.com!sdake
Use portable mreq instead of mreqn when joining the multicast
group.

(Logical change 1.13)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@26 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-23 21:01:32 +00:00
Steven Dake
7e1a275900 single node AMF would fail because of a recursion bug. Removed
the recursion by queueing single node message delivery as a timer
with 0 timeout.  This was happening before, but the logic was
wrong.

(Logical change 1.7)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@13 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 23:50:26 +00:00
Steven Dake
4130763665 Fix bug in membership protocol where form token sometimes times out
because the initial send of the token is sent to the wrong address.

2004/06/16 15:42:49-07:00 mvista.com!sdake
Performance enhancements: Allow more messages to be multicast per
token possession to reach 8.8MB/sec checkpoint performance without
remcasts.  Trim gather/commit timeouts to 100 msec to speed up the
membership gathering process.

(Logical change 1.5)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@10 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-16 22:50:39 +00:00
John Cherry
95f17845c6 (Logical change 1.3)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@5 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:04 +00:00
John Cherry
7bede9c4bb Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@4 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:03 +00:00