Max Neunhoeffer
d72d9a7a2c
Use performRequests for countOnCluster.
2016-06-06 22:40:40 +02:00
Max Neunhoeffer
487787d01a
Polish ClusterMethod w.r.t. error handling together with Hacki.
2016-06-06 10:27:24 +02:00
Max Neunhoeffer
9085caf702
Fix error handling around asyncRequest and performRequests.
2016-06-05 23:52:12 +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
d8573bd009
Revert "Bugfixes in error handling."
...
This reverts commit ab7ab515fb
, which was
nonsensical.
2016-06-03 06:26:03 -06:00
Frank Celler
1e25e5d262
Merge branch 'devel' of https://github.com/arangodb/arangodb into FMH
...
Conflicts:
arangod/Cluster/HeartbeatThread.cpp
arangod/RestServer/RestServerFeature.cpp
2016-06-01 16:25:13 +02:00
Frank Celler
3e61cb433d
WIP
2016-06-01 15:57:28 +02:00
Max Neunhoeffer
ab7ab515fb
Bugfixes in error handling.
2016-05-31 01:15:46 -06:00
Frank Celler
af0b0900af
WIP
2016-05-22 21:08:37 +02:00
jsteemann
0ce8599598
fixes for MSVC
2016-05-10 19:01:21 +02:00
jsteemann
30525fccee
use StaticStrings
2016-05-10 17:01:34 +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
jsteemann
96fceb4411
use std::unordered_maps for headers
2016-05-01 20:52:47 +02:00
jsteemann
352df5f3ea
cleanup
2016-05-01 15:32:33 +02:00
jsteemann
d6833b6862
potentially optimized lookups for _from and _to
2016-04-30 14:21:15 +02:00
jsteemann
3a92773685
use StaticStrings
2016-04-29 15:18:20 +02:00
jsteemann
64ee910e38
move system attributes to the front of objects
2016-04-29 13:13:39 +02:00
jsteemann
b796e4cc7d
use some static strings here and there
2016-04-29 01:37:44 +02:00
Jan Steemann
e3db1236c6
fixed compile warnings
2016-04-22 15:31:47 +02:00
Michael Hackstein
74ce6ccc1a
The ClusterMethods for document interaction (CRUD) now use automatic retries in cluster communication.
2016-04-22 13:23:44 +02:00
Andreas Streichardt
d58e3b5022
Remove useless move
2016-04-21 17:55:21 +02:00
Michael Hackstein
22b6f3f7b0
CPPCheck improvements
2016-04-18 17:36:02 +02:00
Michael Hackstein
930b7216b1
Fixed a bug in ClusterTraverser. Moved a string too early
2016-04-18 09:29:46 +02:00
Michael Hackstein
ca64e727a1
Entirely removed TRI_json_t and Json from ClusterMethods and RestEdgesHandler
2016-04-16 23:23:25 +02:00
Michael Hackstein
afdadcdfe5
Transformed getFilteredDocuments on Coordinator in ClusterMethods to use only VelocyPack
2016-04-16 22:39:52 +02:00
Michael Hackstein
5ba68d76e5
Removed now obsolete function getAllEdgesOnCoordinator in ClusterMethods
2016-04-16 20:16:57 +02:00
Michael Hackstein
be32214554
Removed now obsolete function getAllDocumentsOnCoordinator from CLusterMethods
2016-04-16 20:15:43 +02:00
Michael Hackstein
0a11583560
Removed now obsolete function mergeResponseHeaders in ClusterMethods
2016-04-16 20:13:34 +02:00
Michael Hackstein
cd12a07a4d
Fixed return codes in cluster. They are now forwarded properly from DBServer to Client
2016-04-15 17:58:06 +02:00
Michael Hackstein
3dab8da1aa
Now the cluster method to request documents babies slow case properly sets return code
2016-04-15 15:34:33 +02:00
Michael Hackstein
df97260961
Fixed Error behaviour in baby variant of delete in Cluster
2016-04-15 15:31:47 +02:00
Michael Hackstein
20733a81ae
Improved baby errors in cluster
2016-04-15 14:48:44 +02:00
Michael Hackstein
4dc69a0162
Fixed a bug in Shard distribution for Cluster Coordinator.
2016-04-15 10:32:07 +02:00
Michael Hackstein
eee02b40cb
Use proper URL encoding in Cluster Documents API (single case)
2016-04-14 20:26:11 +02:00
Michael Hackstein
8989c9e31c
Fixed condition checking in SingleDocument Read Cluster case
2016-04-14 20:13:59 +02:00
Michael Hackstein
4411bb390b
REmoved dead code
2016-04-14 17:41:25 +02:00
Michael Hackstein
3434be7b7a
Implemented documents baby variant for cluster and also improved the baby tests. ALl errors will now have exactly one representation for each baby document even if they could be identified earlier.
2016-04-14 17:40:28 +02:00
Michael Hackstein
66aa7aa17a
Fixed a bug in baby-distribution. Merging of results from several shards did not work as expected
2016-04-14 10:52:36 +02:00
Michael Hackstein
4430f22840
Cluster delete now forwards ignoreRevs properly
2016-04-12 13:24:32 +02:00
Michael Hackstein
1311f73775
Further fixes in cluster communication for baby case
2016-04-12 13:04:51 +02:00
Michael Hackstein
b9a209fff2
Now sending non-babies request in modify to non babies endpoint instead of a faked babies object. Result was different.
2016-04-12 10:22:27 +02:00
Michael Hackstein
68951f3a04
Fixed a bug in URL parameters
2016-04-12 09:11:05 +02:00
Michael Hackstein
55ed0f52b0
Potential fix for some modifyDocument operations in cluster
2016-04-12 08:01:17 +02:00
Michael Hackstein
e043fb146b
Fixed false initialisations of std::string. Was created with a nullptr.
2016-04-11 16:44:27 +02:00
Michael Hackstein
7990e05125
Fixed a nullptr initialisation of std::string
2016-04-11 14:21:56 +02:00
Michael Hackstein
83b13bb8b3
Implemented modifyDocument in cluster with babies.
2016-04-11 10:25:03 +02:00
Michael Hackstein
31a77382b1
Added first implementation of slow-path in cluster communication (not all shard-keys are given) Right now used in remove
2016-04-10 14:07:57 +02:00
Michael Hackstein
1075181fcc
Fixed a bug with the wrong body send on delete with babies.
2016-04-08 17:43:30 +02:00
Michael Hackstein
5ba4f5b813
Removed debug output
2016-04-08 17:10:10 +02:00
Michael Hackstein
184e702935
There was another bug in cluster create with babies. This is fixed now. Also started implementing DELETE with babies.
2016-04-08 17:02:01 +02:00
Michael Hackstein
541395a262
Merge branch 'spdvpk' of github.com:arangodb/arangodb into spdvpk
2016-04-08 12:42:59 +02:00
Michael Hackstein
12d973504c
Fixed babies creation in cluster with undefined keys.
2016-04-08 10:53:11 +02:00
Jan Steemann
19ab17ad3b
Merge branch 'spdvpk' of https://github.com/arangodb/arangodb into spdvpk
2016-04-07 16:51:25 +02:00
Jan Steemann
d65662fb62
pacify cppcheck
2016-04-07 16:41:35 +02:00
Michael Hackstein
9b8768ad46
Fixed a bug in createCluster. It crashed in some cases with invalid input.
2016-04-07 15:20:57 +02:00
Michael Hackstein
3a5ec5c25e
Successfully inserted multiple documents via babies on Coordinator
2016-04-07 12:27:40 +02:00
Michael Hackstein
4d14c6de60
Create document babies variant now actually does something for babies. It should send the documents to each shard. However does not work yet.
2016-04-07 11:17:59 +02:00
Michael Hackstein
d8c44e03d2
Fixed a minor problem with Babies API
2016-04-07 11:08:52 +02:00
Michael Hackstein
75e1627a85
Added implementation to rebuild the result in babies case
2016-04-07 11:00:33 +02:00
Michael Hackstein
6847d3f4a7
Preperation to create documents on coordinator with baby awareness.
2016-04-07 10:27:01 +02:00
Jan Steemann
9f8c24b1cd
Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk
2016-04-06 15:43:27 +02:00
Max Neunhoeffer
89303cf549
Fix a comment.
2016-04-05 11:30:02 +02:00
Michael Hackstein
ab46b07f98
Reimplemented Traversal in Cluster case
2016-04-04 12:52:11 +02:00
Michael Hackstein
98ab36fe56
Coordinator now reports UNIQUE_CONSTRAINT_VIOLATED correctly
2016-04-01 16:05:48 +02:00
Frank Celler
068f9defd7
splitted HttpResponse.h
2016-04-01 10:39:38 +02:00
Frank Celler
295c8a3809
MSVC fixes
2016-03-31 14:01:23 +02:00
Frank Celler
486011d399
Merge branch 'devel' of github.com:arangodb/arangodb into spdvpk
2016-03-31 13:41:09 +02:00
Frank Celler
494bdca847
splitted HttpRequest into GeneralRequest/HttpRequest
2016-03-31 11:45:21 +02:00
Michael Hackstein
618c855c85
Cluster Methods now use the OperationOptions of transactions. And now reacts to these options accordingly incl returnNew/returnOld
2016-03-31 10:52:24 +02:00
Michael Hackstein
726e231b8a
Checking for change shard attributes now uses VPackHelper compare instead of equals. Then it is able to compare different number types
2016-03-30 17:32:13 +02:00
Michael Hackstein
92deaf3231
Removed obsolete variable
2016-03-30 16:18:29 +02:00
Michael Hackstein
4bdb090357
Replaced old version of cluster communication using ?rev= with new if-match header
2016-03-30 15:54:07 +02:00
Michael Hackstein
c4562a760c
The cluster internal communication now uses if-match header instead of ?rev= which is not supported any more
2016-03-30 13:38:51 +02:00
jsteemann
171488b6d2
Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk
2016-03-16 23:34:29 +01:00
Andreas Streichardt
614beefc74
Throw Http error 503 when a required backend is unavailable
2016-03-16 18:04:05 +00:00
jsteemann
9cb9dfd8af
Merge branch 'spdvpk' of https://github.com/arangodb/arangodb into spdvpk
2016-03-14 17:54:54 +01:00
jsteemann
358b09260e
fixed prologue marker writing
2016-03-14 17:54:46 +01:00
Max Neunhoeffer
d4fb621d19
Remove old code w.r.t. shardKeysChanged test.
2016-03-14 16:31:37 +01:00
Max Neunhoeffer
d51beb5326
Get rid of update_policy for good.
2016-03-10 00:14:06 +01:00
Jan Steemann
c157363f3c
less dependencies
2016-03-04 17:21:09 +01:00
jsteemann
545b0ed6a2
cleanup
2016-02-27 02:44:51 +01:00
Jan Steemann
242481a501
small code refactoring
2016-02-15 17:02:36 +01:00
Michael Hackstein
b85d5d4a26
Merge branch 'devel' of github.com:arangodb/arangodb into vpack
2016-02-01 09:49:29 +01:00
Michael Hackstein
9ea8e3ea0c
Started to write merge of two slices. This is not yet working for null means delete, works for all other merges.
2016-02-01 09:49:19 +01:00
jsteemann
ae25d2b53b
removed `using namespace std`
2016-01-31 18:22:00 +01:00
Jan Steemann
9046e1831b
clang-format
2016-01-27 13:43:46 +01:00
Michael Hackstein
191c2dc3a9
Merge branch 'devel' of github.com:arangodb/arangodb into vpack
2016-01-21 16:29:38 +01:00
jsteemann
842384016d
namespace cleanup
2016-01-21 00:20:22 +01:00
Michael Hackstein
7f4980e87d
Cluster internal communication now uses more VPack instead of TRI_json_t
2016-01-19 11:33:43 +01:00
Jan Steemann
5daa529404
compaction fix attempt II
2016-01-18 18:24:25 +01:00
jsteemann
431900f17a
changed namespace from triagens to arangodb
2016-01-17 00:44:53 +01:00
Michael Hackstein
341eda3d4f
Removed obsolete function
2016-01-16 15:34:30 +01:00
Michael Hackstein
f3806171f5
Reduced occurences of TRI_json_t in Cluster Code
2016-01-15 15:32:47 +01:00
jsteemann
f66eb007cd
some const unification
2016-01-15 00:03:03 +01:00
jsteemann
9f0576c65f
don't rely so much on namespace std being present
2016-01-08 01:05:06 +01:00
Jan Steemann
3ad20c0cae
auto-generated headers
2016-01-06 18:41:51 +01:00
Jan Steemann
a3b026d9d1
removed useless sections from code, unified include guards
2016-01-06 14:15:22 +01:00
Jan Steemann
f422576ee0
clang-format
2016-01-05 17:43:24 +01:00
jsteemann
a058699312
use std::make_shared
2015-12-18 23:34:18 +01:00
Max Neunhoeffer
0743885dec
Fix handling of VPackOptions in Parser/Builder usage.
...
Also fix TRI_json_t* handling for cluster methods.
2015-12-18 20:42:59 +01:00