Max Neunhoeffer
7afd1cb197
Fixes in ClusterComm for sync. replication and failover.
2016-05-31 01:15:09 -06:00
Andreas Streichardt
6cb00f905d
Merge branch 'devel' into jwt
2016-05-30 18:49:26 +02:00
Andreas Streichardt
84a7213755
Add jwtsecret
2016-05-30 14:48:35 +02:00
jsteemann
3d831b2e2b
remove unnecessary checks
2016-05-30 14:45:11 +02:00
jsteemann
b8f99fa717
slightly adjusted wait times
2016-05-30 09:34:13 +02:00
Max Neunhoeffer
77e0f85274
Fix a V8 context leak. LOL.
2016-05-26 20:09:20 +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
e4ca111914
Remove an unnecessary check.
2016-05-25 17:26:53 +02:00
Max Neunhoeffer
febb36fb1c
Put in API to scale cluster via the coordinators.
2016-05-24 15:44:35 +02:00
Max Neunhoeffer
d988736ea9
Lower a logging level to DEBUG in performRequests.
...
Errors will be reported elsewhere.
2016-05-24 09:53:05 +02:00
Max Neunhoeffer
1e6fe40149
Reduce follower timeout to 3.0 seconds.
2016-05-24 08:38:01 +02:00
Max Neunhoeffer
79a3621430
Fix sync repl test.
2016-05-23 16:57:07 +02:00
Max Neunhoeffer
b16bd2e003
Still rename ServerJob -> DBServerAgencySync.
2016-05-23 14:00:44 +02:00
Max Neunhoeffer
4761abd848
Better debugging message.
2016-05-23 13:59:35 +02:00
Max Neunhoeffer
f1bb21b3a7
Finish renaming ServerJob -> DBServerAgencySync.
2016-05-23 13:59:00 +02:00
Max Neunhoeffer
d1bff377d5
Rename ServerJob to DBServerAgencySync.
2016-05-23 13:58:23 +02:00
Kaveh Vahedipour
e3b78a8f6e
supervising on
2016-05-19 16:59:08 +02:00
Max Neunhoeffer
aa720cadda
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2016-05-19 14:18:59 +02:00
jsteemann
dd0fd3df90
added x-arango-start-thread header feature
2016-05-19 14:15:59 +02:00
Max Neunhoeffer
feb7b4e71b
More logging, check Current/Version in every heartbeat in dbserver.
2016-05-19 14:03:49 +02:00
Max Neunhoeffer
410f3b3a12
Fix ClusterInfo: increase Current/Version with follower change.
2016-05-19 14:02:59 +02:00
Andreas Streichardt
7bbf42d776
Fix guards
2016-05-18 10:54:46 +02:00
Max Neunhoeffer
be84973c40
Fix ArangoPrefix to "arango".
2016-05-17 11:20:22 +02:00
jsteemann
7d9e93e61e
removed unused includes of JsonHelper.h
2016-05-13 19:00:23 +02:00
Max Neunhoeffer
c2ce2c5347
Remove tabs in source.
2016-05-11 16:38:36 +02:00
Max Neunhoeffer
20cd5f2c2a
Delete more unused stuff from AgencyComm.
2016-05-11 16:15:01 +02:00
Andreas Streichardt
5d3abc879e
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-11 15:31:11 +02:00
Andreas Streichardt
4d13e8fb1b
_listDatabases() => _databases()
2016-05-11 15:30:47 +02:00
jsteemann
d6e9b7b38b
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2016-05-11 15:01:10 +02:00
jsteemann
3f1516eca7
bugfixes
2016-05-11 15:01:06 +02:00
Max Neunhoeffer
73bdf4b8b5
More silence at startup.
2016-05-11 14:48:31 +02:00
Max Neunhoeffer
071c51abe4
A paranoid change to avoid a use after free. Fixed a typo.
2016-05-11 14:48:12 +02:00
Max Neunhoeffer
f41ab22098
Change a few startup messages from level INFO to DEBUG.
2016-05-11 11:42:33 +02:00
Jan Steemann
912383ca68
cppcheck
2016-05-10 20:13:55 +02:00
jsteemann
213ade22a4
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2016-05-10 19:01:30 +02:00
jsteemann
0ce8599598
fixes for MSVC
2016-05-10 19:01:21 +02:00
Andreas Streichardt
e88daf35c0
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-10 18:42:51 +02:00
Andreas Streichardt
2c7b7450e1
handlePlanChange() will now use the cache
2016-05-10 18:42:30 +02:00
jsteemann
30525fccee
use StaticStrings
2016-05-10 17:01:34 +02:00
Max Neunhoeffer
39ecd9fd13
Rename prefix and prefixStripped in AgencyComm.
2016-05-10 16:00:07 +02:00
Max Neunhoeffer
825f010980
Rename getValues2 to getValues.
2016-05-10 15:52:54 +02:00
Max Neunhoeffer
d44546296d
Remove AgencyComm::getValues() for good and purge TRI_json_t in ClusterInfo.
2016-05-10 15:43:58 +02:00
Michael Hackstein
ffb5ec8159
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-10 14:47:27 +02:00
Jan Steemann
4f138ce0f1
fixed handling of feature startup failures
2016-05-10 12:28:25 +02:00
jsteemann
0be8fddf12
fixed shutdown race
2016-05-09 18:34:14 +02:00
Michael Hackstein
77c4ae5738
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 17:50:19 +02:00
Andreas Streichardt
f4a417bd9c
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 17:49:34 +02:00
Andreas Streichardt
7f3af843fc
Remove currentCollectionsProt
2016-05-09 17:49:18 +02:00
Michael Hackstein
ba614c1a6a
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 17:49:00 +02:00
Michael Hackstein
e9787018b3
The Pattern matching now allows a minDepth of 0 and even a complete search of depth 0.
2016-05-09 17:48:55 +02:00
Max Neunhoeffer
a16c7e8f30
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2016-05-09 16:55:59 +02:00
Max Neunhoeffer
d1e5b65737
Two fewer AgencyComm::getValues() calls.
2016-05-09 16:55:42 +02:00
Andreas Streichardt
a69e7808c2
Fix unused variables
2016-05-09 16:25:20 +02:00
Andreas Streichardt
64c8c2d8ae
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 15:46:02 +02:00
Max Neunhoeffer
409ae6f7cd
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2016-05-09 15:43:08 +02:00
Max Neunhoeffer
b571bf535d
Fix AgencyComm.
...
Result code precondition failed was overwritten with 200,
breaking all casValue calls.
2016-05-09 15:37:57 +02:00
Kaveh Vahedipour
37c0ec4f54
more complete verbose output on custercomm connections
2016-05-09 15:05:33 +02:00
Andreas Streichardt
2fd528bb21
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 14:46:41 +02:00
Kaveh Vahedipour
5f2c72c4a9
broken sendTransactionWithFailover sent 200 regardless of actual error
2016-05-09 14:43:57 +02:00
Michael Hackstein
ab13d1e3a6
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 13:45:20 +02:00
Andreas Streichardt
97a83e91c5
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2016-05-09 13:38:38 +02:00
Andreas Streichardt
3e42435c46
No more loadCurrentCollections()
2016-05-09 13:36:16 +02:00
Max Neunhoeffer
0b068fa3e4
Create log topics for AgencyComm and Heartbeat.
2016-05-09 13:19:23 +02:00
Michael Hackstein
7b8d3d6df7
Insertion of documents in Cluster (babies case) now passes through the X-Arango-Error-Codes.
2016-05-09 12:45:31 +02:00
Max Neunhoeffer
3bc89d5f8a
Small fix to ClusterInfo::uniqid
2016-05-09 12:32:38 +02:00
Max Neunhoeffer
32e652a0ef
Take out an empty line.
2016-05-09 11:27:41 +02:00
Max Neunhoeffer
b00d3c5624
Finish overhaul of ClusterInfo.cpp w.r.t. callbacks.
2016-05-09 09:47:27 +02:00
Max Neunhoeffer
f971c3cf82
Overhaul AgencyCallback.
2016-05-07 01:11:15 +02:00
Max Neunhoeffer
7ed306c2e7
Fix double locking of mutex of condition variable.
2016-05-06 23:25:19 +02:00
Max Neunhoeffer
b37d8fff48
Better protection against multi-threading.
2016-05-06 23:06:10 +02:00
Max Neunhoeffer
1d8c7e4515
Take out a debug message.
2016-05-06 22:46:40 +02:00
Max Neunhoeffer
ce9ca50b95
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2016-05-06 22:33:55 +02:00
Max Neunhoeffer
0fbc48b83e
Improve cluster in various ways.
...
Finish implementation of AgencyReadTransaction.
Use AgencyReadTransaction in HeartbeatThread of coordinator (less requests).
Repair ClusterInfo::uniqid.
Repair AgencyComm::uniqid.
Remove x-etcd-index header.
Remove _index in AgencyCommResult.
Streamline HeartbeatThread of coordinator.
Remove lastCommandIndex from AgencyComm.
Fix HeartbeatThread::handleStateChange.
2016-05-06 22:30:27 +02:00
Andreas Streichardt
016b79f4c7
Fix object requirement
2016-05-06 18:58:58 +02:00
Andreas Streichardt
dc95f2b4c1
Merge branch 'json_agency_comm' into devel
2016-05-06 18:38:24 +02:00
Andreas Streichardt
1233186eba
actually use swapDatabases variable
2016-05-06 18:32:55 +02:00
Andreas Streichardt
0a14a56cb9
mop trying to do c++ => fail
2016-05-06 18:29:33 +02:00
Andreas Streichardt
a121aff1a0
Implement proper (database) current loading
2016-05-06 18:10:45 +02:00
Andreas Streichardt
9cbe13dd43
Merge branch 'json_agency_comm' into devel
2016-05-06 17:21:41 +02:00
Andreas Streichardt
3773b0e66c
Merge branch 'json_agency_comm' of github.com:arangodb/arangodb into json_agency_comm
2016-05-06 17:04:04 +02:00
Andreas Streichardt
04ba5156e5
Rework planned collection loading
2016-05-06 17:03:13 +02:00
Max Neunhoeffer
5690c0410c
Remove option replicationQuorum which was unused as of now.
2016-05-06 09:53:01 +02:00
Max Neunhoeffer
0256193a27
Handle int case for HeartbeatThreadMs in agency gracefully.
2016-05-06 09:22:18 +02:00
Max Neunhoeffer
7232432dce
Fix usage of getValues2 in FollowerInfo class.
2016-05-06 09:15:33 +02:00
Kaveh Vahedipour
642fc70082
Heartbeat uses getValues2
2016-05-05 17:49:29 +02:00
Kaveh Vahedipour
d1bf42a2b8
shards add/remove to getValues 2
2016-05-05 17:34:45 +02:00
Max Neunhoeffer
e3dd2f0a94
Lose an unused local variable.
2016-05-05 00:27:48 +02:00
Max Neunhoeffer
b98ea35a38
Change a debug message into an error.
2016-05-04 23:47:13 +02:00
Kaveh Vahedipour
0bb19c0955
Merge branch 'json_agency_comm' of https://github.com/arangodb/arangodb into json_agency_comm
2016-05-04 16:52:23 +02:00
Kaveh Vahedipour
af7e490d2a
wrong implementation of property collectionsetting through coordinator
2016-05-04 16:52:14 +02:00
Max Neunhoeffer
cae72d0d61
Make _vpack of AgencyCommResult abstract.
2016-05-04 16:49:02 +02:00
Max Neunhoeffer
cd39a884f9
Fix fix.
2016-05-04 16:28:54 +02:00
Max Neunhoeffer
441f1caa4e
Fix new getValues2 calls.
2016-05-04 16:28:29 +02:00
Max Neunhoeffer
355a412cd4
Remove second argument of getValues2.
2016-05-04 16:02:05 +02:00
Max Neunhoeffer
c2ff6c326f
Fix a few possible crashes in HeartBeatThread.
2016-05-04 15:20:46 +02:00
Kaveh Vahedipour
7eed0ecc2f
Merge branch 'json_agency_comm' of https://github.com/arangodb/arangodb into json_agency_comm
2016-05-04 15:00:41 +02:00
Kaveh Vahedipour
9d8037b62b
added /supervision/jobs to initial agency structure
2016-05-04 15:00:33 +02:00
Max Neunhoeffer
0ac60a8fe7
Merge branch 'devel' into json_agency_comm
2016-05-04 11:15:02 +02:00
Max Neunhoeffer
cc8c635beb
Some cleanup in Agency init data.
2016-05-04 11:13:23 +02:00
Max Neunhoeffer
1b0b9ae5df
Take out getTargetServerEndpoint.
...
This used Target/MapIDToEndpoint which is now gone.
2016-05-04 11:10:42 +02:00