sahlberg/ctdb.git
17 years agoib: fragment sent buf + many bugfixes
Peter Somogyi [Thu, 8 Feb 2007 18:06:14 +0000 (19:06 +0100)]
ib: fragment sent buf + many bugfixes
It came to light I have to fragment the send buffer in case destination's to fit receiver's buffers.
Additionally fixed many bugs.
Still testing.
+ TODO: clean code.

17 years agoAdded variable msg size scenario.
Peter Somogyi [Fri, 2 Feb 2007 17:54:57 +0000 (18:54 +0100)]
Added variable msg size scenario.
Detected 1 bug, fixing...

17 years ago2 bugfixes
Peter Somogyi [Thu, 1 Feb 2007 17:46:44 +0000 (18:46 +0100)]
2 bugfixes
- ibw_stop handling
- ibw_send: < instead of <=

17 years agomerging tridge's code...
Peter Somogyi [Wed, 31 Jan 2007 11:24:55 +0000 (12:24 +0100)]
merging tridge's code...

17 years agoAdded overload test scenario + fixed 1 send queue bug.
Peter Somogyi [Tue, 30 Jan 2007 17:47:26 +0000 (18:47 +0100)]
Added overload test scenario + fixed 1 send queue bug.
TODO: externize debug level

17 years agomerge status code changes from samba4 ctdb
Andrew Tridgell [Mon, 29 Jan 2007 11:30:06 +0000 (22:30 +1100)]
merge status code changes from samba4 ctdb

17 years agofix a bug in new structure handling
Andrew Tridgell [Mon, 29 Jan 2007 11:11:16 +0000 (22:11 +1100)]
fix a bug in new structure handling

17 years agoAdjusted debug level and test scenario.
Peter Somogyi [Fri, 26 Jan 2007 15:45:51 +0000 (16:45 +0100)]
Adjusted debug level and test scenario.

17 years agoAdjusted ib test tool #1.
Peter Somogyi [Thu, 25 Jan 2007 17:57:47 +0000 (18:57 +0100)]
Adjusted ib test tool #1.
Now fixed number of pingpong messages can be sent and then exit.

17 years agoFixed a side effect of previous revert.
Peter Somogyi [Thu, 25 Jan 2007 13:22:03 +0000 (14:22 +0100)]
Fixed a side effect of previous revert.

17 years agoMerged tridge's branch.
Peter Somogyi [Thu, 25 Jan 2007 11:31:33 +0000 (12:31 +0100)]
Merged tridge's branch.
Reverted ib join (will do later).

17 years ago1st "working" ib version.
Peter Somogyi [Thu, 25 Jan 2007 10:01:59 +0000 (11:01 +0100)]
1st "working" ib version.
TODO: stress test, variable size messages, flood

17 years agosimplified ctdb_call() interface, and made it easier to expand with more parameters...
Andrew Tridgell [Thu, 25 Jan 2007 05:13:17 +0000 (16:13 +1100)]
simplified ctdb_call() interface, and made it easier to expand with more parameters later

17 years agouse ctdb_call_info, so struct ctdb_call can be used for top level call
Andrew Tridgell [Thu, 25 Jan 2007 04:19:16 +0000 (15:19 +1100)]
use ctdb_call_info, so struct ctdb_call can be used for top level call

17 years agomerge db wrap code from samba4
Andrew Tridgell [Thu, 25 Jan 2007 04:11:36 +0000 (15:11 +1100)]
merge db wrap code from samba4

17 years agoadded copies of libs so can be built standalone
Andrew Tridgell [Thu, 25 Jan 2007 04:10:40 +0000 (15:10 +1100)]
added copies of libs so can be built standalone

17 years agomerge fixes from samba4
Andrew Tridgell [Tue, 23 Jan 2007 00:38:45 +0000 (11:38 +1100)]
merge fixes from samba4

17 years agoibw: modified tridge's code - in my point of view
Peter Somogyi [Fri, 5 Jan 2007 17:13:35 +0000 (18:13 +0100)]
ibw: modified tridge's code - in my point of view
ibw_alloc_send and node-centric params are the basics of these important changes.
Also tried to avoid memcpy/memdup where it was possible.

