1
0
Fork 0
Commit Graph

2275 Commits

Author SHA1 Message Date
Max Neunhoeffer 33d063d6d6 Start to move ClusterComm to JavaScript. 2014-01-06 16:18:24 +01:00
Jan Steemann 7fcabc2cbf Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding 2014-01-06 13:18:12 +01:00
Jan Steemann 4de2b916c4 added test for uniqid 2014-01-06 13:18:01 +01:00
Jan Steemann 3679fdfe68 allow user functions as AQL function call parameters 2014-01-06 12:57:03 +01:00
Max Neunhoeffer 7c17c1c6e4 Follow coding guidelines in ClusterComm 2014-01-06 12:25:41 +01:00
Max Neunhoeffer 30415c6a73 Cleanup conversion C++ <-> Javascript of HttpRequest/HttpResponse. 2014-01-06 11:40:49 +01:00
Jan Steemann ca1e6288a2 allow functions results as parameters in all function calls 2014-01-06 11:14:54 +01:00
Jan Steemann b3ed54f95b fixed warnings reported by cppcheck 2014-01-03 19:28:15 +01:00
Jan Steemann 7baf040368 fixed doxygen error 2014-01-03 19:09:26 +01:00
Jan Steemann 5571698555 serialize/unserialize collection data from agency 2014-01-03 19:04:50 +01:00
Jan Steemann 15c78c23b0 some style corrections 2014-01-03 15:21:07 +01:00
Jan Steemann c249d98dfb Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding 2014-01-03 15:19:22 +01:00
Jan Steemann 3176c772cf allow locking/unlocking of arbitrary keys 2014-01-03 15:18:48 +01:00
Max Neunhoeffer f0cb458e9d Merge branch 'sharding' of ssh://github.com/triAGENS/ArangoDB into sharding 2014-01-03 15:11:48 +01:00
Max Neunhoeffer 3a0e814393 Use AgencyComm locks throughout. 2014-01-03 15:11:31 +01:00
Jan Steemann 84c46ddb4d added agency.list() 2014-01-03 15:11:03 +01:00
Max Neunhoeffer f09cdcf292 Bad state. 2014-01-03 14:10:35 +01:00
Max Neunhoeffer d50d4d019f Merge branch 'sharding' of ssh://github.com/triAGENS/ArangoDB into sharding 2014-01-03 14:08:08 +01:00
Max Neunhoeffer bf60888efe Start work on ClusterInfo. 2014-01-03 14:07:56 +01:00
Jan Steemann a4efa9fe1b Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding 2014-01-03 13:53:08 +01:00
Jan Steemann 532a59d0a3 added agency locks 2014-01-03 13:52:54 +01:00
Jan Steemann 91c52a3a2e fixed potential deadlock in global context execution 2014-01-03 13:47:11 +01:00
Jan Steemann e1dd2cb4db allow \n as line terminator in batch requests 2014-01-03 12:12:40 +01:00
Max Neunhoeffer 2a0c85bc07 Finish documentation of ClusterComm test API call.
Also fix bug in synchronous mode test.
2014-01-03 11:36:05 +01:00
Max Neunhoeffer 6c36c268f0 Improve debugging output of ClusterComm asynchronous requests. 2014-01-03 09:36:37 +01:00
Max Neunhoeffer 9598983051 Rename ClusterState to CluesterInfo. 2014-01-03 08:58:50 +01:00
Jan Steemann 87c1897c23 added lock and unlock functions, yet untested 2014-01-02 18:03:08 +01:00
Jan Steemann c48d54c49b conditional execution of agency tests 2014-01-02 17:22:37 +01:00
Jan Steemann b07ad28c35 added caching function to generate ids 2014-01-02 17:16:44 +01:00
Jan Steemann f952fd8bc0 added uniqid function to generate IDs 2014-01-02 16:37:11 +01:00
Jan Steemann 22d18e24c5 renamed etcd keys 2014-01-02 15:45:58 +01:00
Jan Steemann d1bee4cf58 added functions to query the server state 2014-01-02 15:13:44 +01:00
Jan Steemann 7980a51e26 moved cluster JS functions to its own files 2014-01-02 13:49:00 +01:00
Jan Steemann 8070db37a2 changed heartbeat watch implementation 2014-01-02 13:36:26 +01:00
Max Neunhoeffer 95f94397b0 Add synchronous request to ClusterComm. 2013-12-30 23:21:41 +01:00
Max Neunhoeffer b8ddcfef82 Remove *Delegate functions from ClusterComm library.
They do not make sense since we usually come from JavaScript
and have to take apart the JS objects anyway. Also, the requests
are usually quite small.
2013-12-30 16:36:27 +01:00
Max Neunhoeffer 52e5258a8a Add/modify asyncDelegate. 2013-12-30 16:11:21 +01:00
Max Neunhoeffer 842ad6d347 Improve error handling in HTTP requests for sharding. 2013-12-30 15:38:33 +01:00
Max Neunhoeffer bd03094ba9 Better error handling in sharding test. 2013-12-30 15:23:31 +01:00
Max Neunhoeffer df39a7fb58 Reactivate heartbeat. 2013-12-30 14:53:00 +01:00
Max Neunhoeffer c47ca741a4 Change a debug level into a trace level. 2013-12-30 14:51:06 +01:00
Max Neunhoeffer 5d51d7b3ba Get rid of many debugging messages. 2013-12-30 14:49:14 +01:00
Max Neunhoeffer c8b684dbd6 Generic test function for ClusterComm working. 2013-12-30 14:37:03 +01:00
Max Neunhoeffer 3415e3c0c8 Some cleanup in asyncRequest setup. 2013-12-30 10:22:21 +01:00
Max Neunhoeffer 9801cc9d19 Timeout basically working. 2013-12-27 16:18:56 +01:00
Frank Celler 84507cfc44 merged changes from 1.4 back to devel 2013-12-27 14:59:23 +01:00
Max Neunhoeffer 62976629f0 Various memory leaks and callback improvements. 2013-12-27 13:15:52 +01:00
Max Neunhoeffer f075ba8ae6 Fix another deadlock. 2013-12-27 09:13:09 +01:00
Frank Celler ad7385909e removed foxx-manager and arango-dfdb shell scripts, removed uid config file 2013-12-23 17:11:10 +01:00
Max Neunhoeffer c9b2884def Full round trip implemented but not yet working. 2013-12-23 16:19:59 +01:00
Frank Celler 7e30dc0b4e MacOS bundle 2013-12-23 16:03:38 +01:00
Frank Celler da8f9098a2 windows installer 2013-12-23 12:48:35 +01:00
Frank Celler 83d49223d5 added readme for windows 2013-12-22 11:34:05 +01:00
Frank Celler 2d5a8eb5ca added service functions 2013-12-22 00:48:31 +01:00
Frank Celler 2d9f8e3986 removed --daemon and --supervisor for Windows 2013-12-21 13:29:55 +01:00
Frank Celler 87cc2c4104 Merge branch '1.4' of github.com:triAGENS/ArangoDB into 1.4 2013-12-21 13:10:15 +01:00
Frank Celler 4f0d9f5b71 install Windows binaries all in bin 2013-12-21 13:10:08 +01:00
Frank Celler e57dceb42b arangod used same config as binary name 2013-12-21 01:36:25 +01:00
Jan Steemann 16e16f705c some bugfixes for asyncRequest etc 2013-12-20 18:03:55 +01:00
Jan Steemann 5a3b49a7bc fixed r/w deadlock 2013-12-20 16:27:54 +01:00
Jan Steemann c460ab97e9 applied changes from devel branch 2013-12-20 15:40:56 +01:00
Jan Steemann b903d9080d Merge remote-tracking branch 'origin/devel' into sharding
Conflicts:
	js/apps/system/aardvark/test/karma/karma.conf.js
