1
0
Fork 0
Commit Graph

393 Commits

Author SHA1 Message Date
Max Neunhoeffer 82e548ff8b Change setup of getResponsibleShard w.r.t. collection. 2016-10-07 21:05:18 +02:00
Andreas Streichardt dffbfcdacb ignore failedservers if it is not an object (upgrade use case) 2016-10-06 15:52:50 +02:00
Frank Celler 8e3a73281e added more events 2016-10-06 14:14:38 +02:00
Michael Hackstein a6dbda8bdd Made index creation enterprise ready. 2016-10-05 13:01:27 +02:00
Max Neunhoeffer 5cd913e003 Fix error handling for ClusterInfo::getCollection. 2016-09-30 14:11:46 +02:00
Kaveh Vahedipour 1eedda332d arangod/Cluster/ClusterInfo.cpp 2016-09-29 15:32:10 +02:00
Kaveh Vahedipour cdffe12917 agency bug resolved 2016-09-29 14:07:31 +02:00
Kaveh Vahedipour 71087e9e82 fixed long waits on dropping shardless collections 2016-09-29 12:02:40 +02:00
Max Neunhoeffer 4080f93eb2 Faster creation of smart edge collections. 2016-09-29 11:11:28 +02:00
Max Neunhoeffer f4d9c30ee2 Improve an if statement. 2016-09-28 16:20:47 +02:00
Max Neunhoeffer 1df17afcaf Add SmartVertexCollection. 2016-09-28 13:38:14 +02:00
Michael Hackstein 9882c825ce Added some smart info into logical collection and make sure that virtual collections are created via load plan 2016-09-27 16:26:13 +02:00
jsteemann b5c5407b02 try to fix compile warnings in non-maintainer mode 2016-09-27 13:31:17 +02:00
Kaveh Vahedipour 766e44e102 fixed access to updated entitity in ClusterInfo 2016-09-26 16:20:39 +02:00
Kaveh Vahedipour c793c3ac44 FailedServer jobs can report when last FailedLeader has been processed 2016-09-22 17:23:56 +02:00
Kaveh Vahedipour 5e7d5cb770 typo fixed 2016-09-20 15:24:14 +02:00
Max Neunhoeffer fcf9d32ba4 Fix various things in agency callback handling in coordinator. 2016-09-20 15:22:12 +02:00
Kaveh Vahedipour d3b20b8c33 all lambdas in ClusterInfo might have been left with dangling references. 2016-09-15 09:10:47 +00:00
Kaveh Vahedipour b222c2306e agency warnings spamming 2016-09-13 09:16:47 +02:00
Kaveh Vahedipour bdf72982dc warning removed 2016-09-12 17:41:35 +02:00
Max Neunhoeffer d7ab888046 Cleanup hash function for attributes. Prepare enterprise. 2016-09-09 16:49:02 +02:00
jsteemann 9611f30796 Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types 2016-09-07 11:44:49 +02:00
Kaveh Vahedipour 57453c96c5 Logging in cluster. No votes in constituent before vocbase != nullptr 2016-09-07 11:09:33 +02:00
Kaveh Vahedipour a37d073813 a candidate of a leader could ask a strarting up agent for a vote before it having a vocbase. 2016-09-07 11:02:15 +02:00
Michael Hackstein acfbf48762 Improved error output in cluster mode whenever illegal information is found inside the agency. 2016-09-07 09:26:14 +02:00
jsteemann eac7eafc4e fix collection creation 2016-09-06 18:33:08 +02:00
jsteemann caba67dafb Merge branch 'generic-col-types' of https://github.com/arangodb/arangodb into generic-col-types 2016-09-06 10:49:54 +02:00
jsteemann ffa00e26a0 some index cleanup 2016-09-06 10:49:40 +02:00
Max Neunhoeffer 49d7cf345f Improve version handling in ClusterInfo. 2016-09-05 16:03:28 +02:00
Michael Hackstein decb4b69a3 Merge branch 'generic-col-types' of github.com:arangodb/arangodb into generic-col-types 2016-09-05 11:04:12 +02:00
Michael Hackstein e5e28f9c08 Added a try catch in loadPlan. If the agency for some reason contains invalid collection information the coordinator will not break down, instead it will ignore the invalid collection and continue. 2016-09-05 11:03:59 +02:00
jsteemann 4492409d5f Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types 2016-09-02 15:23:15 +02:00
jsteemann 1823cff3a9 removed TRI_collection_t 2016-09-02 14:54:13 +02:00
Kaveh Vahedipour b3b7d7c907 failed servers are excluded from new shard creation 2016-09-02 12:37:53 +02:00
jsteemann 5524b25800 removed VocbaseCollectionInfo 2016-09-02 09:41:36 +02:00
Michael Hackstein 3c851f8687 Added proper error handling for collection not found in V8 2016-09-01 17:42:27 +02:00
Michael Hackstein 092c3ef573 ClusterInfo get collection now throws NOT_FOUND if the collection is not found instead of nullptr. 2016-09-01 14:11:52 +02:00
Michael Hackstein f53a308c4d Improved callbacks in Cluster when creating indexes. It will now only register the callback if the index is actually trying to be created. 2016-09-01 11:39:42 +02:00
Michael Hackstein e444332def Removed all references to _info in TRI_collection_t. This commit does not start. Constructor is broken. 2016-08-29 10:44:31 +02:00
Michael Hackstein 1f3dabc8e1 Merge branch 'engine-vs-velocystream' of github.com:arangodb/arangodb into generic-col-types 2016-08-25 11:08:39 +02:00
Michael Hackstein 2af30f056d Moved index creation to use LogicalCollection instead of TRI_collection_t. Involved changes of the constructor, all can now be created using iid and Slice. Removed specialized functions to create/find indixes in v8-voc index. Also the iteration is modified. This commit compiles but tests will fail. Merge commit. 2016-08-25 09:57:36 +02:00
Jan Christoph Uhde 1febeadfd7 finish ResponseCode enum 2016-08-23 15:46:42 +02:00
Michael Hackstein 635641d4e5 Merge branch 'engine-vs-velocystream' of github.com:arangodb/arangodb into engine-vs-velocystream 2016-08-19 13:15:48 +02:00
jsteemann f6ca78f9e7 removed JsonParser 2016-08-19 12:39:26 +02:00
Michael Hackstein 5f807900d7 Implemented updated of LogicalCollectionInfo. Right now this is only used in Cluster Mode 2016-08-19 11:14:23 +02:00
Michael Hackstein efce89e3f4 Fixed database/collection lookup in cluster. It did not get the correct vocbase when using a Database other than _system 2016-08-18 17:39:25 +02:00
Michael Hackstein bb91925903 Readded temporary logical collections in cluster. Otherwise it is entirely unclear when which collection has to be deleted. 2016-08-18 11:38:16 +02:00
Michael Hackstein 17a6da8afb Removed all references on TRI_vocbase_col_t and replaced them by LogicalCollection class. Not everything is properly moved and implemetned yet. This commit causes crashes. 2016-08-17 11:10:39 +02:00
Michael Hackstein 94ca36fdb2 Removed cluster-wide CollectionInfo and replaced it with a logical collection. The Logical collection shall be always available, in cluster and single server. 2016-08-15 09:08:24 +02:00
jsteemann d92f15aeed entirely removed TRI_document_collection_t 2016-07-29 17:48:51 +02:00
jsteemann 89e0c11b44 refactoring 2016-07-26 16:25:38 +02:00
Kaveh Vahedipour cf685fa444 no more agency locks in cluster info 2016-06-23 12:51:05 +02:00
Kaveh Vahedipour b40e5a3d24 agency test waits exactly for the leader election to have ended 2016-06-23 10:48:26 +02:00
Kaveh Vahedipour 11a36db83c getting rid of locks in cluster comm 2016-06-22 16:42:43 +02:00
Kaveh Vahedipour 34aed57a6d adding IN operator to kv-store 2016-06-22 14:44:43 +02:00
Kaveh Vahedipour a6d5c61029 forward in removing locks in AgencyComm 2016-06-22 13:15:36 +02:00
Max Neunhoeffer 0dc3b7dd45 Small change in getResponsibleServer to silence warnings.
If getResponsibleServer finds an entry _DBServer001 it simply waits
for half a second and checks again in the agency. This is the right
reaction to a planned leader change.
2016-06-21 22:55:46 -07:00
Max Neunhoeffer fef2eb2f45 Take out old dead code. 2016-06-06 14:56:55 +02:00
Max Neunhoeffer a5661b404b Fix error handling. 2016-06-06 13:27:44 +02:00
Max Neunhoeffer fa3fede21f Improve error handling. 2016-06-06 13:27:11 +02:00
Max Neunhoeffer 3dfecf8293 Improve error handling. 2016-06-06 13:26:19 +02:00
Max Neunhoeffer 01557405ce Fix dropIndex. 2016-06-06 13:24:24 +02:00
Max Neunhoeffer 20ef93d76b Cleanup of error handling for asyncRequest and syncRequest.
I have added a thorough description of events to the comments
in ClusterComm.h. This should enable everybody to do proper
error handling when using ClusterComm::asyncRequest and
ClusterComm::syncRequest.
2016-06-04 23:05:48 -06:00
Max Neunhoeffer a2d237f84d Add error handling which was missing in some places. 2016-06-04 18:41:11 -06:00
Max Neunhoeffer 4a4472e31e Repair DBServerAgencySync in background.
Also: Notice role change follower->leader.
2016-05-25 17:27:27 +02:00
Max Neunhoeffer 410f3b3a12 Fix ClusterInfo: increase Current/Version with follower change. 2016-05-19 14:02:59 +02:00
jsteemann 7d9e93e61e removed unused includes of JsonHelper.h 2016-05-13 19:00:23 +02:00
Andreas Streichardt 4d13e8fb1b _listDatabases() => _databases() 2016-05-11 15:30:47 +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
Andreas Streichardt 7f3af843fc Remove currentCollectionsProt 2016-05-09 17:49:18 +02:00
Andreas Streichardt a69e7808c2 Fix unused variables 2016-05-09 16:25: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 3bc89d5f8a Small fix to ClusterInfo::uniqid 2016-05-09 12:32:38 +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 b37d8fff48 Better protection against multi-threading. 2016-05-06 23:06:10 +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 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 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 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
Max Neunhoeffer cae72d0d61 Make _vpack of AgencyCommResult abstract. 2016-05-04 16:49:02 +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 1b0b9ae5df Take out getTargetServerEndpoint.
This used Target/MapIDToEndpoint which is now gone.
2016-05-04 11:10:42 +02:00
Max Neunhoeffer b13b12960b Sort out AgencyReadTransactions and cleanup AgencyWriteTransactions. 2016-05-04 00:08:15 +02:00