1
0
Fork 0
Commit Graph

7128 Commits

Author SHA1 Message Date
Jan Steemann 4cd2621d06 adjusted AQL function return values 2015-12-08 19:45:32 +01:00
Max Neunhoeffer c7adab9088 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-08 18:54:26 +01:00
Max Neunhoeffer 6cedb210df First try to fix deadlock problem. Tests not yet tried. 2015-12-08 18:54:05 +01:00
Jan Steemann 6eb44f229e issue #1598: improved error reporting for dump/restore 2015-12-08 18:11:44 +01:00
Max Neunhoeffer 4e523a19ed Merge branch 'devel' into ClustUp1 2015-12-08 17:02:14 +01:00
Jan Steemann ee6792dd6b fixes for traversal and multi-modify 2015-12-08 14:50:05 +01:00
Michael Hackstein 0a678263fb Fixed a bug when we start at an unknown vertex. THe cluster got into undefined states 2015-12-08 14:45:11 +01:00
Jan Steemann 14a7269278 make parameter explicit 2015-12-08 12:58:51 +01:00
Max Neunhoeffer 257c6c897d Fix bugs and tests. 2015-12-08 12:48:11 +01:00
Jan Steemann a3f42b5072 renamed test method 2015-12-08 11:49:45 +01:00
Jan Steemann 517f20b9a2 flushWait 2015-12-07 18:28:37 +01:00
Jan Steemann dd87d775b5 added comment 2015-12-07 16:26:54 +01:00
Jan Steemann 94c60502a9 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-12-07 16:07:38 +01:00
Jan Steemann f707eddbcc added tests 2015-12-07 16:06:58 +01:00
Max Neunhoeffer 1396015f11 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-07 16:01:57 +01:00
Max Neunhoeffer 637a234660 Change a debug into an error. 2015-12-07 16:01:44 +01:00
Jan Steemann 1daeb7ad28 deadlock tests for drivers 2015-12-07 15:01:35 +01:00
Max Neunhoeffer a674ff9629 Use no pretty printing in agency communication for VelocyPack. 2015-12-07 14:52:53 +01:00
Max Neunhoeffer 6141c61bf4 Merge branch 'devel' into ClustUp1 2015-12-07 13:44:13 +01:00
Max Neunhoeffer c11bdf9319 Two bug fixes. 2015-12-07 13:43:49 +01:00
Jan Steemann 9dd164eadc fix cluster upgrade 2015-12-07 11:57:46 +01:00
Jan Steemann e55199a27c fixed mismatched free/delete 2015-12-07 10:34:14 +01:00
Max Neunhoeffer 23f7d9432c Finish createCollectionCoordinator change, not yet working. 2015-12-04 23:35:30 +01:00
Max Neunhoeffer a8a9f1832b Merge branch 'devel' into ClustUp1 2015-12-04 23:06:11 +01:00
Max Neunhoeffer fad55bda0e Another snapshot. 2015-12-04 23:05:45 +01:00
Jan Steemann 59e07db01a style 2015-12-04 18:04:43 +01:00
Jan Steemann a53da38fcd fixed some cluster queries 2015-12-04 17:07:36 +01:00
Max Neunhoeffer 10ff104236 Another snapshot. 2015-12-04 16:08:02 +01:00
Max Neunhoeffer 60df924ac1 Change data structures for collections in Agency.
Snapshot, compiles, untested, needs new VelocyPack.
2015-12-04 15:08:47 +01:00
Max Neunhoeffer a926c7570a Cleanup ClusterInfo library w.r.t. Current/Collections. 2015-12-04 15:08:47 +01:00
Michael Hackstein c60271d3c8 Fixed early optimizations of Cluster traversal filters, when document does not exist. Now behaves identical to single server and to execution without optimization 2015-12-04 13:30:40 +01:00
Jan Steemann 785beaa625 cppcheck 2015-12-04 12:18:15 +01:00
Michael Hackstein 9a724cd5a6 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-12-04 11:21:28 +01:00
Michael Hackstein 9495117238 Fixed invalid traversal optimization if vertex is not existing but filter would let null pass 2015-12-04 11:21:15 +01:00
Jan Steemann 3b1df26a79 added AQL function `IS_DATESTRING` 2015-12-04 10:53:01 +01:00
jsteemann f3e35b6497 updated grammar file 2015-12-03 23:26:28 +01:00
Michael Hackstein bf83a0e6a2 Potential fix for memleak 2015-12-03 16:08:33 +01:00
Michael Hackstein 11640a15ad Fixed a comment 2015-12-03 16:05:06 +01:00
Jan Steemann d8bf728fd3 added TRAVERSAL nodes for optimization checks 2015-12-03 15:25:16 +01:00
Jan Steemann 75a888d9ac Windows fixes 2015-12-03 15:06:20 +01:00
Jan Steemann b8cd633276 Windows fixes 2015-12-03 15:00:19 +01:00
Wilfried Goesgens c9e6e066fb one more missing file. 2015-12-03 14:16:59 +01:00
Wilfried Goesgens 650a7c6d7c Add missing file to the cmake build 2015-12-03 14:04:22 +01:00
Jan Steemann 46f1e4624d Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-12-03 13:46:23 +01:00
Jan Steemann ec3ab298e1 added test for traversal after data modification 2015-12-03 13:46:11 +01:00
Wilfried Goesgens 2377c4d628 Add new files to cmake. 2015-12-03 13:45:36 +01:00
Jan Steemann fdcc7adf03 fixed memleak for cluster databases 2015-12-03 12:18:13 +01:00
Jan Steemann 6c1717ec90 updated keywords list 2015-12-03 12:11:52 +01:00
Jan Steemann d572f3ed03 Merge branch 'aql-multi-modify' of https://github.com/arangodb/arangodb into devel 2015-12-03 11:38:30 +01:00
Michael Hackstein 86b4a7137d Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-12-03 11:35:33 +01:00
Michael Hackstein 605e1bce55 Style fixes 2015-12-03 11:35:18 +01:00
Michael Hackstein 04f65ff8c1 Fixed a memleak in ClusterTraverser 2015-12-03 11:35:08 +01:00
jsteemann 9caaff18fb fixed leaks 2015-12-03 11:25:05 +01:00
jsteemann eb5b68089e even more unconstification 2015-12-03 11:11:10 +01:00
jsteemann 135d434a7f more unconstification 2015-12-03 11:09:35 +01:00
jsteemann 7892c98996 unconstify return types 2015-12-03 11:06:25 +01:00
Michael Hackstein e6fffda489 Merge branch 'JHMH' of github.com:arangodb/arangodb into devel 2015-12-03 10:26:56 +01:00
Michael Hackstein 8919a068ba Adapted to new API of cluster async request 2015-12-03 10:24:01 +01:00
Michael Hackstein 3ea14e66a3 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-03 10:19:17 +01:00
jsteemann 840df0bf09 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify 2015-12-03 10:16:59 +01:00
Max Neunhoeffer 16e181fe05 Adjust comments to reality for asyncRequest. 2015-12-03 09:23:15 +01:00
Jan Steemann c0729fbc6b allow calling AQL functions that require collection name arguments with string values 2015-12-02 18:20:21 +01:00
Michael Hackstein b2e4673c65 Added a test for early filtering of < <= => > in Traversal 2015-12-02 17:52:01 +01:00
Michael Hackstein 23e2ac5da7 Fixed status reporting for Cluster and Single Server Case for the AQL Traverser Node. 2015-12-02 17:20:09 +01:00
jsteemann 9fa0f6d3a7 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify 2015-12-02 16:38:50 +01:00
Jan Steemann 3a7eca45b8 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-12-02 15:41:51 +01:00
Jan Steemann df946dd3c4 use emplace() 2015-12-02 15:41:41 +01:00
Jan Steemann 61a8e4c686 issue #1593: add POW() AQL function 2015-12-02 15:41:30 +01:00
Jan Steemann 460b51734e fixed disappearing of documents for collections transferred via `sync` if the collection was dropped right before synchronization and drop and (re-)create collection markers were located in the same WAL file 2015-12-02 14:48:08 +01:00
Max Neunhoeffer 3821a775a3 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-02 14:48:04 +01:00
Max Neunhoeffer 3556f76469 Fix ClusterComm::asyncRequest w.r.t. body shared_ptr. 2015-12-02 14:15:18 +01:00
Michael Hackstein e47ebdd48d Fixed statistics reporting for AQL traversal in Cluster. The tests are green in cluster mode now. 2015-12-02 13:41:24 +01:00
Michael Hackstein 10a898c791 UTF-8 circus 2015-12-02 13:37:49 +01:00
Michael Hackstein 18db3bf681 The edges api now returns a stats property encapsulating how many items where scanned and how many where filtered 2015-12-02 11:38:51 +01:00
Michael Hackstein 043de86039 Fixed compareTo value send accross the cluster. Was deleted after first use but was sent multiple times 2015-12-02 11:37:23 +01:00
Michael Hackstein 3891d0a268 Fixed illegal no results optimization in traversal nodes. Also changed internal format for the reported graph 2015-12-02 11:36:44 +01:00
Michael Hackstein c109c86b06 Indention fix 2015-12-02 11:35:12 +01:00
Michael Hackstein 1a13af6f36 Merged remote changes with local stash 2015-12-02 11:34:58 +01:00
Jan Steemann eb8899d9ae applied changes suggested by cppcheck 2015-12-02 10:17:14 +01:00
Jan Steemann 6ce29823a8 fixed more memleaks 2015-12-01 17:22:14 +01:00
Jan Steemann 9497ca9c7c fixed memleaks 2015-12-01 17:07:32 +01:00
Jan Steemann e05cd2df37 Merge branch 'JHMH' of https://github.com/arangodb/arangodb into JHMH 2015-12-01 16:49:08 +01:00
Jan Steemann 2bbcaa868f fixed invalid memory usages 2015-12-01 16:48:55 +01:00
Wilfried Goesgens 4b861dd44a Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-12-01 16:37:06 +01:00
Jan Steemann 9c0d7420f4 removed unused struct attribute 2015-12-01 12:56:41 +01:00
hkernbach 6d25ac57e9 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-01 11:25:58 +01:00
jsteemann 49af794f5d Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify 2015-12-01 01:56:46 +01:00
jsteemann e7e00e95c1 some cleanup 2015-12-01 01:26:27 +01:00
jsteemann 3a73ec1a52 optionally trigger auto-resync in case of "no start tick" issue 2015-12-01 01:22:19 +01:00
jsteemann 04e81ea851 more replication 2015-11-30 23:33:59 +01:00
jsteemann 37f72fa721 micro optimizations 2015-11-30 19:37:58 +01:00
Jan Steemann f013c809ea replication improvements 2015-11-30 18:27:31 +01:00
Michael Hackstein 0fa55cff05 Fixed a bug in TraverserExpression deserialisation 2015-11-30 16:29:16 +01:00
Michael Hackstein 2c61930752 Enabled the CXX RestEdges Handler in coordinator case as well 2015-11-30 15:10:13 +01:00
Max Neunhoeffer f7e0b53fff Fix AQL query shutdown in cluster. 2015-11-30 14:24:31 +01:00
Michael Hackstein e9a36a3fbf Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-30 14:17:44 +01:00
Michael Hackstein 43ac825241 The CXX Edges handler now first checks if the collection is an edge collection 2015-11-30 14:17:13 +01:00
Michael Hackstein 0ab087c764 Added an internal filter option for lookup-by-keys. It is used by AQL traversel to move vertex filtering to the server 2015-11-30 13:29:31 +01:00
Michael Hackstein 73669ae774 Implemented a short-cut to query a list of documents by _id in the cluster. It's baby-aware 2015-11-30 13:27:22 +01:00
Michael Hackstein ceddc4d7f4 Added a convenience check to evaluate if a collection uses default shardKeys 2015-11-30 13:26:42 +01:00
Jan Steemann 593b5dc8df fixed non-deterministic query results in some cluster queries 2015-11-30 13:01:57 +01:00
Jan Steemann 5acd13e8e9 fixed assertion failure in some cluster queries 2015-11-30 12:48:26 +01:00
Jan Steemann 4e33bda538 fixes for new replication features 2015-11-30 12:46:26 +01:00
Jan Steemann e3c7760262 indentation 2015-11-30 12:46:01 +01:00
Michael Hackstein d79c2f9048 Added a test if the traverser prunes early 2015-11-27 17:03:24 +01:00
Michael Hackstein a7b7d1ec18 Adapted traverser implementations to new Path Enumerator for improved pruning 2015-11-27 16:25:02 +01:00
Michael Hackstein d0021131b5 Document accessor now works on TRI_json_t as well 2015-11-27 16:24:29 +01:00
Michael Hackstein 5a8b6ad721 Fixed out of scope when requesting edges in cluster 2015-11-27 16:24:08 +01:00
Jan Steemann b13284a0c3 replication improvements 2015-11-27 16:16:31 +01:00
Jan Steemann bd8b70455a replication improvements 2015-11-27 16:16:15 +01:00
Wilfried Goesgens 55b8fb0c6f Fix links not to point to .html - .md is right, else the non-html generators won't work properly. 2015-11-27 11:51:29 +01:00
Michael Hackstein 07f772c758 Fixed potential memleaks and bad access in edges api 2015-11-27 11:20:54 +01:00
Michael Hackstein bba4fe6089 Added a basic implementation to receive filtered documents in the cluster. Right now it does not yet filter and is inefficent but serves the API 2015-11-27 11:20:12 +01:00
Michael Hackstein 7c4e59bf22 Revert "removed unused method" it is actually used in the new Graph
Traverser