2013-12-20 15:35:50 +01:00
Max Neunhoeffer 7f2241ae20 Rearrange locking look in sending thread. 2013-12-19 16:24:15 +01:00
Max Neunhoeffer 5c80816352 Can do one roundtrip.
Client -REST-> Coordinator -> sendQueue -REST-> DBServer
         -> recvQueue -REST-> Client
2013-12-19 16:15:54 +01:00
Max Neunhoeffer bfbbe18c57 Create a testing possibility for ClusterComm. 2013-12-19 11:33:34 +01:00
Frank Celler a82ef8b1ea fixed lock files for Windows 2013-12-19 11:26:38 +01:00
Frank Celler f7bf96846b Merge branch '1.4' of github.com:triAGENS/ArangoDB into 1.4 2013-12-19 09:33:02 +01:00
Max Neunhoeffer b55c7e22f9 Basic queueing logic ready.
Actual sending still todo.
2013-12-19 09:06:45 +01:00
Max Neunhoeffer fdc664859c Add skeletons of new functions. 2013-12-17 13:52:31 +01:00
Max Neunhoeffer 9c4a25670e Start the background thread for ClusterComm. 2013-12-17 11:42:01 +01:00
Max Neunhoeffer e84a9fe3ca Finalise public interface for ClusterComm library. 2013-12-17 10:44:16 +01:00
Jan Steemann 7c4944de83 added --server.ssl-protocol option for client tools
Conflicts:
	arangosh/Benchmark/BenchmarkThread.h
	lib/GeneralServer/SslAsyncCommTask.h