17 years agobugfix in ibw_send
Peter Somogyi [Thu, 4 Jan 2007 15:44:41 +0000 (16:44 +0100)]
bugfix in ibw_send
Forgot to allow different message pointer than beginning of an allocated buf.

17 years ago+1 ibw function +1 bugfix
Peter Somogyi [Wed, 3 Jan 2007 16:37:47 +0000 (17:37 +0100)]
+1 ibw function +1 bugfix
Added ibw_cancel_send_buf to allow not sending the message after an ibw_alloc_send_buf.
Renamed "n" to "len" and changed its type.

17 years agoJoining ctdb and ibwrapper (incomplete).
Peter Somogyi [Tue, 2 Jan 2007 17:16:39 +0000 (18:16 +0100)]
Joining ctdb and ibwrapper (incomplete).
It compiles.

TODO: modify ctdb as well.

17 years agoAdded trace messages + several fixes
Peter Somogyi [Thu, 21 Dec 2006 16:41:48 +0000 (17:41 +0100)]
Added trace messages + several fixes

17 years agomerged from peter
Andrew Tridgell [Wed, 20 Dec 2006 22:43:49 +0000 (09:43 +1100)]
merged from peter

17 years agoAdded send queue.
Peter Somogyi [Wed, 20 Dec 2006 18:16:30 +0000 (19:16 +0100)]
Added send queue.
TODO: check again & reduce.

17 years agoMade receiver handle partial packets.
Peter Somogyi [Wed, 20 Dec 2006 16:42:58 +0000 (17:42 +0100)]
Made receiver handle partial packets.

17 years agomerge from Peter
Andrew Tridgell [Tue, 19 Dec 2006 23:35:27 +0000 (10:35 +1100)]
merge from Peter

17 years agomerge from ab
Andrew Tridgell [Tue, 19 Dec 2006 23:32:31 +0000 (10:32 +1100)]
merge from ab

17 years agosimple ctdb benchmark
Andrew Tridgell [Tue, 19 Dec 2006 05:27:03 +0000 (16:27 +1100)]
simple ctdb benchmark

17 years agoenforce the tcp memory alignment in packet queue
Andrew Tridgell [Tue, 19 Dec 2006 01:07:07 +0000 (12:07 +1100)]
enforce the tcp memory alignment in packet queue

17 years agoadded handling of partial packet reads
Andrew Tridgell [Tue, 19 Dec 2006 01:03:10 +0000 (12:03 +1100)]
added handling of partial packet reads

added transport level packet allocator, allowing the transport to
enforce alignment or special memory rules

17 years agoModified send logic to allow large messages.
Peter Somogyi [Mon, 18 Dec 2006 19:52:49 +0000 (20:52 +0100)]
Modified send logic to allow large messages.
TODO: receiver side.

17 years agoFix cleaning targets to delete proper files
Alexander Bokovoy [Mon, 18 Dec 2006 14:58:29 +0000 (17:58 +0300)]
Fix cleaning targets to delete proper files

17 years agoFix memory handling
Alexander Bokovoy [Mon, 18 Dec 2006 14:55:48 +0000 (17:55 +0300)]
Fix memory handling

17 years agowrap the packet queue call
Andrew Tridgell [Mon, 18 Dec 2006 05:26:57 +0000 (16:26 +1100)]
wrap the packet queue call

17 years agoadded a 4 node test
Andrew Tridgell [Mon, 18 Dec 2006 05:05:22 +0000 (16:05 +1100)]
added a 4 node test

17 years agoadded request_dmaster and reply_dmaster logic
Andrew Tridgell [Mon, 18 Dec 2006 05:01:11 +0000 (16:01 +1100)]
added request_dmaster and reply_dmaster logic

ctdb will now move the dmaster role between nodes after
CTDB_MAX_LACOUNT consecutive accesses by the same node.

17 years agoadded logic for keeping track of the lacount
Andrew Tridgell [Mon, 18 Dec 2006 03:58:40 +0000 (14:58 +1100)]
added logic for keeping track of the lacount

17 years agoexpanded some comments
Andrew Tridgell [Mon, 18 Dec 2006 03:49:32 +0000 (14:49 +1100)]
expanded some comments

17 years agoadded redirect handling
Andrew Tridgell [Mon, 18 Dec 2006 03:44:06 +0000 (14:44 +1100)]
added redirect handling

