1
0
Fork 0
Commit Graph

15139 Commits

Author SHA1 Message Date
Wilfried Goesgens 45f3167e9e jslint 2019-10-02 10:46:11 +02:00
Wilfried Goesgens 000e30325f Merge branch 'devel' of github.com:arangodb/ArangoDB into feature/testing-result-evaluation 2019-10-02 10:44:04 +02:00
Jan c3423c7db0
Bug fix/disallow sharding on rev (#10123) 2019-10-01 19:42:55 +02:00
Wilfried Goesgens 8cd175b7b6 remember error messages in setUpAll for the final testresults 2019-10-01 17:15:43 +02:00
Wilfried Goesgens e2cc86d34f make auto aware of tests that need clusters 2019-09-30 13:55:32 +02:00
Wilfried Goesgens 3fb7d3f4e6 add error handling to result evaluation 2019-09-30 11:10:05 +02:00
Wilfried Goesgens 3164913ab2 reset values on test-start, module load may have happened before 2019-09-30 11:09:23 +02:00
Wilfried Goesgens 6d9a84cbb1 enable '--test' to be specified several times, measure duration of rspec tests 2019-09-30 11:08:07 +02:00
Wilfried Goesgens 636b2e5d5f fixed version of arangosh result evaluation refactoring - properly count objects (#10080) 2019-09-26 12:07:52 +02:00
Wilfried Goesgens ba9632522c Merge branch 'devel' of github.com:arangodb/ArangoDB into feature/testing-result-evaluation 2019-09-25 18:10:57 +02:00
Wilfried Goesgens 4db5732ffc finalize handling of setupAll duration measurements 2019-09-25 18:09:43 +02:00
Dan Larkin-York a83c2323c9 Refactor ApplicationServer stack (#9965) 2019-09-25 17:31:59 +02:00
Wilfried Goesgens f07bccf0a2 start implementing the book-keeping for setupall/terdownall measuring 2019-09-25 14:23:26 +02:00
Wilfried Goesgens d241e75077 fixed version of arangosh result evaluation refactoring - properly count objects 2019-09-25 12:30:24 +02:00
Jan 4f2e1d4054
fixed issue #10062: AQL: Could not extract custom attribute (#10068) 2019-09-24 14:36:53 +02:00
Jan Christoph Uhde 0b8c75c7b7 one shard db - devel (#9395) 2019-09-23 15:48:37 +02:00
Jan 46f3fa6923
fix graph error message (#10041) 2019-09-19 10:32:36 +02:00
Wilfried Goesgens d71ae10804 only forcibly kill other processes, not coredump them (#10023) 2019-09-17 00:16:46 +03:00
Jan 6a37e3c8f6 naive attempt to not build arangobackup in community version (#10012)
* naive attempt to not build arangobackup in community version

* fix testing.js

* try to fix enterprise detection
2019-09-13 20:26:15 +03:00
Tobias Gödderz a97000cd04 Additional sort-limit tests (#10010) 2019-09-13 15:18:01 +02:00
KVS85 4fc39dd4b3
Debug segfault reimplementation (#9940)
* Changed debugSegfault to debugTerminate

* Fix *nix compilation

* More data for broken reconnect

* Remove circumventCores completely

* Fix forgotten calls
2019-09-09 23:07:45 +03:00
Wilfried Goesgens 8d1b74fc3f though they don't need an app dir, give each its own 2019-09-06 23:51:55 +02:00
Wilfried Goesgens 287488520d check for tests leaving views behind (#9907)
* check for tests leaving views behind

* cleanup

* Update js/client/modules/@arangodb/test-utils.js

Co-Authored-By: Michael Hackstein <michael@arangodb.com>
2019-09-06 13:54:26 +03:00
Heiko b9dd097f8d Bug fix/arangosh gharial vertex deletion (#9921)
* typo in route

* unused function removed

* added general graph standalone and cluster tests, formatting

* added changelog entry

* Update CHANGELOG

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

* Update CHANGELOG

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

* removed fail, removed print
2019-09-06 12:26:10 +02:00
Kaveh Vahedipour ad36adc354 Feature/hotbackup list retries (#9924)
* retry hot backup listing for 2 minutes in cluster before giving up
2019-09-05 16:44:43 +02:00
Markus Pfeiffer 753ff4aa67 Feature/atomic database creation 2 (#9826) 2019-09-05 12:38:07 +02:00
Heiko e90bea726f added proper UI support for collections using smartGraphAttribute or … (#9905)
* added proper UI support for collections using smartGraphAttribute or smartGraphAttribute

* changelog

* make key selection more clear

* added awesome ' : ' div

* fixed smart doc creation logic
2019-09-05 08:39:05 +02:00
KVS85 629baf5144 Fix rspec timeout in Windows with disableMonitor 2019-09-04 17:40:45 +02:00
jsteemann d1b1b6726f Revert "Feature/resource usage (#9647)"
This reverts commit 76afb5001e.
2019-09-03 12:48:02 +02:00
Wilfried Goesgens 76afb5001e Feature/resource usage (#9647)
* spawn an arangosh that checks cluster nodes are responsive

* attempting to kill 0 may end up bad for us, prohibit it

* don't trip over this optional stuff.

* fix killing of spectator

* only write one line per minute

* fix function name

* print sHitlist of tests, add resource usage

* fix lint

* start refactoring result processing into its own library

* /proc reading only works on linux

* new result processing library

* clean up test loading flow, remove unused blacklist implementation

* measure SUT start/stop + test time

* lint

* more non-test variables

* improve test runner naming

* finish gathering statistics about start/run/stop

* use internal stats code for external processes too

* fix status in sample testcase

* tell that procdump is gone - it seems this happenes in reality without coredumps being written

* refactor test result analyzing, add utility to work with analyzers of json dumps from CI systems

* fix testcase error handling

* also run watcher for agency

* lint

* fix default options for test added default options

* if arguments occur multiple times, update value to an array

* start implementing some test analyzers

* fix color

* write json report unconditional

* add analyzer that searches for long setup/teardown tests

* enable thread dump; log error if we fail to acquire the threads

* disable procdump for the agency

* output error if we fail to get process stats

* fix json invocation

* add debug logging

* only add buildType if that directory actually exists

* trap sleepers

* trap sleepers

* trap sleepers

* trap sleepers

* trap sleepers

* disable thread counting on the wintendo

* disable thread counting on the wintendo

* more measurements

* more measurements

* one more place

* one more place

* remove debugging code

* Update js/client/modules/@arangodb/process-utils.js

Co-Authored-By: Dan Larkin-York <danielhlarkin@users.noreply.github.com>

* Update js/client/modules/@arangodb/process-utils.js

Co-Authored-By: Dan Larkin-York <danielhlarkin@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Dan Larkin-York <danielhlarkin@users.noreply.github.com>

* rename as sugested by @dan

* undo debug changes

* lint, make cluster health monitor optional per default

* fix spawning of active failover SUT, fix cluster health monitor shutdown

* use std::find_if (as @dan sugested), fix log ids

* fix scope of before-time
2019-08-30 16:20:07 +03:00
Frank Celler bf658c2c8d fixed coverage environment 2019-08-30 12:09:14 +02:00
Heiko 23734d10c2 iterate through all vertexCollections of a graph to find a vertex to … (#9827) 2019-08-28 12:55:22 +02:00
Jan 1e9ad7fbb9
show query string length and cacheability in explain output (#9767) 2019-08-21 12:06:32 +02:00
Wilfried Goesgens 99af524dac tell that procdump is gone - it seems this happenes in reality without coredumps being written (#9748) 2019-08-19 17:55:51 +03:00
Wilfried Goesgens 9cc0c500e9 add to the health check to inspect cluster health that it has a GOOD for all our instances (#9631) 2019-08-14 10:25:02 +02:00
Tobias Gödderz 6b3e11dd40 Fixed error code to not re-use an old one (#9686) 2019-08-13 15:18:45 +02:00
Frank Celler 8f050fc5d4 fixed missing reference 2019-08-13 14:09:04 +02:00
Frank Celler 1f37630aef fixed typo in test name 2019-08-13 12:16:00 +02:00
Frank Celler 68ea717af4
Feature/set environment (#9688) 2019-08-13 09:18:16 +02:00
Tobias Gödderz 9cd332b958 Feature/rebootid notice changes (#9523)
* Consolidated _servers and _serverAdvertisedEndpoints, added rebootId, prepared change notifications

* Cleanup

* Added a RebootId type

* Began implementing RebootTracker (still WIP)

* Moved RebootId operators into the class

* Removed RebootId operator<< again

* Added tests, added CallbackGuard, removed/commented old RebootTracker code

* Fix: do not try to call unset callbacks

* Split one test, added another

* Added more tests

* Renamed tests, added more tests

* Fixed missing variable declarations

* Let MockServer appear to be started

* Reorded test, fixed naming

* Implemented callMeOnChange()

* Re-implemented RebootTracker (not yet working)

* Resolved a TODO, updated a test, added comments

* Call old callbacks immediately

* Fixed tests

* Use EXPECT_* instead of ASSERT_*

* Suppress a log message

* Resolved TODOs

* Reverted changes on reading ServersRegistered

* Update RebootTracker

* Introduce `rebootId` into ServerState for Cluster

 * A server *boots* if it is started on a previously non-existing data
   directory and hence does not have a UUID yet.
 * A server *reboots* if it is started on a pre-existing data directory

We keep the rebootId in the cluster's agency under
Current/ServersKnown/$uuid/rebootId.

When rebooting (and subsequently re-joining a cluster), the server increments
its rebootId in Phase 2 of registration. This way it can be detected within the
cluster whether a server was restarted.

This information will later be used to handle cases where server restarts can
lead to problems, for example with transactions or in-progress queries.

* Move rebootId into Current/ServersKnown/

* Fixed typo

* Fixed log ids

* Add deletion of ServersKnown/UUID from agency

* Add deletion of Current/ServersKnown/UUID to removeServer

* Clean up readRebootIdFromAgency and add retry loop around it

* Bugfix

* Added nolint comments

* Fixed initialization order

* Fixed ClusterInfo-test

* Added log messages

* Revert "Fixed ClusterInfo-test"

This reverts commit d983596979.

* Disabled assertion for google tests

* Ignore windows compile warning

* Always call loadServers in loadCurrent

* Fix really subtle bug when not returning a value

* Introduce `rebootId` into ServerState for Cluster

 * A server *boots* if it is started on a previously non-existing data
   directory and hence does not have a UUID yet.
 * A server *reboots* if it is started on a pre-existing data directory

We keep the rebootId in the cluster's agency under
Current/ServersKnown/$uuid/rebootId.

When rebooting (and subsequently re-joining a cluster), the server increments
its rebootId in Phase 2 of registration. This way it can be detected within the
cluster whether a server was restarted.

This information will later be used to handle cases where server restarts can
lead to problems, for example with transactions or in-progress queries.

* Move rebootId into Current/ServersKnown/

* Add deletion of ServersKnown/UUID from agency

* Add deletion of Current/ServersKnown/UUID to removeServer

* Clean up readRebootIdFromAgency and add retry loop around it

* Fixed compile error due to forbidden implicit cast

* Fixed compile error on windows

* Fixed compile error due to devel merge

* Removed dead comment

* Removed TODO note

* Extended comment

* Removed TODO note

* Fixed using an invalidated iterator

* Copy string only if necessary

* Fixed compile error
2019-08-12 09:33:22 +02:00
Jan 0825cfc270
hide MMFiles-specific information when we don't need it (#9667) 2019-08-08 14:35:50 +02:00
Jan b57224f85c
remove unused instance variable (#9662) 2019-08-08 14:35:20 +02:00
KVS85 0c6d3b7ddc
Set jsunity output to gtest style (#9646)
* Set jsunity output to gtest style

* More pretty printing

* Fix jslint

* Remove unnecessary spaces
2019-08-07 22:37:00 +03:00
Simran 71d2651f2c
Aardvark: Add k Shortest Paths example graph to UI (#9491)
* Add example graph to UI

* Add kShortestPathsGraph to examples.js

* Update example-graph.js

* Update aardvark.js
2019-08-07 16:41:38 +02:00
Lars Maier 492057d4f4 [devel] Resign Leadership (#9427)
* First version of ResignLeadership Job.
* Port some performance optimizations from CleanOutServerJob.
* Draft of resigning leadership on shutdown.
* Moved code into Maintenance Feature. Fixed beginShutdown.
2019-08-07 15:02:17 +02:00
Lars Maier ed496fe5dd Feature/hotbackup devel (#9495)
Hotbackup
2019-08-02 11:39:46 +02:00
Wilfried Goesgens b9020abc11 Bug fix/fix swagger datatype (#9045)
* remove http so https arangos will work

* verify that query parameters are proper swagger data types, fix offending documentation files

* return the actual type - not the list of available ones

* check formats

* there is no uint64 in swagger

* fresh swagger
2019-07-29 22:20:35 +02:00
Wilfried Goesgens a951a9f6af fix runInArangosh result evaluation (#9588) 2019-07-29 20:42:48 +03:00
Jan 50f41cec59
added missing function db._transactions(), and equivalent REST API route GET /_api/transaction (#9571) 2019-07-26 16:20:28 +02:00
Wilfried Goesgens c76d3a0323 fix test result handling of tests running in own spawned arangosh (#9576) 2019-07-26 15:03:24 +02:00