This reverts commit 5d2951a15b.
2015-11-26 16:38:44 +01:00
Michael Hackstein 7bf37620bb Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-26 16:32:26 +01:00
Jan Steemann 389c3e0cf0 small optimizations 2015-11-26 16:31:25 +01:00
Michael Hackstein cda189d5ca Unvirtualized toJson of Traversal Node. Base Class toJson is required in Cluster. Explainer requires specific toJson 2015-11-26 16:02:38 +01:00
Michael Hackstein 7290507c25 Removed debug output 2015-11-26 16:01:26 +01:00
Michael Hackstein 14f68cc648 Adopted implementation of filteredEdges in cluster 2015-11-26 16:01:10 +01:00
Jan Steemann 15368d12ba added a C++ implementation for AQL function `FULLTEXT` 2015-11-26 14:12:43 +01:00
Richard Parker bad2ed09e7 Cursor functionality written, compiles but totally untested. 2015-11-26 13:03:46 +00:00
Michael Hackstein d109a4e2aa Filtered edges are now able to react to a list of expressions instead of only one expression. The list symbolises an AND 2015-11-26 11:38:09 +01:00
Michael Hackstein 5fb76d7481 Merge branch 'JHMH' of github.com:arangodb/arangodb into JHMH 2015-11-26 09:32:15 +01:00
Michael Hackstein e9a7c6fa85 Adoption of Traversal and AstNode to newest changes in TraversalExpression 2015-11-26 09:31:54 +01:00
Michael Hackstein 38cf7dc8ed First implementation of a filtered edges API. This is for cluster internal use only. 2015-11-26 09:26:46 +01:00
Michael Hackstein a12f390e77 Added a Json constructor for Traverser Expression. Required in the cluster 2015-11-26 09:20:58 +01:00
Jan Steemann 9b23953a07 add primary index lock 2015-11-25 17:40:21 +01:00
Wilfried Goesgens f49ae38f25 make toJson() virtual so derived ones can overload it. 2015-11-25 16:49:38 +01:00
Wilfried Goesgens 42081165e0 Don't copy while iterating, use const references. 2015-11-25 16:49:01 +01:00
Wilfried Goesgens 8f04b616b5 fix typo 2015-11-25 16:48:35 +01:00
Wilfried Goesgens 513404e9e8 Split searching for conditions and extracting them for analysis, so we can run the optimizer inbetween. 2015-11-25 15:22:45 +01:00
Wilfried Goesgens a0f9524df8 Add routine to normalize conditions without re-running the optimizer. 2015-11-25 15:22:11 +01:00
Wilfried Goesgens c061a3309a - implement new function that scans for nodes of a spcific types
- fix scanning for variable references with n-nary ors / ands
2015-11-25 15:21:11 +01:00
Jan Steemann 5d2951a15b removed unused method 2015-11-25 14:59:43 +01:00
Jan Steemann 9d217b92ce improved DocumentAccessor 2015-11-25 11:43:01 +01:00
Jan Steemann a7c8a37938 use range-based for loop 2015-11-25 11:05:31 +01:00
Jan Steemann 9b1ef915eb issue #1589 2015-11-25 10:49:31 +01:00
Alan Plum 7538d71333 URL parameter -> {query,path} parameter 2015-11-24 18:09:43 +01:00
Michael Hackstein bcd5813bb1 CXX RestEdgesHandler now actually returns a result. All tests are green now 2015-11-24 10:47:07 +01:00
Michael Hackstein 4c8c98524e Fixed errorNum whenever the vertex-handle is incorrect 2015-11-24 10:30:16 +01:00
Michael Hackstein aa8e1daaf7 Moved String->VertexId conversion into the general traverser. It is required outside of V8Server 2015-11-24 10:24:19 +01:00
Michael Hackstein 430eb2fd07 First version of CXX RestEdgesHandler. Required for early filtering in Cluster Traversals 2015-11-24 10:23:35 +01:00
Michael Hackstein 561ef30ac1 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-24 08:59:01 +01:00
Wilfried Goesgens e34f3824a5 Add link to the reference 2015-11-23 14:01:42 +01:00
Jan Steemann 1bf5abaf14 changed HTTP return code for canceled operations from 408 to 410 2015-11-23 10:25:05 +01:00
Michael Hackstein b18ce56a68 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-20 10:49:00 +01:00
Wilfried Goesgens a5c50ad8e9 we have to flush the work vectors before we invoke findVariableAccess() 2015-11-19 17:21:33 +01:00
Wilfried Goesgens 16eee4793d Improve error reporting if selecting a graph description fails 2015-11-19 16:27:36 +01:00
Jan Steemann bc3bbc46b5 fixed Visual Studio warnings 2015-11-19 14:29:49 +01:00
jsteemann 19373f80fa removed dependency on vector.h 2015-11-19 01:41:42 +01:00