17 years agoadded error reply packets
Andrew Tridgell [Mon, 18 Dec 2006 03:27:20 +0000 (14:27 +1100)]
added error reply packets

17 years agonext step towards dmaster/lmaster code
Andrew Tridgell [Mon, 18 Dec 2006 03:05:49 +0000 (14:05 +1100)]
next step towards dmaster/lmaster code

17 years agoadded storage of extended ltdb header information
Andrew Tridgell [Mon, 18 Dec 2006 02:24:02 +0000 (13:24 +1100)]
added storage of extended ltdb header information

17 years agomerge from peter
Andrew Tridgell [Sat, 16 Dec 2006 00:21:24 +0000 (11:21 +1100)]
merge from peter

17 years agoAdded checks for ib libs and headers
Peter Somogyi [Fri, 15 Dec 2006 15:58:49 +0000 (16:58 +0100)]
Added checks for ib libs and headers

17 years agoMade infiniband support configurable.
Peter Somogyi [Fri, 15 Dec 2006 15:02:45 +0000 (16:02 +0100)]
Made infiniband support configurable.
Adjusted "make distclean" NOT to remove the lib folder (again).
Removed again config.h.in autogenerated file from bzr.

17 years agomerge IB code from peter
Andrew Tridgell [Fri, 15 Dec 2006 09:21:46 +0000 (20:21 +1100)]
merge IB code from peter

I didn't merge the Makefile.in change as it needs a configure option
to allow people to enable IB, or to test for the headers and
libraries. Peter, are you comfortable doing that?

17 years agoRaw impl. of ibwrapper test tool.
Peter Somogyi [Thu, 14 Dec 2006 17:21:39 +0000 (18:21 +0100)]
Raw impl. of ibwrapper test tool.
(basic functional test, compilable, untested)
Adjusted makefile and ibwrapper state checking.

17 years agoMade ibwrapper compilable.
Peter Somogyi [Wed, 13 Dec 2006 14:00:41 +0000 (15:00 +0100)]
Made ibwrapper compilable.
Adjusted makefile to include the project.
libibverbs and librdmacm has to be installed with headers.

17 years agoUsing struct <type> instead of typedefs.
Peter Somogyi [Wed, 13 Dec 2006 10:02:49 +0000 (11:02 +0100)]
Using struct <type> instead of typedefs.

17 years agoRaw implementation done.
Peter Somogyi [Tue, 12 Dec 2006 18:09:16 +0000 (19:09 +0100)]
Raw implementation done.
Let's start compilation...

17 years agoRough implementation of buffer handling.
Peter Somogyi [Mon, 11 Dec 2006 18:56:15 +0000 (19:56 +0100)]
Rough implementation of buffer handling.
Many conceptual fix.

17 years agoImplemented cm usage.
Peter Somogyi [Wed, 6 Dec 2006 17:49:46 +0000 (18:49 +0100)]
Implemented cm usage.
TODO: implement verbs user logic.

17 years agoAdded some event handling (incomplete)...
Peter Somogyi [Tue, 5 Dec 2006 17:48:16 +0000 (18:48 +0100)]
Added some event handling (incomplete)...

17 years agobzr email plugin test
Peter Somogyi [Tue, 5 Dec 2006 15:25:43 +0000 (16:25 +0100)]
bzr email plugin test

17 years agoTesting e-mail notification...
Peter Somogyi [Tue, 5 Dec 2006 12:17:41 +0000 (13:17 +0100)]
Testing e-mail notification...

17 years agoUsing samba DLIST helper macro set.
Peter Somogyi [Tue, 5 Dec 2006 12:09:48 +0000 (13:09 +0100)]
Using samba DLIST helper macro set.

17 years agomerged from Peter
Andrew Tridgell [Mon, 4 Dec 2006 21:06:15 +0000 (08:06 +1100)]
merged from Peter

17 years agoImplementing basic data structure handling...
Peter Somogyi [Mon, 4 Dec 2006 18:48:11 +0000 (19:48 +0100)]
Implementing basic data structure handling...

17 years agoJust testing the bzr e-mail plugin...
Peter Somogyi [Mon, 4 Dec 2006 13:27:46 +0000 (14:27 +0100)]
Just testing the bzr e-mail plugin...