2013-12-13 17:58:24 +01:00
Jan Steemann e7ba403998 added --server.ssl-protocol option for client tools 2013-12-13 17:53:51 +01:00
Jan Steemann ed61b5272e added missing initialiser 2013-12-13 17:11:49 +01:00
Max Neunhoeffer 60eee47336 Next draft of ClusterComm API.
ClusterComm internals are unready and subject to change.
ClusterComm thread is not yet started and shut down.
ClusterState does not do anything (yet).
2013-12-13 17:07:18 +01:00
Max Neunhoeffer 145fa2562e Merge branch 'sharding' of ssh://github.com/triAGENS/ArangoDB into sharding
Conflicts:
	arangod/Makefile.files
2013-12-13 16:06:01 +01:00
Max Neunhoeffer 721681b4ee Move Cluster state information to its own class. 2013-12-13 16:04:54 +01:00
Jan Steemann 865b70862e some minor adjustments for arangodump and arangorestore 2013-12-13 11:54:00 +01:00
Jan Steemann 69a462e785 some minor adjustments for arangodump and arangorestore 2013-12-13 11:52:52 +01:00
Jan Steemann f0184d2786 not sure about the restshardhandler yet 2013-12-12 17:51:45 +01:00
Jan Steemann 8eccb0a35f added dispatcher to shardhandler 2013-12-12 16:42:25 +01:00
Jan Steemann e1fb1f3d14 added stub REST API for cluster requests 2013-12-12 15:59:16 +01:00
Jan Steemann 0136a88076 Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding 2013-12-12 15:26:02 +01:00
Jan Steemann 897ddca313 startup/shutdown modifications 2013-12-12 15:25:53 +01:00
Max Neunhoeffer 857aed7b8f Merge branch 'sharding' of ssh://github.com/triAGENS/ArangoDB into sharding 2013-12-12 13:53:31 +01:00
Max Neunhoeffer 47a1c315b8 First proper draft of ClusterComm library. 2013-12-12 13:53:16 +01:00
Jan Steemann 5b0713af9c added recursive watches and structured get 2013-12-12 11:16:41 +01:00
Jan Steemann 7409f87a73 clang++ vs g++ 2013-12-12 10:38:05 +01:00
Jan Steemann 213f6e01fb fixed c11 warning 2013-12-12 10:36:38 +01:00
Jan Steemann 13bcc2bf7a Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into sharding 2013-12-11 18:39:10 +01:00
Jan Steemann c3132997b3 Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding 2013-12-11 18:37:58 +01:00
Jan Steemann 620f4b1c47 added agency tests 2013-12-11 18:37:15 +01:00
Max Neunhoeffer e4cebe0536 Very first incomplete draft of ClusterComm.
Note that this is not yet in the Makefiles, but it at least compiles
if one puts it there.
2013-12-11 16:48:43 +01:00
Jan Steemann 5e5a5fb32b added JS bindings for agency 2013-12-11 09:56:54 +01:00
Jan Steemann 9e21cf9b7e added configure option --enable-cluster 2013-12-10 14:46:16 +01:00
Jan Steemann c4bb315626 added comment 2013-12-10 14:34:53 +01:00
Jan Steemann 57223ecaba failover handling for agency connections 2013-12-10 14:33:34 +01:00
Jan Steemann b6e062030a fixed invalid include 2013-12-10 12:50:39 +01:00
Jan Steemann 1b64ae7a9d better error detection 2013-12-10 12:48:50 +01:00
Jan Steemann 8708dc7e70 renamed sharding to cluster 2013-12-10 09:56:00 +01:00
Jan Steemann a67ee89a9e use X-Etcd-Index header 2013-12-09 17:55:49 +01:00
Jan Steemann 996be652f1 fetch commands for server from agency 2013-12-09 17:44:19 +01:00
Jan Steemann 51261bc183 fetch server role at startup 2013-12-09 15:52:40 +01:00
Frank Celler 35af9593a4 fixed wrong path in install script 2013-12-07 18:56:14 +01:00
Jan Steemann 993d857afe allow references as function parameters 2013-12-07 18:56:04 +01:00
Frank Celler 86b7fea992 Vs2013 2013-12-07 18:55:55 +01:00
Jan Steemann f4f0364b0d fixed multi-agency 2013-12-06 20:00:21 +01:00
Jan Steemann 452e5ed389 more configuration 2013-12-06 18:10:29 +01:00
Jan Steemann b5a781d1e1 diagnostic messages on startup 2013-12-06 17:49:27 +01:00
Jan Steemann 8667ac5b46 added remove functionality 2013-12-06 16:52:03 +01:00
Frank Celler 30ed6ac8d0 fixed wrong path in install script 2013-12-06 14:52:27 +01:00
Jan Steemann 6d5d5fad2d simplified agencycomm 2013-12-06 14:48:56 +01:00
Jan Steemann 2965accb05 add current state to agency 2013-12-06 14:23:02 +01:00
Jan Steemann b7dee51516 introduced global server state 2013-12-06 11:49:26 +01:00
Jan Steemann 0dfe23fb52 validate command-line options, starting/stopping heartbeat thread 2013-12-06 10:52:40 +01:00
Jan Steemann 492b164373 added sharding application feature and initial startup options 2013-12-05 17:27:26 +01:00
Jan Steemann a976f1b2b9 added stubs for communication layer 2013-12-05 14:28:52 +01:00
Jan Steemann e18d4eb162 added AgencyComm header 2013-12-05 13:48:15 +01:00
Jan Steemann 57d77094d6 added server states 2013-12-05 12:15:19 +01:00
Jan Steemann 26fc85f88c allow references as function parameters 2013-12-04 22:05:44 +01:00
Jan Steemann 44b3237882 moved server-only tests to js/server/tests
this hopefully removes some future confusion about the tests
also moved some graph stuff into js/common as client-side graphs did not fully work

