1
0
Fork 0
Commit Graph

16952 Commits

Author SHA1 Message Date
Andrey Abramov 30fe53e34e
Bug fix/internal issue #502 (#7480) (#7487)
* update iresearch

* update iresearch
2018-11-27 23:53:27 +03:00
Simon 8ddb9a063b Micro-Optimize AQL CXX calls (#7486) 2018-11-27 20:22:18 +01:00
Vasiliy 3caed3eb9a issue 506.3: backport 3.4: issue 506.3: use camel-case configuration parameter names consistntly, add a configuration version property to iresearch view meta (#7476)
* issue 506.3: backport 3.4: issue 506.3: use camel-case configuration parameter names consistntly, add a configuration version property to iresearch view meta

* backport: ensure meta version is supported

* backport: hide 'version' property from non-persistence json
2018-11-27 18:35:34 +03:00
Vasiliy f701c6d681 issue 506.2: backport 3.4: add optimization to not reexecute a primary-key filter if a match was already found (#7461)
* issue 506.2: backport 3.4: add optimization to not reexecute a primary-key filter if a match was already found

* backport: explicitly check type of instance of the primary-key filter

* backport: return non-null prepared filter and convert check to assert
2018-11-27 18:29:41 +03:00
jsteemann 5fa0de04a9 Merge branch '3.4' of https://github.com/arangodb/arangodb into 3.4 2018-11-27 13:44:35 +01:00
jsteemann f907dcebbd increase shutdown time 2018-11-27 13:44:18 +01:00
Lars Maier 154d449061 Export Version and Engine in Cluster Health. Additionally export `versionString` in registered Servers. (#7463) 2018-11-27 09:15:38 +01:00
Dan Larkin-York 00c060c884 [3.4] Fix end condition (hasMore) for EnumerateViewNode. (#7278)
* Fix end condition (hasMore) for EnumerateViewNode.

* Fix crashes.

* Some more fixes.

* eliminate code duplication
2018-11-27 00:41:29 +03:00
Jan ffc823e1c8
Bug fix 3.4/backport optimizations (#7434) 2018-11-26 19:16:05 +01:00
Tobias Gödderz a83300dc29 Fix error handling in case ClusterCommResult.result == nullptr (#7355) 2018-11-26 16:22:43 +01:00
Vasiliy b0d11022b9 issue 506.1: backport 3.4: address issue with multiple identical document insertions on rocksdb recovery (#7453) 2018-11-26 17:17:47 +03:00
Max Neunhöffer 6bd61760f2
Fix moving of shard leaders. (#7446)
* Ungreylist move shard test.
* Move leader shard: wait until all but the old leader are in sync.
* Increate moveShard timeout to 10000 seconds.
* Add CHANGELOG.
* Fix compilation.
* Fix a misleading comment.
2018-11-26 15:05:56 +01:00
jsteemann 9658300f11 revert Scheduler changes 2018-11-26 09:54:41 +01:00
Simon 96346a12d0 switch default message for requireFromPresent (#7439) (#7450)
(cherry picked from commit f90b48f792)
2018-11-26 09:16:48 +01:00
Andrey Abramov 822e15e770
issue 153: ensure views are dropped in Agency when database is dropped in cluster, minor fixes (#7370) (#7451)
* issue 153: ensure views are dropped in Agency when database is dropped in cluster, minor fixes

* backport: add test to ensure views are dropped when database is dropped from plan, fix some issues in ClusterInfo

* optimize primary key lookups in ArangoSearch

* fix test

* Add JS tests

* temporary comment optimizations

# Conflicts:
#	arangod/Cluster/ClusterInfo.cpp
2018-11-26 00:33:58 +03:00
Michael Hackstein 8098bb4eed
Bug fix 3.4/syncing of followers (#7377)
* Added some DEBUG output for replication rest handler

* Some more debug logging.

* Increased the priority of the ReplicationHandler. This way we will not get stuck with locks that cannot be canceled. Also cancel the lock on the correct database.

* Added extensive log output for replication thins

* Added tombstones to RestReplicationHandler. In a very unlikely case the cancel of a lock can be executed BEFORE the code that actually registers the lock, in this case we will now write a tombstone and do not lock.

* Revert "Added extensive log output for replication thins"

This reverts commit 6d4e37ea1e59e3b3457336019cc7dbc4c979504d.

* Added extensive log output for replication things, now in ERR level instead of MAINTAINER only

* Now actually use hours for synchronization

* React to errors under soft lock if they show up.

* Added a retry loop to increase the read-lock timer.

* Added more timeing output in RocksDB collection internals to figure out why the followers are dropped

* Tweaked RocksDB options

* Revert "Tweaked RocksDB options"

This reverts commit 2bf9c43280beda4792c47d079387fe5154cdd896.

* Removed debug output

* Applied all requested changes by goedderz

* Deleted unused variable
2018-11-23 16:08:27 +01:00
Wilfried Goesgens d5f92f87c3 fix none reply 2018-11-23 11:29:00 +01:00
Wilfried Goesgens 4bbd6a02bb Bug fix/less exceptions (#7385) (#7415) 2018-11-23 11:15:36 +01:00
Wilfried Goesgens c50d346453 add alternative to ClusterInfo::getCollection() that doesn't throw (#7413)
* add alternative to ClusterInfo::getCollection() that doesn't throw (#7339)

* handle more potential nullptrs, fix try/catch scope
2018-11-23 11:15:25 +01:00
Wilfried Goesgens d4af8fe287 remove enterprise-gotos (#7375) (#7414) 2018-11-23 11:14:21 +01:00
Simon ebad3c3c83 Fix restore of views, add --view option (#7425) (#7427)
(cherry picked from commit c584527d79)
2018-11-23 09:11:33 +01:00
jsteemann 1b4eef270c make message a debug message instead of an error message 2018-11-22 18:46:42 +01:00
Jan b363372c63
Bug fix 3.4/remove shutdown assertion (#7387) 2018-11-22 15:36:06 +01:00
Jan 19dc2ca0b7
yet more micro optimizations (#7399) 2018-11-21 17:09:16 +01:00
Simon ef239cbe4e Make recovery more reliable (#7297) (#7367) 2018-11-21 16:51:38 +01:00
Jan Christoph Uhde 8441368954 disable RocksDB indexing for some secondary index operations (#7393) 2018-11-21 15:50:36 +01:00
Kaveh Vahedipour 860fa21219 Bug fix 3.4/index readiness (#6716)
* backport of test data generation for maintenance from devel
* 3.4 working
* fixing index use in cluster while still being built
* fixed broken views
* correct 200 for ensureIndex
* merge with 3.4
* agency comm to handle replace in array
* supervision changes
* cluster info's exsureIndex
* 3.4 ready
* timeout
* missing files from origin
* neunhoef complaints
* bogus entry
* no need to wait for current once again
* no longer necessary. done in IndexFactory now
* correct comments
* left overs
* dead code revived
* Move CHANGELOG entry to the right place.
2018-11-21 14:41:36 +01:00
Jan 637ffada86
fix assertion failures for MMFiles operationsQueue state on shutdown (#7389) 2018-11-21 09:33:38 +01:00
Dan Larkin-York a7c9374527 Hide internal link properties (#7209) 2018-11-20 18:00:14 +01:00
Jan a5f4fe4a22
dont update lastProcessedTick too early (#7381) 2018-11-20 17:54:30 +01:00
Jan d27c4cc113
Bug fix 3.4/aql speedup (#7378) 2018-11-20 16:08:16 +01:00
Simon 5124633e6a Faster index creation (#7348) 2018-11-20 13:41:01 +01:00
Jan eda236f968
AuthenticationFeature::isEnabled() is not doing what is expected (#7373) 2018-11-20 11:30:10 +01:00
jsteemann dcf6cde1f4 fix assertion 2018-11-19 14:48:22 +01:00
Tobias Gödderz 3d1c643e23 [3.4] MMFiles replication: get followers under lock (#7298)
* Fix resign order

* Fixed a typo

* Get followers later, add TODOs

* Added a callback parameter to collection insert methods

* Get followers under the lock if necessary

* Extracted the replication of inserts into a separate method

* Move shortcut into replicate method

* Added callbacks for remove, replace and update

* Added missing overrides

* Extracted replication code from modifyLocal and removeLocal

* Update followers under lock also during replace, update, remove

* Fix changes from the last commit for update/replace

* Update comments, add asserts

* Remove changes for document-level locks that will be done in another PR

* Unify replication

* Adapt log messages to the devel ones

* Move common methods from its descendants to TransactionCollection, fix Mock on the way

* More IResearch test / mock fixes

* Relax asserts for nested transactions

* Reformat

* Fix non-babies remove and modify replication
2018-11-19 13:03:07 +01:00
Dan Larkin-York 4210d9eab6 [3.4] Updates to collection versioning. (#7260) 2018-11-19 09:45:09 +01:00
Matthew Von-Maszewski 4362137ba4
Bugfix 3.4: Null pointer defense in Scheduler::post(callback) (#7285)
* defense against the dark arts (nullptr in _ioContext)

* move incQueued() so that we can imply race state of _ioContext.

* adjust to meet Jans expectations

* jsteeman noticed that queue count is not considered before shutdown ... bad

* add JobGuard object to manage working count.  should hold shutdown a tad longer.

* TEMPORARY HACK:  need to validate problem that is randomly occurring in Jenkins automation

* TEMPORARY HACK 2: trying to isolate an acceptable sequence.

* TEMPORARY HACK 3: trying to isolate an acceptable sequence.

* TEMPORARY HACK 4: so close ... seem to have all the moving parts isolated.  Come on Jenkin!

* shutdown now orderly finishes everything already in fifo queues and active on threads.  Then forces any late requests to execute on callers thread.
2018-11-16 12:20:00 -06:00
Max Neunhöffer c005e0b0f0
Improve error reporting in maintenance. (#7340)
* Improve error reporting from maintenance.
* Fix compilation.
* Tiny polishing fix.
2018-11-16 10:25:55 +01:00
Lars Maier ea7b476ab6 [3.4] Endpoints via _system (#7344)
* Allow accessing _api/cluser/endpoints as authenticated user via the _system database.
* Removed start.sh
2018-11-16 10:01:42 +01:00
Jan 812c9223fe
fix queries that refer to COLLECT variables from inside COLLECT (#7333) 2018-11-15 15:10:56 +01:00
Max Neunhöffer dafb0d1a06
supervision bug fix to start with clean transient store (#7323) 2018-11-15 11:24:53 +01:00
Andrey Abramov 2a1542fdc2
Feature/arangosearch pk endianness (#7306) (#7312)
* refactor arangosearch pks

* minor refactoring

* store PK as BigEndian since it leads to more compact index representation

* force iresearch to not to use libbfd

* fix tests
2018-11-14 15:56:40 +03:00
Max Neunhöffer 805f7a7621
Fix timeout in cluster operation in create and drop collections. (#7300)
* Fix loophole.
* Fix inquiry case of id not found: 404.
* Also handle correctly in AgencyComm.
* Fix agency tests.
* Fix error handling in dropCollectionOnCoordinator.
2018-11-14 10:02:26 +01:00
Jan ccc064433b
Bug fix 3.4/aql micro optimizations (#7286) 2018-11-13 11:55:04 +01:00
Jan 8bcb1a310c
fix failing non-deterministic query-stream test (#7296) 2018-11-13 11:37:09 +01:00
jsteemann 046dac4234 fix define name 2018-11-12 13:09:48 +01:00
jsteemann bce1f51b8c simplify conditions 2018-11-12 11:14:19 +01:00
Andrey Abramov 6b7ea6cb9b
Feature/arangosearch optimize documents reading (#7280) (#7284)
* optimize reading documents from arangosearch index

* simplify code

* get rid of useless interface

* even more simplifications

* update iresearch to commit 40128bf50cea3546313fbfd71e5a32bb88e418a2

* optimize PK reading

* cleanup

* minor refactoring

* address review comments

* micro optimization
2018-11-09 20:01:13 +03:00
Wilfried Goesgens ccc43cd932 Bug fix 3.4/remove enterprise goto (#7274)
* add more information when timeout failing the index creation tests

* rather use null-pointers than try/catch for control flow
2018-11-08 16:27:51 +01:00
Dan Larkin-York 8bd754b9ad [3.4] Fix nullptr dereference in SynchronizeShard. (#7267) 2018-11-08 14:12:33 +01:00
Dan Larkin-York 0b77f6f6cf Fix error message when adding link to non-existent collection. (#7269) 2018-11-08 14:26:45 +03:00
Andrey Abramov dd31bb1186
make ArangoSearch error messages more descriptive (#7257) 2018-11-07 21:03:04 +03:00
jsteemann 2befce946e properly initialize member 2018-11-07 15:49:57 +01:00
Andrey Abramov 4873ef79d5
Bug fix 3.4/internal issue #6289 (#7250)
* improve troubleshooting

* fix tests

# Conflicts:
#	arangod/IResearch/IResearchViewBlock.h
#	tests/IResearch/ExpressionContextMock.cpp
#	tests/IResearch/ExpressionContextMock.h
2018-11-07 16:43:08 +03:00
Simon 0d955554f2 Use shared_ptr for LogicalCollection (#7220) (#7244) 2018-11-07 10:43:08 +01:00
Simon f4a1f15964 Simplify dropDatabaseCoordinator & fix some bugs (#7211) (#7243) 2018-11-07 10:41:02 +01:00
Matthew Von-Maszewski d927e8ebeb
Bugfix 3.4: revert recently added condition variable in ClusterCommThread stop (#7239)
* remove recent _activeThreadCondition. it made things worse. moved all ClusterCommThread methods to end of file to ease review.

* attempt at avoiding Scheduler io_context being nullptr in late shutdown steps

* manually revert last change since bug is realy about devel branch not 3.4 branch
2018-11-06 13:43:51 -06:00
Jan 2f9f168656
try not to throw so many exceptions from Supervision (#7226) 2018-11-06 18:00:45 +01:00
Tobias Gödderz a194326688 Restore /_api/view to return internal view names again (#7221) 2018-11-06 11:41:43 +01:00
Dan Larkin-York e5243f9254 [3.4] Upgrade old MMFiles collections for compatibility with ArangoSearch (#7133) 2018-11-06 11:12:54 +01:00
Matthew Von-Maszewski d4c8b43024
test to verify communication thread has fully exited before saying ClusterComm is stopped. (#7232) 2018-11-05 16:31:33 -06:00
Vasiliy 1ba23cd39b issue 496.5: backport 3.4: minor API cleanup and error reportin enhancements, update iresearch to commit d69f7bd184e009da7bf0a478efd34a0c85b74291 (#7217)
* issue 496.5: backport 3.4: minor API cleanup and error reportin enhancements, update iresearch to commit d69f7bd184e009da7bf0a478efd34a0c85b74291

* add workaround for shell-collection-rocksdb-noncluster.js::testSystemSpecial test failure

* fix typo
2018-11-05 16:17:41 +03:00
Matthew Von-Maszewski 1c3672be75
revert accidental check-in of thread delete constant edit (#7208) 2018-11-04 10:36:36 -05:00
Vasiliy d644561f1f issue 496.4.1: backport 3.4: move StorageEngine-specific flag out of the genric API and closer to the storage engine (#7213)
* issue 496.4.1: backport 3.4: move StorageEngine-specific flag out of the genric API and closer to the storage engine

* address merge issue
2018-11-04 16:52:54 +03:00
Simon cf86d9bbc8 Fix a crash in DBServerAgencySync (#7204) 2018-11-03 20:19:04 +01:00
Simon 9c53d045be Server stream cursor (#7186) (#7210) 2018-11-03 20:17:52 +01:00
Jan 8f1ce5b396
fix issues found by codescan (#7198) 2018-11-02 18:53:34 +01:00
Simon 1d2389dff1 Bug fix 3.4/missing vocbase release (#7203) 2018-11-02 16:25:49 +01:00
Jan eb3deb578f
smaller changes for replication (#7201) 2018-11-02 15:47:49 +01:00
Jan 5ea7d20863
add error checking (#7199) 2018-11-02 15:23:01 +01:00
Jan 452c70acdd
fix premature replicatin context deletion in case the context has no iterators (#7187) 2018-11-02 12:14:19 +01:00
Vasiliy 850919178f issue 496.3: backport 3.4: move more coordinator-related logic out of TRI_vocbase_t, rename some arangosearch view configuration parameters, remove some consolidation policies, update iresearch to revision 6fd9760d81b136f769e277ea5b8f53996ed7a1ca (#7167)
* issue 496.3: backport 3.4: move more coordinator-related logic out of TRI_vocbase_t, rename some arangosearch view configuration parameters, remove some consolidation policies, update iresearch to revision 6fd9760d81b136f769e277ea5b8f53996ed7a1ca

* address merge issue

* backport: remove code causing nullptr access

* invalidate payload for each field in FieldIterator before setting a value

* address compilation issues
2018-11-01 23:12:39 +03:00
Jan 98e4f26922
add separate option `--query.slow-streaming-threshold` (#7182) 2018-10-31 19:01:22 +01:00
Jan 023ca6dc33
Bug fix 3.4/patch slave collection count (#7156) 2018-10-31 17:20:46 +01:00
Simon f2f4a0fdaf Truncate Fix (Nr 6) (#7176) 2018-10-31 16:32:00 +01:00
Max Neunhöffer 42fd0825ab
Fix timeouts for write operations from coordinator to leader. (#7081)
* Improve logging on coordinator when doing `arangorestore`.

* Return more error information in `mergeResults`.

* Longer timeout for communication coordinator -> leader for writes.

This is taking into account possible write stops from followers needed
to get in sync.

* Fix compilation.

* Get rid of numbers in exception log messages.

* Fix compilation.

* Fix indentation.
2018-10-31 14:39:48 +01:00
Andrey Abramov 8225003861
[3.4] arangosearch speedup removals (#7158)
* Feature/arangosearch speedup removals (#7134)

* speedup document removals and optimize data model

* fix invalid constexpr

* reduce number of heap allocations for removals (#7157)
2018-10-31 15:54:16 +03:00
Jan aa385c2bbc
increase the maximum allowed number of collections in an AQL query (#7155) 2018-10-31 10:08:32 +01:00
Vasiliy 2458705607 issue 496.2: backport 3.4: allow customization of segment size limits on arangosearch view creation, minor code cleanup (#7141)
* issue 496.2: backport 3.4: allow customization of segmentsize lmts on arangosearch view creation, minor code clanup

* backport: fix incorrect condition
2018-10-30 23:41:15 +03:00
Simon f2602cb96f Remove unused bindings (#7142) 2018-10-30 19:41:45 +01:00
Matthew Von-Maszewski 87c4d99eea Bugfix 3.4: Allow libcurl time to retry DNS request (#7126)
* open up connect limit to allow one DNS retry

* add CHANGELOG entry for dns retry fix

* update warning message wording

* Add lock line that was missed in recent scheduler merge
2018-10-30 18:39:48 +01:00
Michael Hackstein b280142efa
Revert "fixes some misbehaviour within the coordinator agency callbacks (#7104)" (#7150)
This reverts commit 9ee7a0e955.
2018-10-30 16:48:56 +01:00
Heiko 9ee7a0e955 fixes some misbehaviour within the coordinator agency callbacks (#7104)
* fixes some misbehaviour within the coordinator agency callbacks

* changelog
2018-10-30 16:47:37 +01:00
Jan f7fd02695c
fix path to node_modules after copying files (#7087) 2018-10-30 13:50:42 +01:00
Simon c073b9dbbe Make ensureIndexOnCoordinator more robust (#7110) (#7130) 2018-10-30 11:25:06 +01:00
Simon 9271a11441 RocksDB replication thread safety (#7088) (#7131) 2018-10-30 11:24:17 +01:00
Vasiliy e6a6025818 backport: switch scope of responsibility between a TRI_vocbase_t and a LogicalView in respect to view creation/deletion (#7106)
* backport: switch scope of responsibility between a TRI_vocbase_t and a LogicalView in respect to view creation/deletion

* backport: ensure arangosearch links get exported in the dump

* backport: ensure view is created during restore on the coordinator

* Updates for ArangoSearch DDL tests, IResearchView unregistration and known issues

* Add fix for internal issue 483
2018-10-30 12:50:29 +03:00
Simon c644adc7da Fix undefined behaviour (#7109) 2018-10-29 18:59:51 +01:00
Jan 889cee0dae
speed up query string parsing (#7116) 2018-10-29 14:42:39 +01:00
Tobias Gödderz e9388ab710 [3.4] Stop curl from trying to POST stdin (#7097)
* Stop libcurl from trying to POST stdin

* Stop relocking every iteration in wait

* Remove unimplemented function

* Restrict setting of empty POSTFIELDS to POST requests

* Revert locking change
2018-10-29 14:41:23 +01:00
Michael Hackstein e05880895a
Bug fix 3.4/shorter foot in door (#7084)
* Implement `syncCollectionCatchup` in DatabaseTailingSyncer.

First stab, might not even compile.

* Fixed a typo.

* Fix a typo and a compilation problem.

* Further compilation fix.

* Implement two stage catchup.

* Two small corrections.

* Unified error messages in Synchronize shard job.

* Improved a code comment.

* Fixed autocasting bool->double and double->bool issue. That is truely one of the best features ever invented... </irony>

* Renamed doHardLock => toSoftLockOnly and inverted default value

* Merged soft/hard foot logic with Transaction splits

* Use scopeguards to cancel readlocks
2018-10-26 16:16:52 +02:00
Simon 78132bc2e5 Next try at truncate (#7090) (#7096) 2018-10-26 15:06:36 +02:00
Jan fac788bb89
fix nullptr access to usermanager object (#7094) 2018-10-26 12:59:00 +02:00
Max Neunhoeffer 015275a724
Emergency fix to compile on gcc 8. 2018-10-26 11:13:56 +02:00
Jan b0bff0a7da
potentially fix failing Windows catch test (#7080) 2018-10-26 10:11:02 +02:00
Max Neunhöffer 8564a08bbb
Try to fix timeout in drop collection. (#7058)
* Try to fix timeout in drop collection.
* Fix compilation.
2018-10-25 16:51:16 +02:00
Heiko e1480cfd11 Bug fix 3.4/agency loop wrong credentials (#7072)
* arangod now exits when used wrong credentials during the startup process

* changelog
2018-10-25 14:17:20 +02:00
Michael Hackstein 94a793fe61
Removed incorrect skipping of Batches in RocksDB Tailing syncer (#7021)
* Removed incorrect skipping of Batches in RocksDB Tailing syncer. This caused issues, whenever one transaction was spiltted.

* Added a test for Splitting a large transaction in RocksDB

* Reactivated skipping in RocksDB Wal Tailing (reverts initial fix)

* Actually include lastScannedTick in CollectionFinalize. Proper fix, kudos to @jsteemann.

* Fixed healFollower task in split-large-transaction test
2018-10-25 14:13:40 +02:00
Jan 6eeb9eab86
backport some replication debugging from devel (#7069) 2018-10-25 14:08:26 +02:00
Jan 2d0fce0fec
add option `--rocksdb.total-write-buffer-size` (#7024) 2018-10-25 13:12:27 +02:00
Jan b903f1f8ff
Bug fix 3.4/fix catch test issues (#7045) 2018-10-25 12:49:00 +02:00
jsteemann f0cc698872 try to fix "caught exception during statistics processing: Expecting Object" errors that may happen right after upgrading from 3.3 2018-10-25 11:24:17 +02:00
jsteemann 435c014a15 Merge branch '3.4' of https://github.com/arangodb/arangodb into 3.4 2018-10-25 00:00:00 +02:00
jsteemann 5e6a267296 remove unneeded string value 2018-10-24 23:59:51 +02:00
Simon e87b42a0c3 Silence tsan warnings (#7051) 2018-10-24 23:58:47 +02:00
Matthew Von-Maszewski a1af2e305f Bugfix 3.4: update Scheduler thread logic based upon testing (#7056) 2018-10-24 22:49:28 +02:00
Simon 6eb9e38b08 Better agency pool update (#7036) 2018-10-24 16:23:10 +02:00
Vasiliy 52e2c97693 backport missed changes (#7016) 2018-10-24 15:43:45 +03:00
Jan 613d9a3811
fix release-3.4 issue 109 (#7030) 2018-10-23 22:59:11 +02:00
Simon 3e5f90dcd3 Truncate index extimate fix (#7017) 2018-10-23 18:06:55 +02:00
Simon 8b19d40136 Properly compare velocypack objects in Agency operations (#6922) 2018-10-23 11:52:22 +02:00
Matthew Von-Maszewski 43016cf04f Bugfix 3.4: address concerns from prior scheduler PR (#7005) 2018-10-23 11:30:45 +02:00
Tobias Gödderz 183f9194f1 [3.4] Fixed optimize-traversals and added a regression test (#6975)
* Fixed optimize-traversals and added a regression test

* Updated CHANGELOG
2018-10-23 09:46:59 +02:00
Andrey Abramov dc98852dda
Bug fix 3.4/internal issue #2921 (#7008)
* issue 494: update iresearch to changeset 6ff909851c760c2111dca5074ab17d35114bee97 (20181022)

* issue 2921: make error message more detailed (#7004)

* issue 2921: make error message more detailed

* upgrade iresearch

# Conflicts:
#	arangod/RestHandler/RestViewHandler.cpp

* fix compilation

* and another fix
2018-10-23 02:41:25 +03:00
Jan 4e7f56a532
attempt to fix truncation (#7002) 2018-10-22 16:44:21 +02:00
Jan 169fb8edb7
do not copy node_modules directory on startup (#6946) 2018-10-22 16:43:26 +02:00
Jan 3d01c09ea2
Bug fix 3.4/fix array sorting (#6988) 2018-10-22 12:30:47 +02:00
jsteemann 2b86d9a0e4 Merge branch 'bug-fix-3.4/increase-setup-timeout' of https://github.com/arangodb/arangodb into 3.4 2018-10-22 09:43:33 +02:00
Andrey Abramov 2b46285b3b
Feature/backport arangosearch 3.4 (#6985)
* issue 485.1: reduce scope of lock in FlushFeature (#6943)

* issue 493.1: update iresearch to changeset 15f561dee5865ead83663ef056d7bbcc38636fb2 (#6947)

* issue 493.2: trigger termination of long-running consolidation on shutdown request

* Feature/update iresearch 2 (#6984)

* update iresearch sources

* another update

* update iresearch

* fix segfault in log message

* update iresearch

* update iresearch

* update iresearch

* remove noexcept

* improve logging

* update iresearch
2018-10-20 13:24:29 +03:00
jsteemann 6b971f50a3 increase query setup timeout 2018-10-19 17:41:09 +02:00
Jan 1002928b5f
fix https://github.com/arangodb/release-3.4/issues/99 (#6951) 2018-10-19 15:26:23 +02:00
Simon c0455e9c60 Add engine specific collection APIs (#6962) 2018-10-19 15:23:55 +02:00
Michael Hackstein 9599eb9b9f
Bug fix 3.4/sync replication allow soft and hard lock (#6864)
* First attempt to not block the thread that requires the EXCLUSIVE sync-up lock

* Fixed insertion of query into registry in rest replication handler.

* Removed unnecessary / false asserts as suggested in review. Fixed code comments.

* Replaced auto with a correct type as suggested in review

* Added a helper function to validate if a query is in use in the registry

* Fixed logic bug in usage of query registry

* Fixed compile issue

* Implemented optional 'doHardLock' parameter in the replication acquire read-lock call. A hard-lock guarntees to stop all writes, a soft-lock may not.

* Fixed compile issue

* Automaticly transfrom int -> bool in initializerlist sucks...

* Inverted boolen logic bug hidden due to int->bool beeing logically inverted.

* Today it seems that bools are too complicated for my brain.

* Removed failure point, didn't write a test for it, and it is hard to write it in the current test environment. Need to find a better solution in future

* Applied chenges required by @goedderz in review

* Renamed doHardLock => toSoftLockOnly and inverted default value
2018-10-19 14:11:34 +02:00
Michael Hackstein 875185e6c1
Bug fix 3.4/sync repl release thread (#6784)
* First attempt to not block the thread that requires the EXCLUSIVE sync-up lock

* Fixed insertion of query into registry in rest replication handler.

* Removed unnecessary / false asserts as suggested in review. Fixed code comments.

* Replaced auto with a correct type as suggested in review

* Added a helper function to validate if a query is in use in the registry

* Fixed logic bug in usage of query registry

* Fixed compile issue

* Automaticly transfrom int -> bool in initializerlist sucks...

* Inverted boolen logic bug hidden due to int->bool beeing logically inverted.

* Today it seems that bools are too complicated for my brain.

* Removed failure point, didn't write a test for it, and it is hard to write it in the current test environment. Need to find a better solution in future

* Applied chenges required by @goedderz in review
2018-10-19 13:48:22 +02:00
Lars Maier d7863b4583 Bug fix 3.4/cluster comm threads start stop (#6939)
* Start ClusterComm threads in `ClusterFeature::start`. Stop ClusterComm threads in `ClusterFeature::stop`.

* Do not free objects in `Scheduler::shutdown`. Let the `unique_ptr` do their job. Stop ClusterComm threads in `ClusterFeature::stop`, but free instance in `ClusterFeature::unprepare`.

* `io_context` may contains lambdas that hold `shared_ptr`s to `Tasks` the required a functional `VocBase` in their destructor.

* Clean up.
2018-10-19 13:12:51 +02:00
Lars Maier def04788c5 Fixed bad token generation when username is empty. (#6967) 2018-10-19 12:52:12 +02:00
Simon c2b6fb99ba Propper commit Sequence Numbers (#6958) 2018-10-18 18:25:34 +02:00
Jan 18de63c7c8
Feature 3.4/medium priority (#6910) 2018-10-18 17:08:39 +02:00
Jan fa235feeb2
attempt to fix https://github.com/arangodb/release-3.4/issues/96 (#6953) 2018-10-18 12:41:13 +02:00
Jan 19e2dd87bd
Replace engine equality feature (#6931) (#6950) 2018-10-17 20:34:19 +02:00
Heiko b5ff5080ff merge conf. (#6882) 2018-10-17 15:57:39 +02:00
Jan 13a9a0c12b
Bug fix 3.4/use proper log topic for replication test messages (#6920) 2018-10-17 15:40:59 +02:00
Matthew Von-Maszewski a9ce39f85c Bugfix 3.4: Merge scheduler changes by Michael & Frank into recent overlapping code changes (#6928)
* manual recreation of bug-fix-3.4/scheduler-high-low within recent Scheduler changes.

* restore Documentation that was unintentionally deleted
2018-10-16 22:51:00 +02:00
Dan Larkin-York fa6680a252 [3.4] Fix issues with ArangoSearch link permissions in cluster mode (#6726) 2018-10-16 20:43:01 +02:00
Andrey Abramov 6b6e4f6279
issue 485: ensure LogicalDataSource::drop() is called on vocbase drop (#6895) (#6923)
* issue 485: ensure LogicalDataSource::drop() is called on vocbase drop

* add missed change

* backport: address race between make(...) and async job

* add another missed change

* backport: ensure recursive lock reports itself as locked correctly

* backport: address test failure on mmfiles

* backport: remove redundant lock already held by async task

* backport: reset reader before unlinking directory
2018-10-16 21:06:47 +03:00
Dan Larkin-York 315af8e99f Suppress startup warning about no user table. (#6903) 2018-10-16 14:31:41 +02:00
Simon dd15298721 Do not delete ticks before counters (#6890) 2018-10-16 09:30:38 +02:00
Jan d8043d6589
handle "rev" parameter (#6897) 2018-10-16 09:19:12 +02:00
Jan d6ae3a339c
prefer an index if more index attributes cover a filter condition (#6902) 2018-10-16 09:12:55 +02:00
Jan e5cefefd66
Bug fix 3.4/suppress statistics errors (#6891) 2018-10-15 17:34:08 +02:00
Simon 7eda6768ab Refactor stuff, add async batch extension task (#6875)
* Refactor stuff, add async batch extension task

* fix compilation
2018-10-15 11:43:45 +02:00
Matthew Von-Maszewski 25bc48e548 minimum fixes to clear scheduler timeout problem. (#6878) 2018-10-15 09:06:15 +02:00
Andrey Abramov 4ef4e1119a
backport new arangosearch to 3.4 (#6874)
* backport new arangosearch

* backport tests

* backport another test

* backport changes in cmake
2018-10-13 01:27:31 +03:00
jsteemann f8de7d0756 fix yet another prompt issue 2018-10-12 19:12:18 +02:00
Jan 9b7258a4d1
added several query optimizations (#6781) 2018-10-12 17:41:45 +02:00
Kaveh Vahedipour 1c612ff5b0 fixed hyperventing agent 3.4 (#6777)
* fixed hyperventing agent
2018-10-12 17:02:52 +02:00
Matthew Von-Maszewski 887822afa6 Bug fix 3.4: libcurl threading changes (#6829)
* enable the ability to push results processing to threads
* have ClusterComm push libcurl response processing to Scheduler threads
* tuning changes from Matthew and Michael
* give new defaults to minimum thread count
* create multiple ClusterCommThreads, each with own Communicator object
* put PR notes in change log
* correct speling
* Also drain V8 queue.
* Add prio V8 to switch in canPostDirectly.
* Accept --server.minimal-threads even if maximal threads is not set.
* Reactivate stopping of threads.
2018-10-12 17:00:55 +02:00
Jan 4dd0f2d265
tobiasle (#6860) 2018-10-12 15:34:35 +02:00
Simon 010b54c81e Allow WAL logger to split up transactions (#6800) 2018-10-12 15:15:55 +02:00
Jan 3a552cbc4f
Bug fix 3.4/fixes 111018 (#6844) 2018-10-12 12:49:43 +02:00
Jan 815adaa56f
Bug fix 3.4/fixes 110918 2 (#6845) 2018-10-12 12:48:41 +02:00
Jan 3adaf001c5
velocypack library update (#6850) 2018-10-12 12:46:52 +02:00
Jan 8b7400a36a cppcheck (#6856) 2018-10-12 12:40:31 +02:00
Simon 801dd32dac do not ignore document revision (#6852) 2018-10-12 11:06:18 +02:00
Jan 4dacd7c3b3
suppress some of these dreaded error messages (#6787) 2018-10-11 10:46:04 +02:00
Max Neunhöffer 052d8f2cdb
Fix a bug when getting in sync and old requests are still lingering. (#6788) (#6795) 2018-10-10 18:04:31 +02:00
Jan 7e8d75bb6b
potential fix for release-3.4/#79 (#6790) 2018-10-10 14:41:01 +02:00
Dan Larkin-York ff2ce5c846 Fix issue with colleciton/view name conflict checking in cluster. (#6779) 2018-10-10 12:40:28 +02:00
Michael Hackstein 137f243fe2 Bug fix 3.4/views in aql collections (#6714) 2018-10-10 10:11:14 +02:00
Jan f51ab1912a
fix arangojs issue 573 (#6766) 2018-10-10 09:19:37 +02:00
Matthew Von-Maszewski 276da923cf Bugfix 3.4: dynamic management of libcurl's open connections (#6711)
* untested connection count management code.
* add digit to identify location of identical error messages.
* unit tests created, code working and integrated
* subtle changes to smoothing algorithm, close ... but still not perfect
* use scheduler queue() instead of post() to avoid occassional extreme latencies. throughput improved!
* temporary hack to hardcode queue size much lower
* force direct calls to post() to instead route through queue()
* correct issue with previous check-in, but performance has dropped with this on
* revert hardcoded value in SchedulerFeature.cpp
* queue to high priority to be consistent with other Aql actions
* backout all edits to Scheduler.cpp and Scheduler.h
* oops, forgot to remove some testing code.
* 3.4 merge/update
* add changelog entry
2018-10-10 09:11:11 +02:00
Max Neunhöffer fa683d3925
Remove a relic from early days in /Target/FailedServers. (#6689)
* Remove a relic from early days in /Target/FailedServers.
* Fix a test.
2018-10-09 13:49:38 +02:00
Jan d3392a9050 Bug fix 3.4/fix variable replacement in view search conditions (#6755)
* fix variable replacements in view search conditions

* unify CHANGELOG

* added reference to internal issue

* add catch test

* Added AQL test
2018-10-09 00:31:19 +03:00
Tobias Gödderz ed2c7ad774 Fixed testSetup(). Reduced redundant code. (#6760) 2018-10-08 18:57:07 +02:00
Jan 5a347017da
backport some fixes to 3.4 (#6739) 2018-10-08 09:43:14 +02:00
Jan 7290380dc7
Bug fix 3.4/increase replication timeouts (#6741) 2018-10-08 09:40:58 +02:00
Jan ac3ca432fa Bug fix 3.4/even more ldap debugging (#6735)
* forward-port changes from 3.3

* remove useless log output
2018-10-05 18:44:37 +02:00
Simon 05446dcac0 Bug fix 3.4/activefail debug (#6717) 2018-10-05 18:36:06 +02:00
Lars Maier 03d5b26013 Increase current version when cleaning out a lost collection. (#6715)
* Increase the current version rather than the plan version.
2018-10-04 13:49:54 +02:00
jsteemann dfba4b6381 added missing ifdef 2018-10-03 19:41:32 +02:00
jsteemann 571be911fb fix some recovery tests 2018-10-03 18:23:34 +02:00
Jan 3c692bb8bd
Bug fix 3.4/display sync progress (#6692) 2018-10-02 20:00:22 +02:00
Jan f1eae110c5
backported some fixes from devel (#6698) 2018-10-02 19:58:55 +02:00
Wilfried Goesgens 26bb818d5c Bug fix 3.4/fix windows cp defaults (#6682) 2018-10-02 18:59:42 +02:00
Dan Larkin-York a0861eb602 Fix multiple links per collection issue (#6661)
* Fix muliple links per collection issue (arangodb/release-3.4#48).

* Fix comparison.

* Added test

* Fix suite name.

* Address some edge cases.

* Clear views on teadown in tests

* Update aql-view-arangosearch-ddl-cluster.js

* Update aql-view-arangosearch-ddl-noncluster.js

* Fix jslint errors

* Added some comments about the comparison.
2018-10-02 17:33:52 +03:00
Jan a69a407f80
added yet another missing DeleteRange implementation (#6677) 2018-10-02 09:53:58 +02:00
Dan Larkin-York 3d15b96f66 [3.4] Additional and cleaned-up logging (#6648) 2018-10-01 19:03:05 +02:00
Wilfried Goesgens fbd2ca2e79 Feature 3.4/windows utf16 fileaccess (#6600) 2018-10-01 17:19:01 +02:00
Max Neunhöffer 0b72d02d19
Add more timeout because in Jenkins dbservers can be slow. (#6665) 2018-10-01 16:54:36 +02:00
Max Neunhöffer c4abcac276
Increase Plan/Version if follower is removed in MoveShard. (#6664)
This was forgotten when we added the `remainsFollower` flag.
2018-10-01 16:54:20 +02:00
Kaveh Vahedipour 8b9a0f6a25 Feature 3.4/detailed get maintenance feature (#6666)
* backport of test data generation for maintenance from devel
2018-10-01 14:50:25 +02:00
Frank Celler 6611854e72 release version 3.4.0-rc.2 2018-09-30 14:05:06 +02:00
jsteemann 290ad24db7 one more attempt 2018-09-28 18:14:39 +02:00
Jan 676a51731d
close socket when shutting down (#6651) 2018-09-28 17:50:33 +02:00
Max Neunhöffer b67718d6aa
Fix cleanup of Current entry in case a follower is removed from Plan. (#6623)
* Properly remove unplanned followers in leader and Current.
* Add a catch test.
* Fix tests.
* Fix a bug with a temporary object.
* Protect against exception from getCollection not found.
2018-09-28 17:37:14 +02:00
jsteemann 88e46715e8 fix compilation with g++5.4 2018-09-28 17:32:41 +02:00
Lars Maier 09395e73de Added try-catch-block. (#6649)
* Added try-catch-block.
* Removed debug output.
* Deleted unneeded constructors.
* Assignment operator deleted.
2018-09-28 17:09:50 +02:00
Simon c42583dab0 Fix error in dump test, create views before syncing data (#6640) 2018-09-28 17:00:03 +02:00
Max Neunhöffer 7582ed37af
Fix a crash found by the agency torturer. (#6590) 2018-09-28 15:15:20 +02:00
Kaveh Vahedipour 87e7185dd7 agency updating endpoints properly (#6643)
* agency updating endpoints properly
2018-09-28 15:12:40 +02:00
Jan 68e81da38e
handle DeleteRange markers on RocksDB recovery (#6565) 2018-09-28 11:10:11 +02:00
Jan d3b43b1cfc
fix assertion failure with _numLogData (#6632) 2018-09-27 19:26:10 +02:00
Lars Maier 0e9aa10c2a Feature 3.4/cleanup lost collections (#6627)
* Working draft: clean lost collections in supervision.
* Added early exit as in spec.
* Finished test. Fixed logging.
2018-09-27 10:35:39 +02:00
Simon f79a7d1a8f Fix crash on Agency / DBserver with user JWT tokens (#6595) 2018-09-26 14:22:27 +02:00
Jan 654b6e601b
fixed issue #6601 (#6607) 2018-09-26 14:18:34 +02:00
Jan 2726f1eddc
Bug fix 3.4/replication 33 to 34 (#6604) 2018-09-26 09:49:05 +02:00
jsteemann 593c0bfdb6 change c++14-only construct 2018-09-25 10:06:39 +02:00
Jan a8cd72f502
Bug fix 3.4/optimizations 210918 (#6574) 2018-09-25 09:50:25 +02:00
Jan 058b5072b3
Feature 3.4/query cache diagnostics (#6581) 2018-09-25 09:49:33 +02:00
Jan aee26ee1f0
next attempt... (#6597) 2018-09-25 09:38:17 +02:00
jsteemann 3e9f16e77a Merge branch '3.4' of https://github.com/arangodb/arangodb into 3.4 2018-09-24 18:36:53 +02:00
jsteemann b82e687e1c increase timeout for dropping collections 2018-09-24 18:36:08 +02:00
Simon 88796ef7af Backport #6579 to 3.4 (#6588) 2018-09-24 17:52:47 +02:00
Lars Maier b74222470a Bug fix 3.4/cleanout server dropping wrong follower (#6572)
* Fixing bug: cleanoutServer will no longer add old leader as follower.

* Fixed rollback.
2018-09-21 13:36:37 +02:00
Lars Maier c5b67d217d Feature 3.4/static const strings cleanup (#6504)
* AgentConfiguration cleanup
* static strings in maintenance / agency
* fix windows build
* test bogus
* got rid of old inefficient create method
* completed with NonAction
* this works with osx / windows
* map creation can be outside function
* string init order fiasco
* startup init fiasco
* fix init-order fiasco with static strings (#6475)
* try to work around compile errors
* Removed broken and unused strings.
2018-09-21 13:18:37 +02:00
Dan Larkin-York 95af9a3d56 Backport #6182 and #6549. 2018-09-20 14:35:50 -04:00
Jan 24c08eb965 fix undefined behavior in query cache result handling (#6543) 2018-09-20 16:58:12 +02:00
Andrey Abramov fb80d044e7 Merge branch '3.4' of https://github.com/arangodb/arangodb into 3.4 2018-09-20 16:32:43 +03:00
jsteemann e19909a4c7 fix dependencies of init-database feature/serverid feature 2018-09-20 15:26:41 +02:00
Andrey Abramov c52eba431b Feature/optimize arangosearch block (#6550) 2018-09-20 16:25:09 +03:00
jsteemann c2a642fdaf safety first: turn off sync/async mixing for HTTPS in general 2018-09-20 13:27:39 +02:00
Simon 3c965ee48a Resilience test failure points (#6545) 2018-09-20 01:04:38 +02:00
Jan e37576e03c
Bug fix 3.4/fix ssl vst (#6548) 2018-09-19 23:22:40 +02:00
Jan e92d432cf4
Bug fix 3.4/fix stats on skip (#6532) 2018-09-19 22:01:50 +02:00
Jan 41e05abe5f
return error codes in case a babies remove operation fails (#6528) 2018-09-18 20:15:48 +02:00
Jan 5f11f598ed
Feature 3.4/aql item block compression (#6513) 2018-09-18 14:33:47 +02:00
Jan 46b4e7b440
take over selectivity estimates (#6512) 2018-09-17 16:42:24 +02:00
Simon 292b6312ae Properly check syncer erros, catch more exceptions (#6522) 2018-09-17 16:38:44 +02:00
jsteemann 0e9814717d prevent out-of-bounds array access 2018-09-17 16:32:43 +02:00
Simon 097d9afaed Fix deduplication in IndexBlock (#6509) 2018-09-17 12:52:55 +02:00
Lars Maier d4d5031287 Bugfix 3.4/early out invalid links in view creation (#6503) 2018-09-17 09:52:10 +02:00
Simon 3779fa40ff Do not hide indexes (#6506) 2018-09-14 17:37:38 +02:00
Jan 71e5d2aa49
Fix WebUI Login with read-only (#6501) 2018-09-14 15:23:51 +02:00
Jan 6e4200d418
make cid values in /_api/replication/logger-follow strings as advertised (#6498) 2018-09-14 14:21:05 +02:00
Simon 1b1fbde2c8 Copy installation files on startup (#6494) 2018-09-14 11:14:50 +02:00
Kaveh Vahedipour 2041e56f44 advertised endpoints (#6493) 2018-09-14 10:05:46 +02:00
Jan b4e6894830
Bug fix 3.4/fix cluster index estimates (#6487) 2018-09-13 23:14:07 +02:00
Lars Maier 78f182ebe8 Completely export views dump restore [3.4] (#6484) 2018-09-13 12:37:37 +02:00
Jan 7a2991f76e
fix leak in regex cache (#6481) 2018-09-12 23:19:41 +02:00
Simon 49a824068f Fix ReadOnly Mode without auth-enabled (#6479)
(cherry picked from commit e2f4d08d437bba3228bf6dd088755de787461c63)
2018-09-12 20:07:31 +02:00
jsteemann 7a664babf6 fix error message (backlog/#479) 2018-09-12 16:34:26 +02:00
Jan add569b7b8
Feature 3.4/aql extensions 080908 (#6446) 2018-09-12 15:56:23 +02:00
Jan a07467e7e0
fix cluster index selectivity estimates (#6470) 2018-09-12 15:55:50 +02:00
Jan b029186edc
Bug fix/aql modify cleanup (#6380) (#6458) 2018-09-12 13:56:59 +02:00
Simon d6e00eb480 Fix skipSome PR (#6456)
* address review

* fix SortingGatherBlock

(cherry picked from commit eb8fcd808cba2cd350c7eb564b32509bfb234da8)
2018-09-11 10:58:49 +02:00
Simon 2312e46c89 Trace skipSome() calls (#6450) 2018-09-11 08:53:24 +02:00
Simran 62069735b0 Forward port changelog changes and typo fixes from #6303 (#6410) 2018-09-10 17:03:06 +02:00
Heiko bf3a608ae9 using sorted now (#6424) 2018-09-10 16:57:16 +02:00
Jan 1a303dd43d
fix some issues with sorted variant of COLLECT (#6432)
* fix some issues with sorted variant of COLLECT

* honor review comments
2018-09-10 16:20:57 +02:00
Lars Maier 69a9d8fe49 Fixed memory leak due to cyclic references of shared pointer. (#6441) 2018-09-10 14:48:22 +02:00
Simon f509965ffb Fix Pregel Graph Loading Logic (#6418)
* Fix Pregel Graph Loading Logic
2018-09-07 14:04:25 +02:00
Lars Maier 798375fbcd Dedicated thread for Phase 1&2 (#6342)
* First draft of dedicated thread for phase 1 and phase 2.

* Added comments and removed old code.
2018-09-06 12:14:53 +02:00
Max Neunhöffer 5a865b687c
Wait 2s after switching server mode before answering. (#6393)
This is needed because the change is propagated via the agency and the
heartbeat, which only happens once per second.
2018-09-05 21:14:07 +02:00
Jan 1810ec9909
fix profile output for nodes without calls to getSome (#6396) 2018-09-05 20:25:18 +02:00
Jan b3436d892d do not crash on empty followers list (#6375) 2018-09-05 16:51:45 +02:00
Simon dd457b835f Fix pregel during import (#6356) 2018-09-05 16:19:38 +02:00
Kaveh Vahedipour 5ec01abb48 typo (#6383) 2018-09-05 15:22:42 +02:00
Kaveh Vahedipour 813a580246 maintenance fast lane backport (#6350) 2018-09-05 14:54:04 +02:00
jsteemann b20ee5d08d added missing virtual destructor 2018-09-05 13:53:41 +02:00
Jan e87e305793
implement caching for stats values too (#6360) 2018-09-04 16:05:10 +02:00
Jan 421fd68bed
use less VPackBuilders when restoring data into a collection (#6362) 2018-09-04 15:44:43 +02:00
Jan a21d6bda62
Feature 3.4/relax aql limit grammar (#6361) 2018-09-04 14:50:01 +02:00
Simon 3eed525481 Hide links (#6348) 2018-09-03 15:36:37 +02:00
Frank Celler ffb6868bbb fix cast for macosx 2018-09-03 10:22:47 +02:00
Jan cb19878fad more explicit order for SystemDatabaseFeature (#6335) 2018-09-01 22:54:03 +02:00
Frank Celler f71893353d
Feature/fortune (#6324)
* added fortune cookies
2018-09-01 14:18:30 +02:00
Dan Larkin-York 18d827688a Fix condition finders moving filters past modifications into index nodes (#6327)
* Fixed issue with condition finder pulling filter past modification node into index.

* Fixed issue with traversal condition finder pulling filter past modification node into index.

* fixed jslint
2018-09-01 13:34:23 +02:00
Jan c8ff719665 Bug fix/always remove lock file (#6314)
* always remove LOCK file

* disable useless messages about environment for upgrade check and password reset
2018-09-01 12:09:23 +02:00
Vasiliy e862efdc3b issue 458.4: retrieve the system database via the SystemDatabaseFeature (#6299) 2018-08-31 19:45:10 +02:00
Jan 5873f63a72
Bug fix/fixes 2908 (#6279) 2018-08-31 17:26:54 +02:00
Jan 840ad8c20d
added option `--rocksdb.use-file-logging` (#6308) 2018-08-31 17:23:00 +02:00
Jan 191ae2dc43
do not report figures for an index by default (#6296)
the change in behavior crept in unintentionally due to my last
change of the index API. this PR reverts the unintended change
here so figures are only returned when explicitly requested
2018-08-31 17:22:00 +02:00
Lars Maier 66bb45c9c8 Bugfix/No Maintenance threads default to low (#6310)
* Fixed number of maintenance threads to low by default.
* Fixed types for `std::max`.
2018-08-31 15:28:44 +02:00
Lars Maier 63d9cfa081 Maintenance Fixes (#6284)
* Clean up for `FIXMEMAINTENANCE` comments: removed race condition, added errors and `notify()`s.
* Removed dublicated code.
* Added requested changes. Added error reporting for `UpdateCollection`.
* Make it compile. Add missing `notify()`.
* `CreateCollection` generates errors in all code paths.
* Fixed catch test.
2018-08-31 15:24:29 +02:00
Kaveh Vahedipour 679c6904f4 fixed a condition, when the local leader dropped the shard, before leadership resignation had happened (#6282) 2018-08-31 13:20:35 +02:00
Kaveh Vahedipour fe9b2fecdc notifyInactive has been lying aroung in the agent without being used. relique of the time, when we thought, that we would have an pool of agents from which we'd draw, if an agent failed (#6290) 2018-08-31 10:48:39 +02:00
Michael Hackstein 0a343392ac
Forward port of bugfix to issue #5941 from 3.3.15 (#6304) 2018-08-30 21:03:44 +02:00
Vasiliy 1586b5128e issue 458.3: syntactic cleanup (#6286)
* issue 458.3: syntactic cleanup

* remove extraneous debug output
2018-08-29 17:20:00 +03:00
Vasiliy a6f3444601 issue 458.2.1: ensure LogicalCollection presence is checked before granting/revoking permissions (#6274)
* issue 458.2.1: ensure LogicalCollection presence is checked before granting/revoking permissions

* try to address test failures

* backport: support wildcard for database too

* create collection before granting

* adjust ruby tests to expect behaviour as defined by issue #458

* adjust expected Ruby test result

* create required collection in Ruby test

* revert back to previous test code since Ruby refuses to create required collection

* missed revert
2018-08-29 14:57:56 +03:00
jsteemann 9650911d53 improve wording here and there 2018-08-29 12:34:29 +02:00
Simon 1afe3bce98 Remove header from trx::methods (#6271)
* do not create header here

* move headers up
2018-08-28 17:31:00 +02:00
Jan 494764b95c
Bug fix/fiddle version string into test paths (#6267) 2018-08-28 14:58:35 +02:00
Vasiliy 953027ba63 issue 458.1: move SystemDatabaseFeature from IResearch to RestServer (#6260)
* issue 458.1: move SystemDatabaseFeature from IResearch to RestServer

* Add modified tests.
2018-08-28 09:48:09 +02:00
jsteemann 44eae59dc0 remove functions that are not called anymore 2018-08-28 01:00:40 +02:00
Jan 5022ccc24d
Bug fix/fixes 2508 (#6254) 2018-08-27 21:36:39 +02:00
Lars Maier 5555bd2fad Schmutz++ Improved (#6259)
* Fixed startup order. Don't start maintenance threads in single-server or agent.
Added range check for `--server.maintenance-threads`.
Fixed invalid array access, when shard exists locally but not in plan.
* Removed unused header imports.
* Added CHANGELOG entry
* Fixed shutdown bug. Startup fixed.
* Fixed catch test.
* Add Maintenance improvements to NewFeature34.md.
2018-08-27 20:25:09 +02:00
Jan 34e6362e3e append version string to js directory name (#6262)
* append version string to js directory name

* add version-directory support for arangosh
2018-08-27 18:23:30 +02:00
Jan 601e2ccbc6
Feature/aql 1808 (#6191) 2018-08-27 14:56:57 +02:00
Heiko 9e65bf03c8 Bug fix/reducing gharial vpack usage (#6233)
* removed todo notification

* removed unused variable

* fixed compile error

* optimized addOrphanCollection

* optimized eraseOrphanCollection function

* optimized eraseEdgeDefinition

* removed unused function

* cleanup

* added addEdgeDefinition by class EdgeDefinition

* removal of this

* simplified rebuildOrphans function

* removed not needed helper function

* applied requested changes

*  tri assert

* removed check

* res fail
2018-08-27 11:33:31 +02:00
Jan 791eaba873 Bug fix/planning 2865 (#6252)
* potential bugfix for planning/#2865

* speed up dump tests setup

* enable authentication for backup tests

* make arangodump provide a "serverId" to the server

this allows the server to track arangodump as an active dump client
so any data required for the dumping may be retained while the
dump is ongoing

* don't log binary stuff into the logfile
2018-08-27 10:21:34 +02:00
Andrey Abramov 615e1cf7de
Feature/add options to view (#6255)
* added OPTIONS for views

* pass options too

* validation for OPTIONS

* fix OPTIONS validation

* removed debug log message

* add forceSync options

* add forceSync view option

* fix comments

* fix some memleaks

* fix typo

* fix integration tests

* fix integration tests

* fix another integration test

* rename 'forceSync' option to 'waitForSync'

* another attempt to fix test

* ensure query caches are properly invalidated

* address integration test failures

* another attempt to fix test
2018-08-26 22:30:23 +03:00
Vasiliy 5d14775de8 issue 459.3: ensure collection permissions are checked before updating/dropping an IResearch view (#6253)
* issue 459.3: ensure collection permissions are checked before updating/dropping an IResearch view

* backport: ensure collection permissions are checked before updating/dropping an IResearch view on cluster

* backport: address test failures

* backport: address more test failures

* reuse existing classes for scoping ExecContext
2018-08-26 18:00:16 +03:00
jsteemann ebba4fd55a fix memory errors and crashes 2018-08-25 20:17:59 +02:00
jsteemann a14940df54 fix memleak 2018-08-25 11:32:16 +02:00
jsteemann 0d767fcabe removed unused type 2018-08-25 11:28:58 +02:00
jsteemann c154dd95ce fix overrun 2018-08-25 11:28:22 +02:00
Simon 568a09f177 Disable JS on DBServer, fix race in UserManager (#6244) 2018-08-24 22:20:49 +02:00
Jan 73e44bc605
invalidate query cache after modification of views (#6198) 2018-08-24 19:54:10 +02:00
jsteemann 08ee458608 blind attempt to fix MacOS compile error 2018-08-24 13:57:33 +02:00
Jan 0d48677619
Bug fix/aql optimizer improvements 2308 (#6241) 2018-08-24 13:42:22 +02:00
Vasiliy 2ecdfefcb8 issue 459.2: ensure view retrieval is denied of detailed definition is denied (#6237)
* issue 459.2: ensure view retrieval is denied of detailed definition is denied

* address test failures
2018-08-24 14:37:35 +03:00
Jan 2bce75eb86
add AQL function CONTAINS_ARRAY as alias for POSITION (#6242) 2018-08-24 12:50:50 +02:00
jsteemann bd7352e88f fix compile warnings 2018-08-24 12:30:37 +02:00
Kaveh Vahedipour 28754cbf15 Feature/schmutz plus plus (#5972)
- Schmutz now called "Maintenance" and completely implemented in C++
 - Fix index locking bug in mmfiles
 - Fix a bug in mmfiles with silent option and repsert
 - Slightly increase supervision okperiod and graceperiod
2018-08-24 12:15:35 +02:00
jsteemann 50be715aeb removed gcc-specific attribute 2018-08-24 12:05:39 +02:00
Simon 18c3069117 Make cluster routes check roles (#6239) 2018-08-24 09:46:27 +02:00
Simon 948820e484 Various small changes (#6234) 2018-08-24 09:39:03 +02:00
Vasiliy b55546225f issue 450.6: simplify consolidation policy typing (#6235) 2018-08-24 01:25:23 +03:00
Heiko b1b68b19b9 Bug fix/gharial deletion of connected edges (#6201)
* added test for recursive edge deletion, still missing c++ implementation

* test

* added deletion of connected edges when removing an edge or a vertex

* Added a helper function to iterate over all graphs.

* applied requested test changes

* edge definition helper function

* moved removeVertex and removeEdge inside a helper function

* more optimizations

* compile error

* typo

* requested changes

* const func
2018-08-23 18:52:06 +02:00
Jan 5f0403ed1c
Bug fix/add aql collection count cache (#6227) 2018-08-23 16:05:51 +02:00
Vasiliy e04b5318b4 issue 450.5: rename consolidation-related configuration properties and remove locale (#6232) 2018-08-23 16:04:25 +03:00
Vasiliy 76548e1161 issue 459.1: modify LogicalView permission validation as per the new requirements (#6226) 2018-08-22 18:56:10 +03:00
jsteemann 08c67c61a8 Merge branch 'bug-fix/add-arangosearch-view-to-resilience-tests' of https://github.com/arangodb/arangodb into devel 2018-08-22 15:15:26 +02:00
Vasiliy febd445410 issue 451.1: ensure errors are properly propagated during LogicalView creation (#6218)
* issue 451.1: ensure errors are properly propagated during LogicalView creation

* address Ruby test failures

* ensure invalid view type returns TRI_ERROR_BAD_PARAMETER

* address jslint errors
2018-08-22 16:11:24 +03:00
Jan 7c009bca4f
attempt to make MMFiles replication tests more deterministic (#6219) 2018-08-22 14:54:27 +02:00
Simon Grätzer 73640d6b7c Merge branch 'devel' of github.com:arangodb/arangodb into bug-fix/add-arangosearch-view-to-resilience-tests
# Conflicts:
#	3rdParty/fuerte/src/HttpConnection.cpp
2018-08-22 14:54:26 +02:00
Lars Maier 0944245bfd RestTestHandler (#6204) 2018-08-22 14:54:04 +02:00
Vasiliy 61574755b6 issue 450.4: address issues with impropper comparison (#6217) 2018-08-22 15:49:56 +03:00
Simon Grätzer c3d950f1d6 fix shard move 2018-08-22 12:42:57 +02:00
jsteemann 9e1e6c20e2 preparations for some more index usage 2018-08-22 09:53:33 +02:00
Simon Grätzer 2e05ad8f90 Fixing some small issues, adding views to move shards 2018-08-21 23:48:56 +02:00
Simon Grätzer 6b3f8d8c78 Merge branch 'devel' of github.com:arangodb/arangodb into bug-fix/add-arangosearch-view-to-resilience-tests 2018-08-21 20:44:31 +02:00
jsteemann 9959218d1d revert unification of collection name validation 2018-08-21 18:46:13 +02:00
Simon cd95185cad Fix authentication (#6214) 2018-08-21 16:51:52 +02:00
Jan 9355a06618
Bug fix/fix documentation issues (#6211) 2018-08-21 14:47:45 +02:00
Lars Maier 889ce78dcf Batch Handler V8-lane bug (#6196) 2018-08-21 13:52:14 +02:00
Jan d2c2f21c85
remove unnecessary parameter validation (#6210)
the validation has already been done before, so it does not need
to be repeated for each function call invocation
2018-08-21 13:51:28 +02:00
Vasiliy 325e61b4ed issue 450.3: use a single configuration policy differentiated by 'type' with arbitrary number of configurable parameters (#6205)
* issue 450.3: use a single configuration policy differentiated by 'type' with arbitrary number of configurable parameters

* ensure test data is persisted to the test directory

* add missed declaration

* fix typo

* add full namespace and includes
2018-08-21 14:46:28 +03:00
Vadim Kondratyev b6f2efebf1 Added document type to _iresearch_analyzers collection 2018-08-21 12:51:29 +02:00
Jan cb12be3e4e
fix crash when pressing CTRL+c in arangosh (#6187) 2018-08-21 11:12:11 +02:00
Jan 2aa879a53b
unify validation of collection names in AQL (#6203) 2018-08-21 11:11:15 +02:00
Simon 97b7e15792 Fixing crashes on UPDATE / INSERT queries (#6207) 2018-08-21 11:10:44 +02:00
Jan 68dac3cdfe
fix a crash when creating a resolver (#6206) 2018-08-20 18:22:48 +02:00
Simon 229c09d434 Allow dirty-reads from passive (#6136) 2018-08-20 16:26:14 +02:00
Vasiliy f7d7ce93fe issue 450.2: remove redundant functions from IResearchView API (#6197) 2018-08-20 16:38:17 +03:00
Heiko bb3a6002b8 added missing if none match header when reading nodes or edges (#6165) 2018-08-20 14:28:50 +02:00
Simon fc204a2b3e fix profiling code (#6190) 2018-08-20 12:59:07 +02:00
Jan 102f15bece
removed several unused internal APIs (#6193) 2018-08-20 12:57:58 +02:00
Jan e5864838d5
use rocksdb::Transaction::PopSavePoint() (#6192)
this prevents stacking many useless SavePoints in transactions with
many operations.

The PopSavePoint method in RocksDB is forward-ported from upstream
RocksDB commit 90f744941d48f15d5d070dfcab5d51b77abac8ad.
This is likely to be released with a future release of RocksDB.
2018-08-20 12:13:26 +02:00
Jan 7cb1da12cf
make AQL functions construction easier (#6195) 2018-08-20 11:56:38 +02:00
Vasiliy c08ab01f67 issue 450.1: remove the "commit" configuration layer from ArangoSearch properties (#6185)
* issue 450.1: remove the "commit" configuration layer from ArangoSearch properties

* fix broken tests
2018-08-20 02:18:02 +03:00
Jan 99f176bed5 Feature/add search keyword (#6166)
* added SEARCH keyword

* fixes jslint errors

* add incompatibility notice

* remove VIEW keyword (does not work yet!!)

* add initial support for SEARCH keyword to optimizer rules

* replace FILTER with SEARCH keyword in tests

* removed VIEW keyword, make shell_server_aql tests pass again in single server

* cleanup

* handle SEARCH clause for views

* make SEARCH a non-keyword

* fixed an issue with duplicate variables

* fixed 3 tests

* fix SEARCH statement support for views

* minor refactoring

* fix integration tests

* optimize SEARCH conditions a bit more

* fix jslint error

* fixed wrong comments and typo in class name

* fix documentation

* adjust recovery tests to use SEARCH instead of FILTER

* fix another failing test
2018-08-18 20:22:58 +03:00
Matthew Von-Maszewski 86ea784372 bugfix: establish unique function name & implementation for communication retry status (#6150)
* initial checkin of isRetryOK().  Includes fixes to known code that has previously hung shutdowns by performing infinite retries.

* slight help on getting out of a loop faster during shutdown.  not essential.
2018-08-17 14:57:12 +02:00
Jan a5ef080a8a
attempt to make replication_sync more reliable in tests for MMFiles (#6184) 2018-08-17 14:20:40 +02:00
Wilfried Goesgens e5843d32f8 Improve windows installer (#6045) 2018-08-17 12:37:47 +02:00
Kaveh Vahedipour 54cc026d34 servers should be retrying registration until successful (#5919) 2018-08-17 10:57:45 +02:00
Simon 2d29232c59 fix restoring iresearch view in cluster (#6159) 2018-08-17 09:28:20 +02:00
Jan 86204ed0b8
fix memory leaks in arangosh connections (#6160) 2018-08-17 08:48:54 +02:00
Jan d7e631eddf
Bug fix/more sparsung (#6177) 2018-08-17 08:47:45 +02:00
Jan b5eaf1443b
make optimizer rule "patch-update-statements" fire for REPLACE too (#6181) 2018-08-17 08:45:40 +02:00
Jan 10800572d4
do not mange errors in ClusterCommResult (#5933) 2018-08-17 08:44:45 +02:00
Jan d78adb7ae1
Bug fix/turn off range deletes in cluster (#6178) 2018-08-17 08:41:00 +02:00
jsteemann 478dc56104 improve estimate for CollectNode in case it does an aggregation to a single row 2018-08-16 17:37:51 +02:00
Vasiliy 364360ae79 issue 435.1: allow a user to specify the number of IResearchFeature threads via command line (#6164) 2018-08-16 13:14:15 +02:00
Jan 63efe2a634
fixed issue #6128 (#6137) 2018-08-16 11:01:44 +02:00
Jan d6a3b66e2a
micro optimizations (#6162) 2018-08-16 08:50:16 +02:00
Jan ed9d901846
fixed smaller issues (#6158) 2018-08-16 08:49:46 +02:00
Heiko a450c49494 fixing gharial graph constructor for community and mmfiles (#6154) 2018-08-16 08:48:53 +02:00
Simon 392118bd62 Use RangeDelete where possible (#6121) 2018-08-15 18:52:09 +02:00
Jan 2bc672cebd
centralized more of the sharding strategies code (#6140) 2018-08-15 14:37:01 +02:00