1
0
Fork 0
Commit Graph

3901 Commits

Author SHA1 Message Date
jsteemann e1bac93150 fix logic error in max results handling 2018-09-22 14:12:40 +02:00
Jan 02a08dfe56
fix undefined behavior/race in query cache result moving (#6538) 2018-09-19 17:41:34 +02:00
Jan f549dbe8cd
add ability to 3.3 to read compressed AqlItemBlocks (#6517)
but not the ability to produce them. This way we can support
running 3.3 as part of a mixed 3.3/3.4 cluster, and do not
break any clusters that run mixed versions of 3.3 current and
either 3.2 or 3.3 older versions
2018-09-17 13:46:17 +02:00
Jan 66ca6885e1
do not use a Builder object in every Aggregator (#6511)
Builder objects are only needed in few of them
  This saves allocates for the "hash" COLLECT variant when
  there are many distinct groups
2018-09-17 13:43:42 +02:00
Simon 781af3886c Fix deduplication in IndexBlock (#6510) 2018-09-17 12:52:49 +02:00
Jan d991ba903d
fix two issues with sorted COLLECT (#6431) 2018-09-10 16:21:15 +02:00
Dan Larkin-York 2bd9887407 [3.3] Fix condition finders moving filters past modifications into index nodes (#6328) 2018-09-04 17:05:53 +02:00
Jan 3795f8c773
speed up AQL query plan generation (#6243)
- add startup option `--query.optimizer-max-plans value`
- honor "maxNumberOfPlans" in all cases
- lower default value for "maxNumberOfPlans" from 192 to 128
2018-08-24 13:11:06 +02:00
jsteemann 328a80692b add exception in case graph cannot be found 2018-08-14 14:06:07 +02:00
Simon 8597708b3b Fix intermediate commits (#6039) 2018-08-06 17:15:02 +02:00
Jan Christoph Uhde 1ffcfd63ba fix timeout issue next try: no subquery nodes on dbservers (#6036) 2018-08-03 09:43:35 +02:00
Jan 0660044448
fixed issue #6031: Broken LIMIT in nested list iterations (#6032) 2018-08-01 08:29:57 +02:00
Jan Christoph Uhde 7c63c0e2fc bug-fix-3.3/double-modification-bug (#5981) 2018-07-25 18:26:02 +02:00
Jan e266efdf96
fixed issue #5977: Unexpected execution plan when subquery contains COLLECT (#5983) 2018-07-25 17:33:45 +02:00
Tobias Gödderz b91d22d97d [3.3] Bugfix: Fix `_rev` handling in `UPDATE`/`REPLACE` `WITH` clauses (#5967) 2018-07-25 12:28:16 +02:00
Jan 761621ec56
make AQL in 3.3 somewhat forward-compatible with 3.4 (#5907) 2018-07-25 09:13:52 +02:00
Jan 5c20d44edf
fix issue #5727: Edge document with user provided key is inserted as many times as the number of shards, violating the primary index (#5821) 2018-07-10 16:08:28 +02:00
Jan c21d2d46cd
Bug fix 3.3/fix hangs (#5805) 2018-07-10 13:52:58 +02:00
Michael Hackstein 131114292b Bug fix/internal issue 2658 (#5760) 2018-07-04 21:51:24 +02:00
Tobias Gödderz 18f939ebcf [3.3] Bugfix: Distinct collect block could create an empty result block (#5709) 2018-06-28 13:26:59 +02:00
Frank Celler cb0aaa435f backport Scheduler from devel (#5533) 2018-06-28 13:26:04 +02:00
Jan 32725ad0c4
prevent an optimization from destroying variables (#5586) 2018-06-18 11:58:31 +02:00
Jan cd93485275
more eager "remove-filter-covered-by-index" rule (#5495)
make optimizer rule "remove-filter-covered-by-index" not stop after removing
a sub-condition from a FILTER statement, but pass the optimized FILTER
statement again into the optimizer rule for further optimizations.
This allows optimizing away some more FILTER conditions than before.
2018-06-01 14:41:52 +02:00
Jan f07045bce6 fix cluster COLLECT optimization (#5504) 2018-06-01 10:41:39 +02:00
Jan 71a17e162c
potential fix for https://stackoverflow.com/questions/50496274/two-fu… (#5445) 2018-05-28 13:55:35 +02:00
Wilfried Goesgens 3614e9ae4e Bug fix 3.3/graph direction wrong to throw (#5384) 2018-05-25 19:25:06 +02:00
Jan 731925080d
Feature 3.3/aql optimizations (#5140) 2018-05-15 14:41:07 +02:00
Jan 2975715edf
fix AQL ZIP function with duplicate attribute names (#5335) 2018-05-14 11:12:26 +02:00
Jan 790fa27a67
fix valgrind issues (#5284) 2018-05-07 22:39:59 +02:00
Jan Christoph Uhde f37f783a3a Fix LIKE pattern creation (#5240) 2018-05-03 13:15:56 +02:00
Simon a2ecd83859 adding ttl option for the query registry (#5096) 2018-04-11 15:50:12 +02:00
Jan d500a503b1
simplification of fullcount code (#5074) 2018-04-10 17:25:08 +02:00
Michael Hackstein 5decb66d01
fix dump&restore of smart graphs (#5065)
* Added tests for dump-restore of SmartGraphs

* Arangosh will now expose isSmart and the smartGraphAttribute on properties

* RestReplicationHandler will now ignore smart-graph collections unless you execute it with force

* Added changelog

* Reactivated original mmfiles dump/restore test

* Skip hidden smart graph collections in arangodump

* Do not dump shadowCollections metadata of smart edge collections

* Cluster optimizer rules for soerted gather nodes now handle virtual edge collections correctly

* Added a dump/restore tests for smartgraphs in rocksdb as well

* Deactivated checks for writesExecuted statistics in dump/restore tests for smartgraphs mmfiles

* Really exclude shadowCollections

* Reduced loglevel

* Added tests

* Don't change single-server behaviour

* Fix tests for omitted shadowCollections and hidden collections

* Activated statistics in MMFIles dump test again and included isEnterprise in rocksdb dump test

* A modification node can now disableStatistics, which means it does not contribute to query->extras() this is only relevant in SmartGraph case so far.

* Added a test to dump&restore satellite collections

* Bugfix: restore satellite collections properly

* Added regression test for internal issue #2237

* Fix bug #2237

* Updated CHANGELOG

* Copied dump/restore tests to rockdsb

* Removed enterprise test

* Added inline comment for smart-edge collections in optimizer rules

* Removed duplicate CHANGELOG entry

* Simplified removal of shadowCollections
2018-04-10 17:21:03 +02:00
Jan 2a97de317e
fix restrict-to-single-shard rule (#5050)
* fix restrict-to-single-shard rule

* added tests for specific cases
2018-04-06 14:30:08 +02:00
Jan c6eef6da7e
fixed issue #4934: Wrong used GeoIndex depending on FILTER order (#4947) 2018-03-26 09:43:31 +02:00
jsteemann fc95df2479 move projection optimizer rule to end of the optimization pipeline, because it otherwise may prevent further optimizations 2018-03-24 20:54:32 +01:00
Jan 50fef0f430
multiple cluster-related AQL optimizations (#4928)
* multiple cluster-related AQL optimizations

* do not apply single-shard optimization if _includedShards is already set from the outside

* implement changes requested by @mchacki
2018-03-23 14:52:58 +01:00
Jan 5e795da259
Feature 3.3/optimize cluster collect (#4895) 2018-03-22 18:36:15 +01:00
Jan 784c2ec085
fixed issue #4900 (#4918) 2018-03-22 18:27:31 +01:00
Jan 58294a2c66
fixed issue #4843: Query-Result has more Docs than the Collection itself (#4854) 2018-03-15 10:52:50 +01:00
Jan 021794e4d2
fixed issue #4827: COLLECT on edge _to field doesn't group distinct values as expected (#4829) 2018-03-13 14:26:26 +01:00
Jan fa83a932ee
fix `fullCount` value in some cases in cluster mode (#4722) 2018-03-01 18:33:18 +01:00
Jan 8c1eccff33 fixed issue #4651 (#4660) 2018-03-01 16:44:05 +01:00
Simon 1d57a46168 Refactor Authentication Layer (3.3) (#4588)
* added tests for revokeCollection and revokeDatabase

* optimized user permission test

* ui selection bugfix

* fixed ldap ui login

* login view

* Authentication refactoring

* localstorage fallback if user config is not available

* Fixing permission resolution test

* Adding missing import

* local storage queries now supported

* disabled collection task check for ldap

* added internal ldapEnabled function and ldap config to the ui

* more db creation tests

* removed console logs

* render fix

* Various authentication related fixes

* exec ldap test also for cluster

* Adding support to refresh user rights from external auth sources

* ldap test howto comment

* Handling roles more correctly

* jwt

* login view

* First part of rework of LDAP documentation.

* test roles in a ldap environment

* Changing role handling

* Finish revision of the LDAP chapter in the manual.

* Fixing user header

* Fixing some slight issues with LDAP users and roles

* Removing unused code

* Removing unused code

* added ldap test

* fixing a bug in restuserhandler

* more ldap tests

* ldap tests

* ldap tests

* optimized ldap testing, added cluster support, fixed some auth tests

* ldap cleanup test

* ldap tests

* auth tests

* ldap test

* Changing permission defaults

* revert change

* updated user helper test

* rm of try catch block connection

* Removing FeatureCacheFeature

* Changed permission resolution according to discussion

* updated the docs to clarify the permission resolution and the intricacies of LDAP users

* Fixing wrong permissions check in handling of PUT in ResUserHandler

* Using revision ID when replacing users

* Adding basic replace test

* tests

* Fixing some outstanding issues

* Fixing test setup, optimizing some stuff

* Fixing permission resolution rules, testsuite setup, etc

* Fix deadlock

* Adding error message for keyspace, slightly changing test setup

* Removing remaining mentions of FeatureCacheFeature

* Fix jslint

* Fixing some failed tests

* Fixing cluster authentication issue, red tests

* Fixing ldap testsuite, adding trace logging

* Fixint ldap tesuite setup and LDAP recognition

* Fixing an assert

* Cleanup, adding changelog entry

* fix typo

* Fixing dump_authentication test

* improvements found during code review

* oops

* updated CHANGELOG

* Fixing broken handling, disallowing adding of local users when disabled

* added tests for ldap search mode

* Fixing testInvalidGrants

(cherry picked from commit bc7ea2aaa29a9ed0974898f487e8a318f24912f1)

* Removing undefined auth level externally

(cherry picked from commit 70859f43ae6fd694fdbf70f669fbfdafc58e7913)

* Fixing previous commit

(cherry picked from commit 2fbcffd2ed657862ef9fb5e6d45201a6ec8ada69)

* more use of sessionstorage

* intentionally removed `after` methods from tests

because they are executed before the tests start
no cleanup is performed right now after the authentication tests
however, a cleanup is done at start of every test

* ldap tests all modes

* fix LDAP test invocation

* Added roles transformation to ldap test suite

* Fix compilation of community version.

* Imrpved the ldap testsuites by unifying their options

* fix permission problems for system collections

* Improved LDAP configuration documentation.

* Grunt.

* fixed some ro/rw display issues

* fixed some ro/rw display issues part 2

* grunt build

* bump version number

* Fixed typos in LDAP manual
2018-02-28 13:24:18 +01:00
Jan f74822483c
fix issue #4677 (#4678) 2018-02-27 11:29:15 +01:00
Simon e96e899fd3 Active Failover for Foxx Services (3.3) (#4593) 2018-02-15 09:36:25 +01:00
Jan e51f814587
fix internal issue #1848 (#4522)
AQL optimizer was trying to resolve attribute accesses
to attributes of constant object values at query compile time, but only did so far
the very first attribute in each object

this fixes https://stackoverflow.com/questions/48648737/beginner-bug-in-for-loops-from-objects
2018-02-08 09:34:24 +01:00
Jan f31734a198
fixed issue #4185: On execution of FULLTEXT search / AQL query db is … (#4239) 2018-01-15 22:46:14 +01:00
Jan f482b7aed4
Feature 3.3/small optimizations for query registry (#4259) 2018-01-15 22:44:17 +01:00
Jan 7b370dbf23
fix memory hunger of cache (#4269) 2018-01-12 12:15:19 +01:00