Max Neunhoeffer
fd6fef6b9b
Try to fix createView in cluster.
2018-03-26 12:57:30 +02:00
Max Neunhoeffer
790824fd68
Merge remote-tracking branch 'origin/devel' into feature/arangosearch-cluster-views
2018-03-26 10:50:23 +02:00
Andrey Abramov
01d9baf359
remove TRI_ERROR_ARANGO_VIEW_NOT_FOUND, rename TRI_ERROR_ARANGO_COLLECTION_NOT_FOUND to TRI_ERROR_ARNANGO_DATA_SOURCE_NOT_FOUND
2018-03-17 19:36:14 +03:00
Max Neunhoeffer
0f46598200
Merge remote-tracking branch 'origin/devel' into feature/arangosearch-cluster-views
2018-03-14 23:24:41 +01:00
Max Neunhoeffer
e72c8f24fb
Fix compilation.
2018-03-14 23:24:07 +01:00
Max Neunhoeffer
ce8db24975
Add methods in ClusterInfo to create and drop views.
2018-03-14 23:22:44 +01:00
Kaveh Vahedipour
2e2d947c1c
devel: fixed the missed changes to plan after agency callback is registred f… ( #4775 )
...
* fixed the missed changes to plan after agency callback is registred for create collection
* Force check in timeout case.
* Sort out RestAgencyHandler behaviour for inquire.
* Take "ongoing" stuff out of AgencyComm.
2018-03-14 12:01:17 +01:00
Max Neunhoeffer
59785b226f
Fix compilation.
2018-03-08 15:26:41 +01:00
Max Neunhoeffer
28be92ec52
Parse Views hierarchy in loadPlan.
2018-03-08 15:07:46 +01:00
Max Neunhoeffer
a8a307b532
Report views in ClusterInfo.
...
This is incomplete as it is, because we do not yet parse the views
we see in the plan.
2018-03-08 14:24:22 +01:00
Simon
35136a89c0
Fix some problems with active failover ( #4540 )
2018-02-09 15:11:53 +01:00
Michael Hackstein
7a5a9a620c
Bug fix/distribute shards like ( #4415 )
2018-01-29 13:07:06 +01:00
Andrey Abramov
a1cfb3d72b
Feature iresearch ( #4105 )
2018-01-19 14:23:58 +01:00
Jan
25af4d7f69
try to not fail hard when a collection is dropped while the WAL is tailed ( #4226 )
2018-01-04 16:31:11 +01:00
Matthew Von-Maszewski
cb56f0acf1
Have twice seen coordinator go into long loop on shutdown. Added two tests for isStopping() to break the loops. ( #4138 )
2017-12-21 20:32:16 +01:00
Jan
282be208cc
remove TRI_usleep and TRI_sleep, and use std::this_thread::sleep_for … ( #3817 )
2017-12-06 18:43:49 +01:00
Jan
17986ebc08
return error context for "some agency operation failed" ( #3760 )
2017-12-06 11:16:19 +01:00
Kaveh Vahedipour
7015db790f
replaced all AgencyGeneralTransactions by AgencyWriteTransaction ( #3841 )
2017-11-29 17:33:24 +01:00
Max Neunhöffer
5e7bfaf24b
Improve an error message, add httpStatus and reformat. ( #3837 )
2017-11-29 11:18:49 +01:00
Kaveh Vahedipour
f7b4150b64
no clientId anymore in send/sendWithFailOver SPIs ( #3819 )
2017-11-28 10:47:36 +01:00
Jan
8ece5914a3
do not warn when the user attempts to drop a non-existing index ( #3682 )
2017-11-13 17:47:57 +01:00
Jan
7613bc4314
Bug fix/fixes 0211 ( #3568 )
...
* remove some non-unused V8 persistents
* do not throw that many bogus assertions
* do not rely on server role being defined
* slightly better debug output for V8 context debugging
* fix collection ids in inventory response
* simplify bootstrap a bit
* slightly better error handling
* make elapsed time a queryable value
* use less memory for stub collections
* added assertions that will always make sense
* added assertions
* do not garbage-collect while waiting
* less copying of parameters
* do not show "load indexes into memory" buttons for mmfiles engine
as all indexes are in memory anyway
* when a collection is truncated via the web interface, flush the WAL and rotate all active journals
this will make close all open journals on leader and followers and make them subject to compaction opportunities
* fix invalid server id values being passed from web interface to backend
* introduce afterTruncate method for indexes
* added test case for issue #3447
* updated CHANGELOG
* don't warn about replicationFactor for system collections
* check that the queries actually use the geo index and not some other index
* properly report error in web interface
* fix some internals checks that made truncate fail for bigger collections in maintainer mode
* also run a compact() operation after a serious truncate
in order to make iteration over the truncated range much faster
when the collection is next accessed
* increase default maximum number of V8 contexts to at least 16
2017-11-09 12:48:15 +01:00
Simon Grätzer
d14710b683
Updating Replication Factor ( #3528 )
...
* Changing replication factor in 3.2 (#3513 )
* Allow changing replicationFactor on coordinator
* Fixing logic
* Allowing change of replication factor
* Additional input validation
* grrr
* Testing invalid inputs
(cherry picked from commit 47600e1ea1
)
* jslint
(cherry picked from commit 4d223597db
)
* cherry-pick commits from 3.2: 47600e1ea1
4d223597db
d684eaa7f8
a898af3723
2017-10-26 15:28:05 +02:00
Simon Grätzer
7c31960cf2
Feature/async failover ( #3451 )
2017-10-18 23:59:29 +02:00
Simon Grätzer
88d01b89b5
Optimizations for Caches and Graph Traversals ( #3169 )
2017-08-31 18:33:10 +02:00
Max Neunhöffer
f3acea797b
Feature/cluster inventory version ( #3152 )
...
* Get rid of a compiler warning in community edition.
* Teach /_api/replication/clusterInventory to report Plan/Version and readiness.
This is first implemented in the ClusterInfo library.
Then the clusterInventory code uses it and checks readiness.
Readiness of a collection means that it is created and all shards
and all replications have been created and are in sync.
2017-08-30 13:34:23 +02:00
Kaveh Vahedipour
00650e6a3f
Bug fix/agency mt fixes ( #3158 )
...
* added debugging methods
* try to fix invalid access in case of error
* remove unused members
* bugfixes and comments
* all agency fixes in
* merge bug
* partially unguarded Agent::lead fixed
* all agency fixes in
* added nrBlocked to thread startup eval
* added nrBlocked to thread startup eval
* recombination of cases in State::get
* some maps replaced with unordered_maps
* optimized maps some
2017-08-30 10:43:51 +02:00
Kaveh Vahedipour
4c94a1c8ab
fixed a bug in create collection in cluster, where transaction result was not checked for success before access ( #3137 )
2017-08-28 14:58:26 +02:00
Kaveh Vahedipour
1d1e0f5a50
Feature/cluster id and extended health ( #3046 )
...
* added unique id to cluster, added access to Health
* added agents to health api
* added agents to health api
* added agents to health api
* transaction information for api
* agents listed like other servers
* missing line through merge conflict
2017-08-18 11:13:23 +02:00
Jan Christoph Uhde
ed8efe3566
Feature/issue 387 cluster index estimates ( #2866 )
2017-08-01 09:53:58 +02:00
Max Neunhöffer
2f874249bb
Bug fix/adjust agency comm timeouts ( #2765 )
...
* Take out 503 timeouts altogether.
* Overhaul of AgencyComm::sendWithFailover loop.
* Let performRequests optionally ignore 404 coll not found.
* Fix error message "database not found" when AgencyComm failed.
* Add log entries in Agency if locks are acquired too slowly.
* Reexecute the javascript cluster sync stuff even if there was no plan/current change...So failed sync jobs can retry later...
* Cover callbacks in Communicator by lock. This fixes https://github.com/arangodb/planning/issues/370
* Put in delay in waiting for leader in agency test.
* Schmutz logging to heartbeat topic.
* Add more lock time diagnostic in agent.
* Switch on agencycomm tracing in coordinator.
2017-07-13 00:44:28 +02:00
Max Neunhöffer
3d8e590bee
Adapt Raft timeouts dynamically and fix create collection timeout race
...
Various fixes.
2017-07-06 12:51:51 +02:00
Max Neunhoeffer
f1db8666ac
Catch a rare error condition in Maintainer mode.
2017-06-09 11:06:49 +02:00
Mop
619eae9be5
Revert "Squashed commit of the following:"
...
This reverts commit 2252088572
.
2017-06-01 18:37:45 +02:00
Andreas Streichardt
2252088572
Squashed commit of the following:
...
commit f3d0fd6584b0e451b8c97abcb4ba8d9f2fc6f560
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Thu Jun 1 17:31:36 2017 +0200
fix unittest
commit 7cd3544a39e1b78af9d4175cb3b978799b9bbfff
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Thu Jun 1 17:10:00 2017 +0200
Remove debug comment
commit fb6b10dac15be49a72dbff80030a7d22abdfc3e0
Merge: 055eb1d269 6b18cc64fe
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Thu Jun 1 17:00:21 2017 +0200
Merge branch 'devel' into shardorganizer
commit 055eb1d2693a583d21ea59ec8b6ba95ab0db57ac
Merge: 1ff7998ebf 8ea89b7677
Author: Mop <andreas@arangodb.com>
Date: Thu Jun 1 16:56:30 2017 +0200
Merge branch 'shardorganizer' of https://github.com/arangodb/arangodb into shardorganizer
commit 8ea89b76777c75b6a77bf695c3f074a0c4643c29
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Thu Jun 1 16:55:41 2017 +0200
Fix shardmapping bug
commit 1ff7998ebfd691598ec5b455ca5bc2bfd7020fb4
Author: Mop <andreas@arangodb.com>
Date: Wed May 31 17:26:08 2017 +0200
more output
commit 68e88aa0e14316c4929d05b2c151bee6421d754d
Merge: 0978ad1d9e 44a6a78ec3
Author: Mop <andreas@arangodb.com>
Date: Wed May 31 17:03:33 2017 +0200
Merge branch 'shardorganizer' of https://github.com/arangodb/arangodb into shardorganizer
commit 44a6a78ec338a1e7cabb15464500d96b84c68f1d
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Wed May 31 07:42:43 2017 -0700
Fix namespace
commit 0978ad1d9e2f01b86204990e74b66958f25eba66
Merge: f98582ccff d74e5989ad
Author: Mop <andreas@arangodb.com>
Date: Wed May 31 16:40:35 2017 +0200
Merge branch 'shardorganizer' of https://github.com/arangodb/arangodb into shardorganizer
commit f98582ccff3448f6c2388dab4cc2dc38034271b0
Author: Mop <andreas@arangodb.com>
Date: Wed May 31 16:39:03 2017 +0200
Revert "Revert "Next attempt at merging ShardOrganizer...distributeShardsLike fixed""
This reverts commit fed45b7b10
.
commit d74e5989ad478efe7d66d196715c05f4f41c9c29
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Wed May 31 16:31:31 2017 +0200
Make it an error
commit 0a6a9ef9464df4f24ad205bbab5b9f8ded50054f
Author: Andreas Streichardt <andreas@arangodb.com>
Date: Wed May 31 12:42:51 2017 +0200
distributeShardsLike has to be saved as a cidString
2017-06-01 17:32:40 +02:00
Alan Plum
826d42f8c7
Remove coord list hack ( #2484 )
2017-05-31 18:22:23 +02:00
Mop
fed45b7b10
Revert "Next attempt at merging ShardOrganizer...distributeShardsLike fixed"
...
This reverts commit 16329a3b01
.
2017-05-31 14:46:22 +02:00
Andreas Streichardt
16329a3b01
Next attempt at merging ShardOrganizer...distributeShardsLike fixed
2017-05-31 13:01:30 +02:00
Frank Celler
73a4203413
Revert "Implement shardorganizer...Cluster with 1 DBServer possible again"
...
This reverts commit 1b2d6dca83
.
2017-05-30 23:40:01 +02:00
Andreas Streichardt
1b2d6dca83
Implement shardorganizer...Cluster with 1 DBServer possible again
2017-05-30 20:13:00 +02:00
Andreas Streichardt
50876d0d3f
Do not look at replicationFactor while creating...just look at the plan! it is great!
2017-05-24 16:25:49 +02:00
Andreas Streichardt
b5fcd15214
Fix linter
2017-05-24 14:53:06 +02:00
Kaveh Vahedipour
74d11bf522
more verbose index find failures
2017-05-18 16:50:15 +02:00
jsteemann
8bc6b3d3a1
removed default parameters
2017-05-18 15:06:19 +02:00
Alan Plum
5d017d733c
Improve Foxx cluster resilience ( #2479 )
...
* Improve Foxx cluster resilience
Fixes #2083
Fixes #2384
Fixes #2408
Addresses #1892
* Port old Foxx API
* Implement single-file services
* Add console.errorStack/warnStack/infoStack helpers
* Simplify serviceInfo validation
* Extract github/upload logic into Aardvark and old FM API
* Move generator logic into Aardvark
* Move zip/js buffer logic into FM core
* Add Foxxmanager tests
* Send empty response when no README
* Disambiguate script arg format
Historically we allow passing an array of positional arguments or an arbitrary first argument.
This is surprising behaviour, so we should just always treat the value as a first argument.
* Rebuild bundle in development mode
* Nicer HTTP docs formatting
* Create Foxx HTTP docs
* Simplify service upload handling
* Remove inline swagger docs
* Implement public download route
* Consistency
* Rebuild aardvark
* Move bundle route into /_api/foxx/_local
* Rebuild Swagger API docs
* Add changes to CHANGELOG
* More docs
2017-05-16 17:41:29 +02:00
Andreas Streichardt
41f8185553
Add test for rolling back indexes
2017-05-15 16:49:07 +02:00
Andreas Streichardt
20c27f61ff
Remove useless debug message :S
2017-05-15 15:51:59 +02:00
Andreas Streichardt
9472ab821c
Fix rolling back of indices
2017-05-15 15:48:01 +02:00
jsteemann
68b4b2f393
fix shutdown order
2017-05-11 20:59:36 +02:00
Andreas Streichardt
b96c58a108
Show timeout when failing
2017-05-11 18:35:33 +02:00
Andreas Streichardt
f821c5b372
Fix serverAlias map...this was ridiculous
2017-05-11 14:16:19 +02:00
Kaveh Vahedipour
a007cd418c
"searching for culprit breaking ensureIndex in cluster through go driver"
2017-05-10 17:11:19 +02:00
Max Neunhoeffer
85ef2ec94c
Remove test for removed precondition.
2017-05-03 11:02:24 +02:00
Max Neunhoeffer
4090f7422b
Take out precondition in createCollectionCoordinator.
2017-05-03 10:52:01 +02:00
jsteemann
45096dd503
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2017-05-02 16:09:35 +02:00
Michael Hackstein
cf12573507
Removed code paths that wrote objectIds into the Agency. This did break replication.
2017-05-02 14:59:19 +02:00
jsteemann
910f5680b0
moved files
2017-05-02 12:34:28 +02:00
Andreas Streichardt
c47505d514
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2017-04-27 15:59:11 +02:00
Andreas Streichardt
2f6c391d9b
move useless string to where it belongs
2017-04-27 15:04:08 +02:00
Kaveh Vahedipour
0d96ba4f4b
merge from 3.1
2017-04-26 12:06:43 +02:00
Andreas Streichardt
42577df48d
remove useless variable
2017-04-26 10:07:51 +02:00
Andreas Streichardt
dad5a1429e
Add waitForSyncReplication as a _create() option
2017-04-26 09:57:40 +02:00
Kaveh Vahedipour
d88f990ad0
dropping sharding prototype collection more verbose
2017-04-25 14:17:08 +02:00
Kaveh Vahedipour
999334e366
dropping sharding prototype collection more verbose
2017-04-25 14:13:07 +02:00
Kaveh Vahedipour
bf67189d98
dropping sharding prototype collection more verbose
2017-04-25 14:11:44 +02:00
Kaveh Vahedipour
1361e5e6dd
dropping sharding prototype collection more verbose
2017-04-25 14:03:26 +02:00
Kaveh Vahedipour
f0f40b6e8d
dropping sharding prototype collection more verbose
2017-04-25 13:59:56 +02:00
jsteemann
a52a6ff21e
unused variable
2017-04-25 02:26:02 +02:00
Max Neunhoeffer
e16f9ca7c5
Add check for distributeShardsLike to dropCollectionCoordinator.
2017-04-24 23:54:07 +02:00
Kaveh Vahedipour
ccc388a940
more dictributeShardsLike code mergedfrom 3.1
2017-04-24 15:13:40 +02:00
Kaveh Vahedipour
c099c6daa9
more dictributeShardsLike code mergedfrom 3.1
2017-04-24 15:12:38 +02:00
jsteemann
0e98a32455
fix objectId handling
2017-04-06 11:19:27 +02:00
jsteemann
d9d9eaac60
fixed two cluster tests
2017-03-22 14:03:27 +01:00
jsteemann
b8e011eee5
move attributes into engine
2017-03-21 10:31:50 +01:00
Michael Hackstein
e6ab0afb50
Moved indexBuckets from Logical => MMFiles collection.
2017-03-07 14:07:32 +01:00
Michael Hackstein
31df7eb527
Fixed error in recovery for duplicate collection name
2017-03-06 17:34:54 +01:00
Michael Hackstein
df4eadac75
Replaced several specialized toVelocyPack functions of LogicalCollection by toVelocyPackIgnore(). Fixed distributeLike bug that occured through this.
2017-02-28 14:54:32 +01:00
Michael Hackstein
ae14ae99a5
Merge branch 'engine-api' of github.com:arangodb/arangodb into engine-api
2017-02-27 13:01:12 +01:00
Michael Hackstein
a884ee2bfb
Intermediate commit. Moved many toVPack functions of LogicalCollection to a unified vpack + ignore-keys alternative. This commit is used to run all tests everywhere. May be red
2017-02-27 13:01:07 +01:00
jsteemann
d0df1952e8
Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api
2017-02-24 17:51:59 +01:00
Kaveh Vahedipour
4cc830b0df
merge from 3.1
2017-02-20 20:05:52 +01:00
Jan Christoph Uhde
071137adf6
move doCompact into PhysicalColletion
2017-02-20 10:53:11 +01:00
Jan Christoph Uhde
2d5e74f7f6
move journaize() to PhysicalCollection
...
MMFilesCollection ctor might be buggy
2017-02-17 20:06:47 +01:00
Kaveh Vahedipour
51fe9fae6c
when registering callbacks fail, we should have some' to go on
2017-02-13 09:00:56 +01:00
Kaveh Vahedipour
76e5dec3d7
agent with less traffic
2017-02-10 17:03:15 +01:00
jsteemann
d024a6d00a
remove logging for non-topics
2017-02-10 09:32:50 +01:00
jsteemann
126f9a21fe
fix index ids
2017-02-01 10:39:21 +01:00
Max Neunhoeffer
f62042ef3a
Clean up code without changing behaviour.
2017-01-24 12:11:57 +01:00
Kaveh Vahedipour
fc2d36ccb1
Dealing with 412 in ClusterInfo
2017-01-20 18:58:07 +01:00
Kaveh Vahedipour
6c56f9f05c
available for use: avoidServers
2017-01-20 11:58:32 +01:00
Kaveh Vahedipour
40c6e2b48c
unobserve should not create entries in agency, if empty before
2017-01-20 08:06:27 +01:00
Max Neunhoeffer
427c8e4553
Merge branch 'devel' into schmutz-ng
2017-01-19 14:53:46 +01:00
Kaveh Vahedipour
67cd7deaaa
ClusterInfo enjoys clientIds
2017-01-19 14:51:29 +01:00
Max Neunhoeffer
370cb09d89
Merge branch 'devel' into schmutz-ng
2017-01-19 10:32:43 +01:00
Kaveh Vahedipour
819603b910
coordinator should not die in maintainer mode if bogus database entries are found in agency
2017-01-16 16:31:06 +01:00
Max Neunhoeffer
f35e3a7aaf
Merge branch 'devel' into schmutz-ng
2017-01-16 09:54:09 +01:00
Max Neunhoeffer
fe9116f7fb
More Schmutz-NG.
...
Does not trigger sync repl yet.
2017-01-12 16:33:57 +01:00
Andreas Streichardt
4458f04e46
More specific error codes for the cluster
2017-01-11 17:54:45 +01:00
Kaveh Vahedipour
fe48bcb982
fixed for short names in frontend shard view
2017-01-11 16:31:19 +01:00
Kaveh Vahedipour
f699117133
more information from ClusterInfo's dropCollectionCoordinator
2017-01-10 16:19:10 +01:00