17 years agoAdded infiniband transport implementation(incomplete) and interface.
Peter Somogyi [Mon, 4 Dec 2006 13:02:08 +0000 (14:02 +0100)]
Added infiniband transport implementation(incomplete) and interface.

17 years agomerge from ab
Andrew Tridgell [Fri, 1 Dec 2006 10:16:32 +0000 (21:16 +1100)]
merge from ab

17 years agoProvide an alternative CTDB_NO_MEMORY_NULL() for functions which return a pointer
Alexander Bokovoy [Fri, 1 Dec 2006 09:26:21 +0000 (12:26 +0300)]
Provide an alternative CTDB_NO_MEMORY_NULL() for functions which return a pointer

17 years agoMerge from tridge
Alexander Bokovoy [Fri, 1 Dec 2006 09:10:18 +0000 (12:10 +0300)]
Merge from tridge

17 years agoqueue up packets to nodes that aren't connected yet. This avoids a
Andrew Tridgell [Fri, 1 Dec 2006 04:54:15 +0000 (15:54 +1100)]
queue up packets to nodes that aren't connected yet. This avoids a
startup race condition in the test suite

17 years ago- added ctdb_set_flags() call
Andrew Tridgell [Fri, 1 Dec 2006 04:45:24 +0000 (15:45 +1100)]
- added ctdb_set_flags() call

- added --self-connect option to ctdb_test, allowing testing when a
  node connects to itself. not as efficient as local bypass, but very
  useful for testing purposes (easier to work with 1 task in gdb than
  2)

- split the ctdb_call() into an async triple, in the style of Samba4
  async functions. So we now have ctdb_call_send(), ctdb_call_recv()
  and ctdb_call().

- added the main ctdb_call protocol logic. No error checking yet, but
  seems to work for simple cases

- ensure we initialise the length argument to getsockopt()

17 years ago- added a 1 node test
Andrew Tridgell [Thu, 30 Nov 2006 23:23:03 +0000 (10:23 +1100)]
- added a 1 node test

- only need 10 elements in test code, more just makes it hard to
  follow in a debugger

17 years ago- fixed the sort function to include the exsting data
Andrew Tridgell [Thu, 30 Nov 2006 22:02:17 +0000 (09:02 +1100)]
- fixed the sort function to include the exsting data

- use numbers below 1000 in test code to make debug easier

- use ctdb_connect_wait()

17 years agoneed the header changes too
Andrew Tridgell [Thu, 30 Nov 2006 22:01:11 +0000 (09:01 +1100)]
need the header changes too

17 years agoadded ctdb_connect_wait()
Andrew Tridgell [Thu, 30 Nov 2006 21:58:08 +0000 (08:58 +1100)]
added ctdb_connect_wait()

17 years agomerge parts of the changes from ab. Don't merge ctdb_test changes yet
Andrew Tridgell [Thu, 30 Nov 2006 20:04:33 +0000 (07:04 +1100)]
merge parts of the changes from ab. Don't merge ctdb_test changes yet

17 years agoregenerate configure after changing configure.ac
Alexander Bokovoy [Wed, 29 Nov 2006 14:48:52 +0000 (17:48 +0300)]
regenerate configure after changing configure.ac

17 years agochange test a bit -- work on whole array of ints and process it in the loop (locally)
Alexander Bokovoy [Wed, 29 Nov 2006 14:48:32 +0000 (17:48 +0300)]
change test a bit -- work on whole array of ints and process it in the loop (locally)

17 years agorely on ctdb_test.c for the moment
Alexander Bokovoy [Wed, 29 Nov 2006 14:48:01 +0000 (17:48 +0300)]
rely on ctdb_test.c for the moment

17 years agoFix ctdb_call() fetching data and ltdb backend flags
Alexander Bokovoy [Wed, 29 Nov 2006 14:47:42 +0000 (17:47 +0300)]
Fix ctdb_call() fetching data and ltdb backend flags

17 years agoIgnore configure
Alexander Bokovoy [Wed, 29 Nov 2006 14:45:14 +0000 (17:45 +0300)]
Ignore configure

