summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* remove mention of os daemons and externals in ini filesremove-update-notification-configJan Lehnardt2018-05-162-37/+1
|
* Add SSL session_lifetime limit for ibrowse pidsJoan Touzet2018-05-101-0/+3
|
* Bump fauxton to fix CI buildsJoan Touzet2018-05-021-1/+1
|
* Force use of SMP enabled BEAM VM, fixes #1296Joan Touzet2018-04-301-0/+3
|
* Fix length badarg error in mp parserNick Vatamaniuc2018-04-171-1/+2
| | | | | | | | This was introduced in: https://github.com/apache/couchdb/commit/083239353e919e897b97e8a96ee07cb42ca4eccd Issue #1286
* Fix mem3 tests (#1285)Eric Avdey2018-04-174-93/+36
| | | | | | | | | | | | | | | | The changes listener started in setup of mem3_shards test was crashing when tried to register on unstarted couch_event server, so the test was either fast enough to do assertions before of that or failed on dead listener process. This change removes dependency on mocking and uses a standard test_util's star and stop of couch. Module start moved into the test body to avoid masking potential failure in a setup. Also the tests mem3_sync_security_test and mem3_util_test been modified to avoid setup and teardown side effects.
* Document enable_database_recovery ini optionJoan Touzet2018-04-131-0/+6
|
* Merge pull request #1273 from cloudant/adopt-fake_db-to-PSEEric Avdey2018-04-131-2/+24
|\ | | | | Adopt fake_db to PSE changes
| * Adopt fake_db to PSE changesEric Avdey2018-04-131-2/+24
|/ | | | | | | | | | With db headers moved into engine's state, any fake_db call, that's trying to setup sequences for tests (e.g. in mem3_shards) crashing with context setup failed. It's not trivial to compose a proper `engine` field outside of couch app, so instead this fix makes fake_db to set engine transparently, unless it was provided in a payload.
* In _scheduler/docs fix `crashing` state showing as `pending` sometimesNick Vatamaniuc2018-04-121-4/+78
| | | | | | | | | | | | | | | | | | | | | Replication jobs are backed off based on the number of consecutive crashes, that is, we count the number of crashes in a row and then penalize jobs with an exponential wait based that number. After a job runs without crashing for 2 minutes, we consider it healthy and stop going back in its history and looking for crashes. Previously a job's state was set to `crashing` only if there were any consecutive errors. So it could have ran for 3 minutes, then user deletes the source database, job crashes and stops. Until it runs again the state would have been shown as `pending`. For internal accounting purposes that's correct but it is confusing for the user because the last event in its history is a crash. This commit makes sure that if the last even in job's history is a crash user will see the jobs as `crashing` with the respective crash reason. The scheduling algorithm didn't change. Fixes #1276
* Merge pull request #1281 from apache/commit_data_pseRobert Newson2018-04-121-8/+9
|\ | | | | call commit_data where needed
| * call commit_data where neededRobert Newson2018-04-121-8/+9
|/ | | | Regression since introduction of PSE
* Set update_lru_on_read=false as defaultJoan Touzet2018-04-102-3/+6
|
* Minor documentation cleanup for couch_replicatorKyle Snavely2018-04-091-20/+21
|
* Switch to using a mirrored triq dependencyNick Vatamaniuc2018-04-091-2/+1
|
* Do not drop updated httpdb record after auth headers are updatedNick Vatamaniuc2018-04-061-4/+4
| | | | | | | | | | In replicator, after client auth plugin updates headers it could also update its private context. Make sure to pass the updated httpdb record along to response processing code. For example, session plugin updates the epoch number in its context, and it needs the epoch number later in response processing to make the decision whether to refresh the cookie or not.
* Kill fabric attachment receiver when middleman times outNick Vatamaniuc2018-04-041-2/+3
| | | | | | | | Attachment receiver process is started with a plain spawn. If middleman process dies, receiver would hang forever waiting on receive. After a long enough time quite a few of these receiver processes could accumulate on a server. Fixes #1264
* Key tree property testsNick Vatamaniuc2018-04-035-4/+537
| | | | | | | | | | | | | | | | Key tree module is a candidate to use property tests on as it mostly deals with manipulating a single data structure and functions are referentially transparent, that is, they aren't many side-effects like IO for example. The test consists of two main parts - generators and properties. Generators generate random input, for example revision trees, and properties check that certain properties hold, for example that after stemming all the leaves are still present in the revtree. To run the test: make eunit apps=couch suites=couch_key_tree_prop_tests
* Fix typo in node local _replicate handlerNick Vatamaniuc2018-04-021-1/+1
| | | | | | | | | | | | | Dialyzer run discovered: ``` Unknown function couch_replicator_httpd_utils:validate_rep_props/1 ``` Indeed, the function should be ``` couch_replicator_httpd_util:validate_rep_props/1 ```
* fix file_compression value descriptionSerge A. Salamanka2018-04-021-1/+1
| | | deflate_N value is more clear description and obvious to replace only N. the same description is in documentation.
* Test compaction resumption after errorPaul J. Davis2018-03-291-0/+130
|
* Fix compaction resumption for the BT enginePaul J. Davis2018-03-292-1/+2
| | | | | | | | | | | | This bug prevents the proper resumption of compactions that died during the meta copy phase. The issue is that we were setting the update_seq but not copying over the id and seq tree states. Thus when compaction resumed from the bad files we'd end up skipping the part where we copy docs over and then think everything was finished. Thus completely clearing a database of its contents. Luckily this isn't release code and as such should have fairly minimal impact other than those who might be running off master.
* Make loginUser wait for successful authenticationEric Avdey2018-03-291-2/+7
|
* Fix killing of OS processesPaul J. Davis2018-03-281-1/+0
| | | | | | This was a latent bad merge that failed to remove the duplicate receive statement. This ended up discarding the monitor's 'DOWN' message which leads to an infinite loop in couch_os_proces:killer/1.
* Fix shard substitution in changes feedsPaul J. Davis2018-03-281-3/+1
|
* feat: add debug log output for shard open errorsJan Lehnardt2018-03-281-1/+3
|
* add test covering loading admins from configJan Lehnardt2018-03-281-1/+15
|
* fix: more reliable password scheme testsJan Lehnardt2018-03-282-3/+34
| | | | | | | | Closes #1238 1. log errors from waitForSuccess 2. log errors in testFun() 3. spinloop replaces arbitrary wait timeout
* Fix couch peruser test suite (#1247)Eric Avdey2018-03-281-74/+65
| | | | | | | | | | | | | | * Fix binary optimization warning * Use proper config delete in couch_peruser_test * Fix weird spacing * Use test_util's wait in tests instead of custom one * Remove obsolete constant * Make get_security to wait for proper sec object
* Merge pull request #1240 from apache/cleanupJoan Touzet2018-03-276-320/+8
|\ | | | | Various top-level directory cleanups
| * Various top-level directory cleanupsJoan Touzet2018-03-276-320/+8
|/ | | | | | | * Replace list of committers with link to ASF page showing committer list * Move introspect escript to build-aux/, update Makefiles to match * Remove unmaintained Vagrantfile, if a new maintainer steps up we can revisit * Remove obsolete license.skip file, was used for auto-header insertion
* Merge pull request #1242 from apache/daemon-spacesJoan Touzet2018-03-271-1/+1
|\ | | | | Allow couch_os_daemons to live in directories with spaces
| * Merge branch 'master' into daemon-spacesdaemon-spacesJoan Touzet2018-03-2715-3/+1196
| |\ | |/ |/|
* | Merge pull request #1243 from apache/import-setup-againJoan Touzet2018-03-2715-3/+1196
|\ \ | | | | | | Import couchdb-setup application
| * | Update rebar.config for local src/setupimport-setup-againJoan Touzet2018-03-272-3/+2
| | |
| * | Import couchdb-setupJoan Touzet2018-03-2713-0/+1194
| |\ \ |/ / /
| * | Merge branch 'fix/node-count' of https://github.com/apache/couchdb-setupJoan Touzet2017-07-301-1/+3
| |\ \
| | * | fix: make sure cluster setups do not exceed n=3 by defaultJan Lehnardt2017-07-301-1/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Single node setups want an n=1 setting, but that is the only time the number of nodes and the number of replicas is linked. In larger clusters, the values should not be the same. This patch ensures that for clusters >3 nodes, we do not have to tell the users to set node_count to 3 in the _cluster_setup API. More context for this in https://issues.apache.org/jira/browse/COUCHDB-2594
| * | Merge branch '593-setup-single-node' of https://github.com/apache/couchdb-setupJoan Touzet2017-07-165-44/+165
| |\ \
| | * | chore: better log outputJan Lehnardt2017-07-161-1/+1
| | | |
| | * | chore: whitespaceJan Lehnardt2017-07-161-1/+1
| | | |
| | * | fix typo/compilation errorJan Lehnardt2017-07-161-1/+1
| | | |
| | * | address comments from rnewsonJoan Touzet2017-07-112-52/+40
| | | |
| | * | Add new enable_single_node action for cluster_setup endpointJoan Touzet2017-07-104-21/+143
| | | |
| | * | Add support for new ensure_dbs_exist option to GET, POST/finish_clusterJoan Touzet2017-07-103-12/+23
| |/ / | | | | | | | | | Addresses apache/couchdb:593
| * | Merge remote-tracking branch 'asf/salt-distribution'Jan Lehnardt2017-06-032-12/+12
| |\ \ | | | | | | | | | | | | | | | | * asf/salt-distribution: fix cluster setup: use same admin pq salt on all nodes
| | * | fix cluster setup: use same admin pq salt on all nodesJan Lehnardt2017-05-202-12/+12
| | | |
| * | | Merge remote-tracking branch 'adrienverge/COUCHDB-3119'Jan Lehnardt2017-06-035-8/+10
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * adrienverge/COUCHDB-3119: add_node: Don't fail if node name != "couchdb" or "node1"
| | * | | add_node: Don't fail if node name != "couchdb" or "node1"Adrien Vergé2016-09-015-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding nodes to a cluster fails if the node names (the `name` of `name@hostname` in vm.args) is different from "couchdb". The code currently infers this name from the port: "node1" if 15984, "node2" if 25984, "node3" if 35984, "couchdb" otherwise. No other possibility. This is not suited for a production set-up, where multiple servers could have different names. This patch fixes this problem by adding an optional "name" option to the "add_node" command: POST /_cluster_setup { "action": "add_node", "username": "root", "password": "******", "host": "production-server.com", "port": 5984, "name": "node5" } This fixes: COUCHDB-3119
| * | | | Fixed some minor errors in the documentation.Guillaume Belrose2017-06-031-47/+50
| | | | |