make logfile path accessible
2013-12-04 22:05:00 +01:00
Jan Steemann 7da102506f allow references as function parameters 2013-12-04 20:37:30 +01:00
Jan Steemann c3f004dd3f rtrim the path 2013-12-04 17:40:19 +01:00
Max Neunhoeffer ddce3a4457 Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2013-11-27 12:52:43 +01:00
Max Neunhoeffer 317304542a Remove index garbage collector. 2013-11-25 10:57:23 +01:00
Jan Steemann ba2ddb8382 replaced if with ifdef 2013-11-25 10:56:08 +01:00
Max Neunhoeffer 0d267e4549 Remove remaining traces of skiplistEx 2013-11-25 10:39:02 +01:00
Frank Celler e1652be8d2 install only system, do not create directory
Conflicts:
	Makefile.in
2013-11-23 15:54:35 +01:00
Frank Celler 55c033ef93 install only system, do not create directory 2013-11-23 13:55:37 +01:00
Jan Steemann 9a1aa7a4cc removed superfluous error codes 2013-11-22 13:49:05 +01:00
Max Neunhoeffer 082dce4f81 Report a unique constraint violation via TRI_set_errno. 2013-11-22 13:14:59 +01:00
Max Neunhoeffer 8d37c937bf Fix a memory leak introduced by the skip list index cleanup. 2013-11-22 11:37:59 +01:00
Max Neunhoeffer 3aa1b12a45 Merge branch 'skiplist-cleanup' into devel
This implements a considerable cleanup of the skip list index code:
  - Replace implementation of skip lists by a generic one using
    callbacks for comparisons
  - The new implementation resides in lib/BasicsC/skip-list.*
  - It uses a singly linked list (unidirectional) as opposed to the
    previous implementation which used a doubly linked list
  - Adjust skip list index code in arangod/SkipLists/skiplistIndex.* to
    use the generic skip list implementation
  - Unify unique skip lists and non-unique ones into one code base
  - Cleanup in skip list index code, in particular with respect to
    iterators
  - Prepare the scene for sparse skip list indices
