1
0
Fork 0
Commit Graph

224 Commits

Author SHA1 Message Date
Max Neunhoeffer 059b24d7e7 Start work on rebalancing of shards. 2016-06-10 00:13:42 +02:00
Max Neunhoeffer ebe0b5c64a Report result of DBSyncServerJob back to the heartbeat thread. 2016-06-09 12:03:34 +02:00
jsteemann 0d5e91e804 fixed jslint 2016-06-08 16:58:15 +02:00
Max Neunhoeffer 49cd6ca9f4 Fix leaderResign (no double resign) and leader change. 2016-06-08 15:54:00 +02:00
Max Neunhoeffer d48f5506f2 Fix shard removeShardFollower functionality. 2016-06-08 14:59:39 +02:00
Max Neunhoeffer 659a06765d Let a follower unfollow a leader. 2016-06-08 10:00:19 +02:00
Max Neunhoeffer c85bd2fdbe Implement leader resignation. 2016-06-07 23:26:34 +02:00
Max Neunhoeffer fe5b9f9c23 Remove shard entries in Agency less eagerly.
This fixes a bug about collections vanishing in Current.
2016-06-07 23:01:56 +02:00
Max Neunhoeffer 5f14a4eaa5 Fix JS code using asyncRequest. 2016-06-06 15:21:36 +02:00
Max Neunhoeffer 19747c8b6c Fix crash due to wrong usage of asyncRequest. 2016-06-06 11:30:39 +02:00
Jan Steemann 0b17568365 fix jslint 2016-05-31 10:17:05 +02:00
Max Neunhoeffer 1538bb7cb0 Bugfix for sync. repl. 2016-05-31 01:18:05 -06:00
Max Neunhoeffer eaacae8c2f Take out a debugging message. 2016-05-25 22:29:12 +02:00
Max Neunhoeffer 4a4472e31e Repair DBServerAgencySync in background.
Also: Notice role change follower->leader.
2016-05-25 17:27:27 +02:00
Max Neunhoeffer 0227e47153 Fix shard sync jobs in background.
Also fix bug that indexes and properties in followers are updated.
2016-05-25 11:55:07 +02:00
Max Neunhoeffer 37851116ae Better error reporting in syncShards. 2016-05-25 08:05:28 +02:00
Max Neunhoeffer d801510ac5 Run shard sync in background task. 2016-05-24 23:28:22 +02:00
Max Neunhoeffer 94cd868deb Revert "Run shard sync in background task."
This reverts commit a8b68b79eb.
2016-05-24 13:16:51 +02:00
Max Neunhoeffer a8b68b79eb Run shard sync in background task. 2016-05-24 12:01:06 +02:00
Max Neunhoeffer 31bff28489 Factor out synchronizeOneShard. 2016-05-24 09:43:59 +02:00
Max Neunhoeffer 717d110a1d More fixes in DBServerAgencySync js part. 2016-05-23 22:54:21 +02:00
Max Neunhoeffer 7dec299c3a Improve error messages. 2016-05-23 20:40:48 +02:00
Max Neunhoeffer 611b7f9ee0 Repair resilience for system collections.
Plus a lot of synchronous replication bugfixes.
2016-05-23 14:02:01 +02:00
Max Neunhoeffer d27af40691 Tune shard synchronization. 2016-05-20 09:53:26 +02:00
Jan Steemann e03cff939b jslint 2016-05-19 17:19:05 +02:00
Max Neunhoeffer 5760868a32 Fix sync. 2016-05-19 16:53:15 +02:00
Max Neunhoeffer 8502ea5189 Fix synchronization of shards for sync. replication. 2016-05-19 14:15:27 +02:00
Max Neunhoeffer 57c7bb8ab9 Fix JavaScript collection updater.
Also add tests for synchronous replication.
2016-05-17 11:19:52 +02:00
Andreas Streichardt 4d13e8fb1b _listDatabases() => _databases() 2016-05-11 15:30:47 +02:00
Andreas Streichardt 2c7b7450e1 handlePlanChange() will now use the cache 2016-05-10 18:42:30 +02:00
Max Neunhoeffer f0db06b47d Fix test and jslint. 2016-05-04 14:50:37 +02:00
Kaveh Vahedipour dab8accd5b Merge branch 'devel' of https://github.com/arangodb/arangodb into json_agency_comm 2016-05-03 08:57:09 +02:00
jsteemann 64f55422ce jslint 2016-05-02 19:53:16 +02:00
Andreas Streichardt b2190aacb1 Announce new, boostraped dbs correctly in agency 2016-05-02 18:40:46 +02:00
Kaveh Vahedipour de4d6efec9 corrected changes for new json structure 2016-05-02 18:19:21 +02:00
Kaveh Vahedipour b791188f18 Merge branch 'devel' of https://github.com/arangodb/arangodb into json_agency_comm 2016-05-02 17:49:11 +02:00
Andreas Streichardt 0790b00737 hotfix for cluster startup 2016-05-02 17:45:39 +02:00
Max Neunhoeffer 12bf5a2dde Fix cluster.js. 2016-05-02 16:48:59 +02:00
Kaveh Vahedipour 00ce93b8d0 Merge branch 'devel' of https://github.com/arangodb/arangodb into json_agency_comm 2016-05-02 16:14:37 +02:00
Andreas Streichardt 3e470891f8 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2016-05-02 15:21:06 +02:00
Andreas Streichardt b55ac05a49 fix init 2016-05-02 15:20:31 +02:00
Alan Plum 53dc168a71
Linting 2016-05-02 14:42:10 +02:00
Andreas Streichardt 5d7b8acba0 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2016-05-02 14:00:50 +02:00
Andreas Streichardt 974ecdc208 Implement Current callback 2016-05-02 14:00:26 +02:00
jsteemann fb912c28b6 jslint 2016-05-02 13:19:22 +02:00
Andreas Streichardt 18ea698038 Restructure code so that the installed versions are being returned by
the plan changer
2016-05-02 12:19:07 +02:00
Kaveh Vahedipour ee2115ceeb remaining verbose output 2016-04-28 16:28:59 +02:00
Kaveh Vahedipour e81e3e51e0 javascript side of jsonified agency 2016-04-28 15:15:55 +02:00
Kaveh Vahedipour 049cc8602e careful with loops :( 2016-04-27 16:53:09 +02:00
Kaveh Vahedipour 0530603763 dirty yet 2016-04-25 18:37:28 +02:00
Max Neunhoeffer 13fdd67d38 Better timeouts in synchronisation in heartbeat thread. 2016-04-20 17:24:38 +02:00
Max Neunhoeffer 130efabdca Export endpointToURL for others to require. 2016-04-07 16:19:26 +02:00
Andreas Streichardt 3bdbded541 Fix linter errors 2016-04-05 18:45:39 +02:00
Andreas Streichardt d2d7af67fe Kickstarter and planner are dead 2016-04-05 17:45:39 +02:00
Jan Steemann ecf2deadb8 jslint 2016-03-24 19:35:37 +01:00
Andreas Streichardt 9ba72b4412 Properly update current collection 2016-03-24 16:55:15 +01:00
Andreas Streichardt 3f9f03bb38 Remove debug 2016-03-24 14:26:12 +01:00
Frank Celler def5b35a84 jslint fixes 2016-03-18 11:02:42 +01:00
Andreas Streichardt 90862b6081 Proper secondary => Primary failover 2016-03-17 22:39:15 +00:00
Andreas Streichardt b29c437b7f Add more error info 2016-03-11 18:22:12 +01:00
Max Neunhoeffer 0902edc257 Fix jslint error. 2016-02-15 20:50:12 +01:00
Max Neunhoeffer 9d3446afe5 Stop WAL collection before synchronization of shard. 2016-02-15 10:29:06 +01:00
Max Neunhoeffer 1065486a77 First version of getting shards in sync working. 2016-02-13 23:04:20 +01:00
Max Neunhoeffer 8b98ae5ef5 Snapshot for merging. 2016-02-11 09:11:00 +01:00
Max Neunhoeffer dc63cb3874 Merge branch 'devel' into ClustUp2 2016-02-09 15:52:36 +01:00
Andreas Streichardt adce528373 Proper initialization
Also find a fitting spot for our role
2016-02-04 11:29:43 +01:00
Max Neunhoeffer 93400bfdcc Implement followerInfo. 2016-02-01 11:38:10 +01:00
Max Neunhoeffer b0283077db Merge branch 'devel' into ClustUp2 2016-01-11 11:41:36 +01:00
Jan Steemann 8390793699 moved docu blocks into their own files 2016-01-07 16:39:19 +01:00
Max Neunhoeffer d8bae80887 Snapshot, with debugging output. 2015-12-30 16:53:13 +01:00
Max Neunhoeffer 8feb663890 Add synchronisation of follower shards. 2015-12-29 15:48:55 +01:00
Max Neunhoeffer b227b71c96 Remove name from collection properties for shards. 2015-12-18 15:34:37 +01:00
Max Neunhoeffer 4451e491ec Merge branch 'devel' into ClustUp1 2015-12-15 17:46:34 +01:00
Alan Plum 8853ede355 org/arangodb -> @arangodb 2015-12-15 15:51:44 +01:00