1
0
Fork 0
Commit Graph

437 Commits

Author SHA1 Message Date
Michael Hackstein bc752a28c7 Cherry picked bug-fix for GharialAPI to return name in LIST (#10545) 2019-11-26 15:36:57 +01:00
Heiko a7b64bd815 Bug fix 3.5/fix internal issue 4451 (#10538)
* Fix dump_authentication suite

* Fix typos

* user the correct attribute name

* properly reload user permissions after _users collection restore

* fixed foxx restore test

* changelog

* changed the order of index creation during restore for _users collection
2019-11-26 14:54:36 +01:00
Jan 76f84f2c6c Allow the optimizer to use indexes (#10543)
* Allow the optimizer to use indexes

when a collection attribute is compared to anexpansion followed by an attribute name, e.g. `doc.value IN something[*].name`.

* Update CHANGELOG
2019-11-26 14:54:28 +01:00
Jan 01507206e0 add tests for inventory (#10464) (#10495) 2019-11-21 13:58:15 +01:00
Jan ef9ea2c21d fixed issue #10440: Incorrect sorting with sort criteria partially covered by index (#10443)
* fixed issue #10440: Incorrect sorting with sort criteria partially covered by index

* Update CHANGELOG
2019-11-20 13:42:27 +01:00
Andrey Abramov 8741d338d0 allow in-place analyzer creation via link definition (#10466) (#10481)
* allow in-place analyzer creation via link definition (#10466)

* allow in-place analyzer creation via link definition

* add special handling for _analyzers collection

* modify initial syncer

* address review commments

* fix accidentally broken test

* address compilation errors
2019-11-19 21:49:28 +01:00
Jan e7db6d3097 don't return any in-progress indexes (#10431)
* don't return any in-progress indexes

* fix handling of in-progress indexes

* add test

* address review comment
2019-11-14 12:09:41 +01:00
KVS85 84e3dc03db Fix dump tests 2019-11-13 12:34:21 +01:00
Jan Christoph Uhde 413a81fba9 DEVSUP-492 (#10379) (#10402) 2019-11-12 22:30:58 +03:00
Andrey Abramov 3a0ed2f8b9 Bug fix 3.5/internal issue #651 (#10388)
* extract recursive part of IResearchLinkMeta

* avoid saving analyzer definition during link meta initialization

* add tests to check cluster deadlock

* cleanup

* code cleanup

* add moar tests

* mooooaaar checks

* make jslint happy

* backport fix for cluster startup from 3.5.2 branch

* backport changes from 3.5.2

* fix tests

* fix tests

* moar fixes

* refactor analyzer definitions tracking

* add some tests

* extend dump tests

* add tests for replication

* fix tests

* more fixes

* address jslint errors

* address review comments

* address test failures

* reflect changes in changelog
2019-11-12 18:26:09 +03:00
Jan 152bc7c556 better killability of cluster AQL queries (#10360) 2019-11-06 15:33:44 +03:00
Andrey Abramov f4e6538edd Bug fix/internal issue #647 (#10292) (#10334)
* Bug fix/internal issue #647 (#10292)

* extend replication tests

* ensure proper replication order

* fix tests

* address review comments

* address test failures

* extend dump tests

* fix analyzers tests

* more fixes

* extend tests

* enhance tests

* adjust tests

* use enum instead of flags (part 1)

* cleanup

* use enum instead of flags (part 2)

* get rid of flags for views

* get rid of flags for collections

* completely get rid of collection flags

* fix replication test

* refactor index flags

* fix tests and move AnalyzerPool out of class scope

* fix tests

* adjust log levels

* add tests

* remove debug logging

* remove noexcept from `equalAanalyzer`

* extend cluster tests

* fix cluster tests

* add tests for views and smart graphs

* address jslint errors

# Conflicts:
#	arangod/Cluster/ClusterMethods.cpp
#	arangod/Cluster/v8-cluster.cpp
#	arangod/IResearch/IResearchAnalyzerFeature.cpp
#	arangod/IResearch/IResearchAnalyzerFeature.h
#	arangod/IResearch/IResearchLinkMeta.cpp
#	arangod/RestHandler/RestAnalyzerHandler.cpp
#	arangod/StorageEngine/PhysicalCollection.cpp
#	arangod/VocBase/Methods/Indexes.cpp
#	tests/IResearch/IResearchAnalyzerFeature-test.cpp
#	tests/IResearch/IResearchFeature-test.cpp
#	tests/IResearch/IResearchLinkHelper-test.cpp
#	tests/IResearch/IResearchLinkMeta-test.cpp
#	tests/IResearch/IResearchQueryOptimization-test.cpp
#	tests/IResearch/IResearchViewDBServer-test.cpp
#	tests/IResearch/IResearchViewSort-test.cpp
#	tests/V8Server/v8-analyzers-test.cpp
#	tests/VocBase/LogicalDataSource-test.cpp

* Update CHANGELOG

* Update CHANGELOG
2019-10-30 17:01:18 +03:00
Jan 4290f381af fixed issue #10270 (#10272) 2019-10-21 16:06:03 +03:00
Tobias Gödderz ad6fc92655 [3.5] Fix constrained sort in the cluster (#10098)
* Backport of #10047

* Backport of #10057
2019-10-16 19:33:33 +03:00
Wilfried Goesgens 810f34e120 Feature 3.5/convert gharial test to arangoclient (#10259)
* use the default arangosh client connection instead of the simple http client to test the gharial API

* refrain using globals, as sugested by @goedderz

* add method to check whether there already is a reply present

* fix result handling, return errors & set results

* the mock also needs to implement the 'isEmpty' function

* Update arangod/RestHandler/RestGraphHandler.cpp

Co-Authored-By: Michael Hackstein <michael@arangodb.com>

* Update arangod/RestHandler/RestGraphHandler.cpp

Co-Authored-By: Michael Hackstein <michael@arangodb.com>

* Update lib/Rest/VstResponse.h

Co-Authored-By: Michael Hackstein <michael@arangodb.com>

* Update lib/Rest/HttpResponse.h

Co-Authored-By: Michael Hackstein <michael@arangodb.com>

* changelog

* backport: fix variable name

* adjust test to corrected API

* make it private

* fix indention

* Update CHANGELOG
2019-10-16 16:42:55 +03:00
Jan 7fd3b3c390 disallow subqueries in AQL traversal PRUNE conditions (#10231)
* disallow subqueries in AQL traversal PRUNE conditions

* added derived file
2019-10-16 16:36:33 +03:00
Tobias Gödderz 4c6ab4d502 [3.5] Fix AQL skip in cluster sometimes causing documents to be forgotten (#10199)
* Bugfix for recurring Jenkins error in api-simple-modify-example-cluster-spec.rb (#10190)

DependencyProxy::skipSome did not work correctly with multiple
dependencies if atMost was reached, returning DONE early.

* Updated CHANGELOG

* Deleted CHANGELOG entry

* Added regression test for #10190

* Added missing include
2019-10-11 17:35:05 +03:00
Iurii Popov a316a2f61f Bug fix 3.5/issue #10090 (#10174)
* Fixed repeatable seek to the same document

* Fix. Multiple conjuncts in conjunction.

* Added CHANGELOG for the issue #10090.

* A new line in CHANGELOG.

* Add tests
2019-10-09 17:13:51 +03:00
Jan bf187f4b50 Bug fix 3.5/issue 10193 (#10194)
* fixed issue #10193: Arangoexport does not handle line feeds when exporting as csvi

* escape \r too
2019-10-09 16:01:51 +03:00
Jan 68ff8d4366 fixed issue #10158 (#10163)
* fixed issue #10158

* Update arangod/Aql/TraversalExecutor.cpp
2019-10-09 12:22:23 +03:00
Jan f3fcba2cc5 Bug fix 3.5/fix parsing unterminated strings (#10156)
* fix parsing of unterminated string literals

* added generated file

* added CHANGELOG entry

* Update CHANGELOG
2019-10-03 16:05:33 +03:00
Jan 455cccefbb Bug fix 3.5/honor sharding restrictions (#10140)
* honor sharding restrictions also when creating a graph with existing
collections

* add test

* additional validation for startup parameters

* fixed logIDs
2019-10-02 18:42:53 +03:00
Jan 7e524f9af9 honor restrictions when creating graphs (#10136) 2019-10-01 23:55:58 +03:00
Jan 13dae8cace Feature 3.5/sharding config (#10111)
* added options

`--cluster.max-number-of-shards`
`--cluster.default-replication-factor`
`--cluster.min-replication-factor`
`--cluster.max-replication-factor`

* fix creating satellite collections

* added CHANGELOG entry and tests

* guard against invalid replicationFactor changes when changing properties

* fix validation

* remove stray print

* Update arangod/Cluster/ClusterFeature.h

Co-Authored-By: Michael Hackstein <michael@arangodb.com>
2019-10-01 16:43:57 +03:00
Jan 451bd6e85d Bug fix 3.5/issue 10078 (#10082)
* fixed issue #10078: FULLTEXT with sort on same field not working

* added test

* simplify the implementation
2019-09-27 15:18:57 +03:00
Jan 7b427a549d fixed issue #10062: AQL: Could not extract custom attribute (#10067) 2019-09-27 15:15:39 +03:00
Tobias Gödderz 0b1d5be33e Backported #9881 (#10019) 2019-09-16 17:35:42 +03:00
Tobias Gödderz 83f0d800f1 [3.5] Bug fix/sort limit rule too lax (#10018)
* Added regression test for consecutive constrained sorts

* Bugfix: sort-limit rule skipped too many node types

* Added CHANGELOG entry

* Apply sort-limit rule before single document operations
2019-09-16 13:57:23 +03:00
Jan 351ca41553 validate collection when leasing an existing transaction (#9990)
* validate collection when leasing an existing transaction

* use WITH statement

* allow implicit read collections again

* simplify collection name validation

* re-implement it

* remove dead code

* remove unused method

* apply review comments

* whoops, deleted too many methods

* fixit
2019-09-13 20:03:55 +03:00
Tobias Gödderz aeba4bc2c6 Additional sort-limit tests (#10010) (#10011) 2019-09-13 19:10:43 +03:00
Heiko e5da8b1cef Bug fix 3.5/arangosh gharial vertex deletion (#9926)
* typo in route

* unused function removed

* added general graph standalone and cluster tests, formatting

* removed fail, removed print

* changelog

* Update CHANGELOG
2019-09-13 13:15:53 +03:00
Tobias Gödderz 6f16c3deef [3.5] Make AQL's constrained heap play nice with fullCount (#10007)
* Make AQL's constrained heap play nice with fullCount (#9981)

* Update CHANGELOG
2019-09-13 12:28:28 +03:00
KVS85 e0e05903fb
Fix jslint 2019-09-12 22:25:58 +03:00
KVS85 6bd1879473 Add more stability to moving-shards-cluster.js 2019-09-12 18:31:11 +02:00
Jan 8830aad557 Bug fix 3.5/allow not like (#9991)
* allow NOT LIKE, NOT =~ and !~ in grammar

* updated CHANGELOG

* added derive files
2019-09-12 16:59:40 +03:00
Jan c7b0e68026 disable the creation of TTL indexes on sub-attributes (#9995)
* disable the creation of TTL indexes on sub-attributes

* updated CHANGELOG
2019-09-12 16:42:56 +03:00
Max Neunhöffer 328f46e3d6 This merges hotbackup and atomic-db-creation into 3.5. (#9968)
* Squashed commit of feature-3.5/hotbackup_devel.

This puts hotbackup into 3.5.

* Port atomic-database-creation-2 to 3.5.

* Remove some wrongly ported code.

* Fix compilation.

* Fix a manual merge error.

* Remove a feature from the mocks which does not exist in 3.5.

* Add some code which was forgotten in manual merge.

* Fix a problem introduced in a manual merge.

* reuse function

* Address some whitespace issues that came up in review

* aardvark should not create the frontend collection

* create _frontend collection from c++

* recheckAndUpdate Callback in CollectionWatcher

* Wrong author ;)

* rm outdated todo

* Update lib/Basics/VelocyPackHelper.h

Co-Authored-By: Michael Hackstein <michael@arangodb.com>

* use logger unique id, use startup logger

* not needed

* optimized vector shardid method

* do not create _modules collection lazy anymre

* Formatting.

* Assert instead of if/TRI_ASSERT(false)

* Don't use exceptions as control structure

* Re-add READ_LOCKER that got lost in translation

* Fix audit log in case database creation fails early.

* legacy sharding

* Add CHANGELOG entry.

* Retry database cancellation indefinitely

* Do not use exceptions in UpgradeTask

* DropCollection is a FAST_LANE action and should not need much time or else retry.

* Remove superflous addition of LdapFeature

Proudly brought to you by ASAN tests

* Fixed check for distributShardsLike sharding on _system database

* Fixed compile issue on tests

* Removed assertion that seems to be not correct yet on devel.

* Sort out google cloud storage as remote. (#9918)

* Add successful method to ClusterCommResult.
* Improve error forwarding for cluster internal communication.

* Feature/hotbackup list retries (#9924)

* retry hot backup listing for 2 minutes in cluster before giving up

* Enable api by default.

* fix broken list of non existing id (#9957)

* Fix compilation after manual merge.

* Fix another compilation problem.

* Yet more fixes for compilation.

* More compilation fixes.
2019-09-11 13:13:54 +03:00
Jan 949f85497c improve handling of FILTERs with constant expressions (#9942) 2019-09-09 21:35:35 +03:00
Dronplane 85814c05f1 Bug fix 3.5/internal issue #633 (#9902)
* Fix for internal issue #633 (#9884)

* Made ANALYZER BOOST and MIN_MATCH non deterministic to prevent premature calls

* Returned Deterministic flag. Added context function implementation for cons arguments calls.

* Fixed filter volatility detection

* Added assertion

* Fixed formatting.  Removed redundant checks.

* Applied review suggestion

Co-Authored-By: Jan <jsteemann@users.noreply.github.com>

* Added CHANGELOG record

* Update CHANGELOG
2019-09-05 12:21:29 +03:00
Michael Hackstein 5771502a83 Added cleanup for analyzer test and view test (#9908)
* Added cleanup for analyzer test and view test

* Update tests/js/client/shell/shell-analyzer-rest-api.js

Fixed wrong command usage
2019-09-04 20:21:22 +03:00
Jan ac221ae1b8 fix audit test (#9887)
* fix audit test

* fix compile error in community version

* try to harden view test
2019-09-04 19:24:25 +03:00
Jan f8c156a44f make graphs transaction-aware (#9855)
* make graphs transaction-aware

* simranification

* fix tests with mmfiles
2019-09-02 22:06:10 +03:00
Jan 480f0e799a Bug fix 3.5/babies unknown shard (#9871)
* fixing cluster

* added tests for baby operations with custom sharding

* added errorMessage for UX

* updated CHANGELOG

* updated CHANGELOG

* fix error code handling
2019-09-02 10:58:25 +03:00
Jan ad1e5d2e51 fixed issue #9862 (#9865) 2019-08-30 19:31:55 +03:00
Jan 2123fceb7a cover more cases of "unique constraint violated" issues during replication (#9829)
* cover more cases of "unique constraint violated" issues during
replication

* add more testing

* fix compile error
2019-08-30 12:42:58 +03:00
Dronplane 1eef617a07 Fixed issue #9795 Fixed NOT IN clause in ArangoSearch (#9836)
* Fixed issue #9795 Fixed NOT IN clause in ArangoSearch

* Update CHANGELOG
2019-08-28 18:38:02 +03:00
Jan 226373e200 Bug fix 3.5/fix in not in workaround (#9814)
* remove hack for NOT IN

* added parsing test

* added derived files

* added CHANGELOG entry
2019-08-28 14:04:24 +03:00
Jan Christoph Uhde 44ab3f04b5 3.5 -- intermediate commit stats (#9780)
* count intermediate commits

add transactions statistics struct

add tests

put values in object / split test is multiple smaller tests

* fix broken condition

* fix test

* remove print

* fix windows build

* fix mmfiles

* fix cluster

* add structs in docublocks

* we do not know about intermediate commits on coordinators

* add documentation

* add isCluster function

* add serverStatistics to 3.5 client

* update documentation
2019-08-26 16:56:21 +03:00
Dan Larkin-York a9dced45ee Add user restrictions for streaming transactions. (#9796) 2019-08-23 19:51:59 +03:00
Dronplane 5bee042b65 Bug fix 3.5/internal issue #622 (#9787)
* Bug fix/internal issue #622 (#9781)

* Added analyzer cache invalidation for dropped database

* Fixed jslint reported errors

* Update CHANGELOG
2019-08-22 14:25:14 +03:00