2013-11-22 10:47:04 +01:00
Jan Steemann e79134799c mini optimisations for shaping 2013-11-22 02:41:39 +01:00
Jan Steemann 0deaf30ff0 added assertion 2013-11-21 22:56:48 +01:00
Jan Steemann b75c66c2e4 fixed segfault in AQL optimiser when using IN on constant, non-list values 2013-11-21 22:56:37 +01:00
Jan Steemann 7e8d73fe43 added assertion 2013-11-21 22:54:06 +01:00
Jan Steemann 6302003f06 fixed segfault in AQL optimiser when using IN on constant, non-list values 2013-11-21 22:53:32 +01:00
Max Neunhoeffer 0284c3712a Fix an off by one error at right end. 2013-11-21 16:16:30 +01:00
Max Neunhoeffer 58aad69289 Remove old Multi skip list index code. 2013-11-21 15:47:44 +01:00
Max Neunhoeffer be00fbed46 Sort out return type of NextIterator for skiplist indices. 2013-11-21 15:47:00 +01:00
Max Neunhoeffer 5b4354b991 Fix another bug in skiplist indices. 2013-11-21 15:26:51 +01:00
Max Neunhoeffer f57ba87c61 Fix bug with initialisation of _cursor. 2013-11-21 15:22:10 +01:00
Jan Steemann cbd2bbf2b1 fixed some multi-thread issues 2013-11-21 15:14:46 +01:00
Jan Steemann 1bdf666da2 fixed multi-threading issues found during commando 2013-11-21 15:12:49 +01:00
Max Neunhoeffer 7d039be0a4 Remove old skiplist code. 2013-11-21 15:08:08 +01:00
Max Neunhoeffer 79a475d2d4 Fix first bug. 2013-11-21 14:52:18 +01:00
Jan Steemann 37dbda22ef added default pretty-printing for --console mode 2013-11-21 14:02:48 +01:00
Max Neunhoeffer f98d07b02f Compiles again, untested. 2013-11-21 13:54:02 +01:00
Jan Steemann 73afd9bfa1 fixed comment 2013-11-20 23:06:18 +01:00