17 years agoIgnore configure
Alexander Bokovoy [Wed, 29 Nov 2006 14:43:05 +0000 (17:43 +0300)]
Ignore configure

17 years agoMerge from tridge
Alexander Bokovoy [Wed, 29 Nov 2006 09:37:24 +0000 (12:37 +0300)]
Merge from tridge

17 years ago- added in idtree for efficient reqid handling
Andrew Tridgell [Tue, 28 Nov 2006 09:48:34 +0000 (20:48 +1100)]
- added in idtree for efficient reqid handling

- started adding ctdb_call() code

- added ctdb_call_local() implementation

17 years ago- added simple (fake) vnn system
Andrew Tridgell [Tue, 28 Nov 2006 06:56:10 +0000 (17:56 +1100)]
- added simple (fake) vnn system

- split up ctdb layer code into 3 modules

- added a simple test suite

- added packet structures for ctdb_call

- switched to an array for ctdb_node to make vnn lookup easy and fast

17 years ago- setup a convenience name field for nodes
Andrew Tridgell [Tue, 28 Nov 2006 03:15:46 +0000 (14:15 +1100)]
- setup a convenience name field for nodes

- added basic IO handling for the tcp backend

- added a ctdb_node_dead upcall

- added packet queueing

- adding incoming packet handling

17 years ago- split up tcp functions into more logical parts
Andrew Tridgell [Tue, 28 Nov 2006 00:51:33 +0000 (11:51 +1100)]
- split up tcp functions into more logical parts

- added upcall methods from transport to ctdb layer

17 years agothis file is not needed yet
Andrew Tridgell [Mon, 27 Nov 2006 10:41:36 +0000 (21:41 +1100)]
this file is not needed yet

17 years agostarted splitting out transport code
Andrew Tridgell [Mon, 27 Nov 2006 10:38:13 +0000 (21:38 +1100)]
started splitting out transport code

17 years agomerge from ab
Andrew Tridgell [Mon, 27 Nov 2006 09:35:44 +0000 (20:35 +1100)]
merge from ab

17 years agoFix popt handling, this fixes segfault while asking for --help
Alexander Bokovoy [Mon, 27 Nov 2006 08:19:03 +0000 (11:19 +0300)]
Fix popt handling, this fixes segfault while asking for --help

17 years agoexample node list
Andrew Tridgell [Sat, 18 Nov 2006 04:34:35 +0000 (15:34 +1100)]
example node list

17 years agodon't talk to ourselves
Andrew Tridgell [Sat, 18 Nov 2006 04:33:56 +0000 (15:33 +1100)]
don't talk to ourselves

17 years agoadded a test event loop
Andrew Tridgell [Sat, 18 Nov 2006 04:27:36 +0000 (15:27 +1100)]
added a test event loop

17 years agoadded event context
Andrew Tridgell [Sat, 18 Nov 2006 03:33:05 +0000 (14:33 +1100)]
added event context

17 years agoadded ignore
Andrew Tridgell [Sat, 18 Nov 2006 02:48:14 +0000 (13:48 +1100)]
added ignore

17 years agostub for ctdb_call
Andrew Tridgell [Sat, 18 Nov 2006 02:46:38 +0000 (13:46 +1100)]
stub for ctdb_call

17 years agoadded incoming setup
Andrew Tridgell [Sat, 18 Nov 2006 02:45:04 +0000 (13:45 +1100)]
added incoming setup
added ctdb_start

17 years agoadded ctdb_set_address and broke out parsing
Andrew Tridgell [Sat, 18 Nov 2006 00:21:40 +0000 (11:21 +1100)]
added ctdb_set_address and broke out parsing

17 years agoget rid of some .svn files
Andrew Tridgell [Sat, 18 Nov 2006 00:00:52 +0000 (11:00 +1100)]
get rid of some .svn files

17 years agoadded a README
Andrew Tridgell [Fri, 17 Nov 2006 23:57:01 +0000 (10:57 +1100)]
added a README
ignore some files

17 years agoright include file path
Andrew Tridgell [Fri, 17 Nov 2006 23:55:55 +0000 (10:55 +1100)]
right include file path

17 years agoinitial version
Andrew Tridgell [Fri, 17 Nov 2006 23:41:20 +0000 (10:41 +1100)]
initial version