1
0
Fork 0
Commit Graph

17491 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 Christoph Uhde c072d84397 Bug fix 3.5/little weekend fix (#10527)
* try to avoid oom situation

* create arena before using it

* fix namespace
2019-11-26 14:53:56 +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
Lars Maier 9a33122c5d [3.5] Added precondition to ensure that server is still as seen before. (#10477)
* Added precondition to ensure that server is still as seen before.

* Removed merge conflicts.
2019-11-20 13:39:57 +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 81287811fe make replication timeouts configurable via startup options (#10473)
* make replication timeouts configurable via startup options

The following options are available (for active failover
and master-slave replication):

    --replication.connect-timeout
    --replication.request-timeout

Values can be specified in seconds. If these options are used, they will
be used for replication requests, overriding any hard-coded defaults or
explicitly configured timeouts.

Additionally, this change increases the default request timeout
for replication from 10 minutes to 20 minutes.

* do *not* change default value for timeouts

* make tests work again

* Update CHANGELOG
2019-11-19 18:25:15 +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
Jan a17ec21767 fix invalid assertion (#10428) 2019-11-14 10:40:08 +01:00
Jan 1f41dbd256 show type of index when non-implemented exception is thrown (#10425)
* show type of index when non-implemented exception is thrown

* fix message
2019-11-13 16:43:00 +01:00
Simon 4ddc94fac9 Improve syncer error message (#10404)
(cherry picked from commit 0a04067153356e035be35f42e890c7a02592985c)
2019-11-12 22:32:46 +03: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
Markus Pfeiffer 13df0d23de Bug fix 3.5/k shortest paths (#10390)
* Fix a bug in KShortestPathFinder

The finder was too eager to return a "shortest" path when there was actually
potentially a shorter path still to be discovered

* A little bit of cleanup

* Add a test that reproduces k Shortest Paths bug

* Add hacked up variant of optional

* Fixup tests

* Update CHANGELOG
2019-11-11 20:10:04 +03:00
Jan 152bc7c556 better killability of cluster AQL queries (#10360) 2019-11-06 15:33:44 +03:00
Max Neunhöffer b186aebd8d Fix immediate shutdown after startup failure. (#10365)
* Add missing dependencies to IResearchAnalyzerFeature

* First all features beginShutdown, then stop.

This is for the case of immediate shutdown if the startup did not work.
2019-11-05 18:32:33 +03:00
Kaveh Vahedipour 6169907f9a Bug fix 3.5/timestamp assert compatibility (#10354)
* assertion on compatibility, when timestamp missing

* assertion on compatibility, when timestamp missing

* assertion on compatibility, when timestamp missing

* assertion on compatibility, when timestamp missing

* Update CHANGELOG
2019-11-05 18:31:29 +03:00
Jan 461ea7cb5e Bug fix 3.5/always create analyzers collection 35 (#10356)
* always create `_analyzers` collection if missing

* Update arangod/IResearch/IResearchAnalyzerCollectionFeature.cpp

Co-Authored-By: Andrey Abramov <andrey@arangodb.com>

* Update arangod/IResearch/IResearchAnalyzerCollectionFeature.cpp

Co-Authored-By: Andrey Abramov <andrey@arangodb.com>

* Update arangod/IResearch/IResearchAnalyzerCollectionFeature.cpp

Co-Authored-By: Andrey Abramov <andrey@arangodb.com>

* Update arangod/IResearch/IResearchAnalyzerCollectionFeature.cpp

Co-Authored-By: Andrey Abramov <andrey@arangodb.com>

* add missing include
2019-11-05 17:58:34 +03:00
Simon 583c8b883e fix cleanupEngines, add another sanity check (#10344) 2019-10-31 21:08:26 +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 57a2982976 Bug fix 3.5/wait until we appear in supervision health (#10315)
* wait until we appear in Supervision/Health

* apply review suggestion

* add CHANGELOG entry for change
2019-10-25 13:36:22 +03:00
Max Neunhöffer ac689fc725 Allow to ignore superuser traffic with an option. (#10289)
* Allow to ignore superuser traffic with an option.

Also: Fix some accounting bugs.

* CHANGELOG.

* Implement separate accounting for superuser and user traffic.

* Fix VST case with no authentication.

* Add description of new user-only traffic statistics.

* Add figures for user traffic.

* Simplify forwarding accounting.

* Remove brackets in metrics names.

* Finalize naming of metrics.
2019-10-24 13:11:51 +03:00
Jan 4290f381af fixed issue #10270 (#10272) 2019-10-21 16:06:03 +03:00
Frank Celler 55ca6c8660 you cannot have an assigment operator and a const member 2019-10-17 10:19:45 +02: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
Jan 2c5f79c9fb Make scheduler enforce queue limits (#10026)
* initial commit

* fix typo

* honor @mpoeter 's comments. Thanks!

* honor @mpoeter 's comment

* adjust scheduler queue sizes

* apply suggestion

* adjust the PR for 3.5: do not use bounded_push
2019-10-16 17:43:04 +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
Jan 7eb53e0645 fix underflow in copying code (#10263) 2019-10-16 16:23:28 +03:00
Lars Maier 5a97acc166 Fixed available. Fixed not found for list. (#10234)
* Fixed available. Fixed not found for list.

* Fixed error reporting.

* Updated changelog.

* Fixed logid.
2019-10-14 16:51:42 +03:00
Kaveh Vahedipour 9044f7de97 [3.5] yet another agency ttl bug (#10242)
* port from devel

* Update CHANGELOG
2019-10-14 16:46:06 +03:00
Jan b74971c9bb Improved performance of some agency helper functions. (#10222) 2019-10-11 18:30:04 +03:00
Max Neunhöffer ff28647627 Improve timings for hotbackup lock. (#10230) 2019-10-11 17:42:12 +03:00
Max Neunhöffer 4a79205894 Fix hotbackup locking. (#10186)
* Fix dbserver locking and releasing for hotbackup.

* Fix fix.
2019-10-11 17:38:13 +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
Heiko 1d264dea9f applied fix which is already present in devel (#10210) 2019-10-10 12:09:39 +03:00
Jan 58fb6fd36b fix random willi bug (#10197) 2019-10-09 16:03:26 +03:00
Jan 345a06ade4 remove debug logging (#10192)
* remove debug logging

* removed yet another log message
2019-10-09 14:58:15 +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 4425c7d73a ignore files in .bin when copying js files (#10146)
* ignore files in .bin when copying js files

* updated CHANGELOG

* updated CHANGELOG
2019-10-02 19:03:43 +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
Lars Maier 64ac6d7af3 Bug fix 3.5/backup list with bad dbserver (#10130)
* Added available field to indicate bad backups.

* Added nrPiecesPresent.

* Fix logids.

* Make Windows compilation happy.

* Fix log ids.
2019-10-02 11:24:54 +03:00
Jan 7e524f9af9 honor restrictions when creating graphs (#10136) 2019-10-01 23:55:58 +03:00
Max Neunhöffer b3a1b028d8 Disable hotbackup api on Windows. (#10131) 2019-10-01 23:47:19 +03:00
Jan 845701de6d fix broken & duplicate logIds (#10134) 2019-10-01 20:15:07 +03:00
Max Neunhöffer 2201381da9 Port latest shutdown hanger bug to 3.5. (#10121) 2019-10-01 18:16:44 +03:00
Max Neunhöffer c067e17bb6 Port backup size to 3.5. (#10117)
* Port backup size to 3.5.

* Lars' fixes from devel.

* Fix compilation one more time.

* Lars' datetime fix from devel.
2019-10-01 16:45:28 +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