1
0
Fork 0
Commit Graph

16952 Commits

Author SHA1 Message Date
Jan Christoph Uhde 06cb81be3d Bug fix 3.4/little weekend fix (#10526)
* create arena before using it

* try to avoid oom situation
2019-11-26 10:13:52 +01:00
Max Neunhöffer c4a4f6154d Fix vst network traffic accounting. (#10324) 2019-11-20 20:06:40 +03:00
Jan 9b5d75071d make replication timeouts configurable via startup options (#10472)
* 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 timeouts

* make tests work again
2019-11-19 19:45:40 +03:00
Jan 69747bc86f Bug fix 3.4/disallow subqueries in prune (#10266)
* backport of #10231

* added derived files
2019-10-16 19:19:57 +03:00
Jan b4e56f4285 Bug fix 3.4/fix parsing unterminated strings (#10157)
* fix parsing of unterminated string literals

* added CHANGELOG entry

* added generated file
2019-10-09 16:35:29 +03:00
Max Neunhöffer 95ae2eeb11 Port latest shutdown hanger bug to 3.4. (#10122) 2019-10-09 16:34:16 +03:00
Jan 4477bd1ed1 Bug fix 3.4/issue 10078 (#10083)
* fixed issue #10078: FULLTEXT with sort on same field not working

* added test

* simplify the implementation
2019-09-27 16:59:42 +03:00
Jan e502feeea6 fixed issue #10062: AQL: Could not extract custom attribute (#10066) 2019-09-27 16:58:58 +03:00
Tobias Gödderz 45e28ec5f2 Removed erroneous noexcept specifier (#10060) 2019-09-23 13:46:43 +03:00
Dan Larkin-York 8f9ebce0e0 [3.4] Fix issue with cache allocation statistics. (#10030)
* Fix issue with cache allocation statistics.

* updated CHANGELOG
2019-09-20 16:20:20 +03:00
Max Neunhöffer 59544d5b83 Add more strong references to pthread stuff. (#10046)
* Add more strong references to pthread stuff.
* Circumvent libgcc/libmusl mistake in multi-threaded detection.
2019-09-20 12:40:53 +03:00
Lars Maier e51bc5ca52 [3.4] Background Get Ids (#9785)
* Obtain new unique IDs via a background thread.

* Updated changelog.
2019-09-19 22:33:02 +03:00
Tobias Gödderz dc2e27db6c [3.4] Feature/rebootid notice changes, backport of #9523 (#9685)
* Feature/rebootid notice changes, backport of #9523

* Move to 3.4 and C++11-compatible code (except for test code)

* Backported tests/Mocks/Servers.{h,cpp}

* Rebuilt errorfiles

* Ported CallbackGuardTest from gtest to catch

* Ported RebootTrackerTest from gtest to catch

* Make sure the state method is called, so the overridden method is used during tests

* Fixed test to work with the old scheduler

* release version 3.4.8

* [3.4] fix agency lockup when removing 404-ed callbacks (#9839)

* Update arangod/Cluster/ServerState.cpp

Co-Authored-By: Markus Pfeiffer <markuspf@users.noreply.github.com>

* Instantiate the scheduler during ::prepare()

* Fix test crash introduced during backport

* Fix a compile error on Windows (thanks, V8)
2019-09-19 15:03:39 +03:00
KVS85 31e4f9d1dc Comment for PR9839 2019-09-19 12:31:31 +02:00
Max Neunhöffer d0d4d8d815 Fix a shutdown hanger because of a collection status lock. (#10034)
* Fix a shutdown hanger because of a collection status lock.

* Fix compilation.

* Fix logic.

* CHANGELOG:
2019-09-19 11:54:25 +03:00
Tobias Gödderz 78fad805b5 [3.4] Bug fix 3.4/allow agency ops in active failover (#9960)
* Backported #9881

* Fixed changelog

* Fixed merge
2019-09-19 11:45:49 +03:00
Max Neunhöffer 59a90f28c0 Fix a shutdown busy loop after main if two exceptions collide. (#9984) 2019-09-13 13:27:54 +03:00
Frank Celler d1de4e9d28 fixed wrong defines 2019-09-12 14:51:33 +02:00
KVS85 0000a2d459 Revert "Let the server honour the keep alive timeout (#9477)"
This reverts commit 80c75af552.
2019-09-11 19:25:14 +02:00
Simon 80c75af552 Let the server honour the keep alive timeout (#9477)
* Fix keep alive timeout

* add changelog

* Update CHANGELOG

Co-Authored-By: Jan <jsteemann@users.noreply.github.com>
2019-09-11 13:05:14 +03:00
Jan 36614efb52 * Harden database creation against spurious "duplicate name" errors (#9949)
that were caused by other parallel operations lazily creating required
system collections in the same database.
2019-09-11 13:03:16 +03:00
Dronplane ccfa517178 Bug fix 3.4/internal issue #633 (#9916)
* Ported fix for internal issue #633

* fixed indentation

* Another indent fixed

* Update CHANGELOG
2019-09-11 12:58:24 +03:00
Matthew Von-Maszewski d1d2edba57 Bugfix 3.4: Calculate Write Amplification / Flag to disable StatisticsWorker (#9874)
* release version 3.4.8

* [3.4] fix agency lockup when removing 404-ed callbacks (#9839)

* add write amplification statistic

* add --server.statistics-history flag that blocks StatisticsWorker

* no longer disable statistics for Agency

* update for statistics changes

* correct grammar

* correct grammar and only force statistical history off on Agent when option not explicitly used.

* correct grammar and only force statistical history off on Agent when option not explicitly used.

* correct variable naming
2019-09-11 12:54:33 +03:00
Jan f9fdc39340 Bug fix 3.4/fix smart graph issues (#9861)
* release version 3.4.8

* [3.4] fix agency lockup when removing 404-ed callbacks (#9839)

* fix output of `require("@arangodb/smart-graph")._listObjects()`, which was broken before

* updated CHANGELOG
2019-09-11 12:52:48 +03:00
Heiko 45f62753dd Bug fix 3.4/graph create orphan collection properly (#9841)
* release version 3.4.8

* added ensureCollections to orphan create method

* do not move anymore

* rm trx finish. will be handled automatically in error case

* changelog

* release version 3.4.8

* [3.4] fix agency lockup when removing 404-ed callbacks (#9839)
2019-09-11 12:50:36 +03:00
Jan 34481860a9 cover more cases of "unique constraint violated" issues during replication (#9828)
* release version 3.4.8

* cover more cases of "unique constraint violated" issues during
replication

* add more testing
2019-09-11 12:48:08 +03:00
Tobias Gödderz 4ada35f20c [3.4] Bug fix 3.4/add shard id to replication client identifier (#9466)
* Bug fix/add shard id to replication client identifier (#9366)

* Fixed compile (but not linker) errors

* Backported ReplicationClientProgressTracker

* Fixed compile errors, fixed hash function

* No longer use SyncerId for real asynchronous replication

* Updated docu

* Try to fix compile error on windows

* Fixed a bug

* Removed old code

* Fixed CHANGELOG entry
2019-09-11 12:45:57 +03:00
Kaveh Vahedipour 36d7e3628b DropCollection is a FAST_LANE action and should not need much time or else retry. (#9897) 2019-09-04 14:48:50 +02:00
Jan ea5106ff60 Bug fix 3.4/babies unknown shard (#9872)
* release version 3.4.8

* [3.4] fix agency lockup when removing 404-ed callbacks (#9839)

* fix non-deterministic occurrences of "document not found" in sharded
collections with custom sharding and multi-document lookup

* updated CHANGELOG

* fix error code handling

* Update CHANGELOG
2019-09-03 23:58:14 +03:00
Kaveh Vahedipour 694799be5b url instead path (#9879)
* [3.4] fix agency lockup when removing 404-ed callbacks (#9839)

* typo
2019-09-02 17:37:23 +03:00
Kaveh Vahedipour 3f554f15d1 [3.4] fix agency lockup when removing 404-ed callbacks (#9839) 2019-09-02 16:13:37 +02:00
Jan 0935bb898e issue #9794: Limit with offset results in an infinite query that can't be cancelled (#9819) 2019-08-27 16:23:21 +03:00
Dan Larkin-York 4a0383849f [3.4] Minimize unnecessary dropping of followers due to poorly set synchronous replication timeouts (#9811)
* Minimize unnecessary dropping of followers due to poorly set synchronous replication timeouts.

* Add changelog entry.

* Add setIntroducedIn version.
2019-08-27 11:45:37 +03:00
Dronplane 12ec3f63d1 Bug fix 3.4/issue #9795 (#9807) 2019-08-27 10:32:36 +02:00
Frank Celler ed41809dba use LDAP_PATH instead of fixed one (#9812) 2019-08-27 10:22:29 +02:00
Jan 0360c251cc Bug fix 3.4/multi bugs (#9791)
* add whitespace to make error message more readable

* Don't retry persisting follower information

for collections/shards already dropped.
The previous implementation retried (unsuccessfully in this case)
for up to 2 hours, occupying one scheduler thread.
2019-08-26 15:50:56 +03:00
Kaveh Vahedipour 59b78a1ec4 [3.4] back port of agency call back cleanup (#9723)
* back port of agency call back cleanup
* storecallback missing
* revert callback bodies to API specification
* array needs be inside so that multiple unobserves to same key are possible
2019-08-23 10:12:11 +02:00
Lars Maier 6f4eb0e89f [3.4] Move Shard Bug 4567124 (#9741)
* Fixed abort in moveshard in the case new leader is not in Current.
* Updated Changelog.
* Fixed special case if to server is follower.
2019-08-20 11:39:45 +02:00
Jan eb5f4241a5 issue #9654 (#9752) 2019-08-19 23:18:57 +03:00
Lars Maier 562ee69ca4 [3.4] Backported TakeoverLeadership action. (#9732)
* Backported TakeoverLeadership action.
* Fix a LOG_DEVEL.
2019-08-16 17:31:02 +02:00
Max Neunhöffer 6720427b72
Fix an agency bug found in Windows tests. (#9729)
* Fix agency bug found in Windows tests.
* CHANGELOG.
2019-08-16 12:16:11 +02:00
Matthew Von-Maszewski 38b9ec80b8
Bugfix 3.4: Clean up rocksdb getStatistics() (#9703)
* clean up basic rocksdb statistics.  More clean-up needed.

* add rocksdb throttle value to statistics

* update comments about rocksdb properties

* rename function per PR comments
2019-08-13 13:10:45 -04:00
Kaveh Vahedipour 5c8aee1b67 Bug fix 3.4/node corrections (#9417)
* op:set should have new, some operators should not create non existing keys
* this is the proper direction
* observe/unobserve have no business in Node
* normalization of URI
* agency test added for observe / unobserve
* more tests
* Fixed catch tests.
2019-08-13 15:15:45 +02:00
Jan 49ad6fd290
fixed issue #9679 (#9683) 2019-08-12 14:59:22 +02:00
Jan fdbf2eb1e8
various replication improvements: (#9674)
- better debuggability (more log details)
- shorter minimum wait delay in active failover
- fixed too early pruning of WAL files on leaders
2019-08-12 10:44:50 +02:00
Lars Maier 6b04e3de03 Ported ResignLeadership to 3.4 (#9669)
* Ported ResignLeadership to 3.5

* Added http route.
2019-08-09 16:41:13 +02:00
Dronplane 592063c503 Bug fix 3.4/data loss in view (#9658)
* Added full index iterator utilization in case of some documents was not found in collection

* Added index operations reversal in case of insertion failure in rocksdb

* Removed singleop optimization as rollback possible even for such operations (in case of index operation failure on insert)

* Added tests for insert rollback in views

* Added catch tests for view block

* Added changelog entry

* fixed jslint errors

* fixed linux build

* Added test for update

* Fix CHANGELOG sequence

* Add line

* Added reverts for update and remove failures

* Cleanup in test. Added throwing error in case of failed reversal

* fixed typo

Co-Authored-By: Simran <Simran-B@users.noreply.github.com>

* fixed build

* Applied review comments

* Applied review comments
2019-08-09 17:30:17 +03:00
Lars Maier d8bc3685d3 [3.4] Fast Leader Change (#9642)
* Intermediate state.

* Finished.
2019-08-09 14:02:04 +02:00
Lars Maier 508abc311e Fail the FailedLeader Job if the new leader fails. (3.4 port) (#9640) 2019-08-09 14:00:55 +02:00
Jan 3219e63381
less copying in ClusterInfo::loadPlan() (#9650) 2019-08-08 10:04:36 +02:00