summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Handle possibly missing local _users db in mem3_sync:local_dbs()fix-seedlist-when-usersdb-not-created-masterNick Vatamaniuc2020-02-172-3/+20
| | | | | | After commit 27bb45043435828915bdcbdc130b685e5533bbd8 local _users is only created the first time it is used. So in most case it's expected to not exist. Update local_dbs to return it only if it is actually created.
* Reset if we don't get a view headerRobert Newson2020-02-171-0/+6
| | | | | | | | I found a .view file with a db_header in production (cause unknown but I'm hoping it's manual intervention). This patch means we'll reset the index if we find something other than a view header when looking for one.
* Expose `couch_util:decode/2` to support jiffy optionsJay Doane2020-02-162-2/+12
| | | | | | | | | It can be desirable in some cases for decoded JSON to e.g. return maps instead of the default data structure, which is not currently possible. This exposes a new function `couch_util:decode/2`, the second parameter being a list of options passed to `jiffy:decode/2`.
* Bump SM to 60 on Centos 8 (#2544)Joan Touzet2020-02-131-1/+1
|
* Port reduce_false.js and reduce_builtin.js to Elixir (#2541)Leonardo Pires2020-02-133-2/+334
| | | | Port reduce_false.js and reduce_builtin.js to Elixir
* Fix Windows build (#2534)3.0.0-RC1Joan Touzet2020-02-0811-54/+80
| | | | | | | | | | | | | | | | | | | | * Allows `configure.ps1` to correctly pull and build `rebar` on Windows * Removes the static declarations in `rebar.config.script` on specific, pre-determined paths to various includes/libraries necessary for NIFs and external binaries (expectation is these are passed in env vars INCLUDE, LIB and LIBPATH) * fixes the SM60 `couchjs` build by telling `windows.h` not to redefine min and max as macros through a `#define` * fixes the `make eunit` target on Windows * Adds the missing `EXE_LINK_CXX_TEMPLATE` that our rebar doesn't have, but `enc` has today, which is also causing a failed `couchjs` (C++) build on Windows * Causes `make python-black` to correctly cause failure in `make check` if it finds problems * fixes Mango tests on Python 3.8 by bumping the hypothesis dependency * fixes one Elixir test on Windows (incorrect calculation of `now(:ms)` due to Erlang clock precision difference) * a little bit of python black cleanup (mango tests)
* bump docs repo (#2529)Joan Touzet2020-02-071-1/+1
|
* Fix race condition in couch_replicator_clustering eunit setupNick Vatamaniuc2020-02-071-1/+15
| | | | | | | | | Observed on FreeBSD Jenkins test runner: ``` function couch_replicator_clustering:setup/0 (src/couch_replicator_clustering.erl, line 257) **error:{badmatch,{error,{already_started,<0.3165.0>}}} in module 'couch_replicator_clustering' ```
* Force OOM errorPaul J. Davis2020-02-071-6/+18
| | | | | | This changes the couchjs OOM test so that it will trigger more reliably on SpiderMonkey 60. It appears that newer SpiderMonkeys are better at conserving memory usage which takes this test longer to trigger.
* Fix test failure in view_errors.jsPaul J. Davis2020-02-071-2/+7
|
* Update to Jiffy 1.0.3Paul J. Davis2020-02-071-1/+1
| | | | This fixes builds on Windows and CentOS.
* Simplify couch_auth_cacheNick Vatamaniuc2020-02-065-384/+45
| | | | | | | | | | Since the backend port is closed by default, remove the cache service since it was shown to cause monitor leaks, and it just consumes resources running in the background when almost nobody uses it. The few utility scripts that might use the backend port can just get the auth docs directly from the db. Issue: https://github.com/apache/couchdb/issues/2493
* Makefile parity; remove [un]install tgts (#2512)Joan Touzet2020-02-062-108/+70
|
* Add a warning about Erlang VM versions where high priority flag won't workNick Vatamaniuc2020-02-051-2/+2
|
* Merge pull request #2521 from apache/fix-2520Robert Newson2020-02-052-1/+2
|\ | | | | Fix highlight_post_tag parsing from json request body
| * log thingRobert Newson2020-02-051-0/+1
| |
| * Fix highlight_post_tag parsing from json request bodyfix-2520Robert Newson2020-02-051-1/+1
|/ | | | Fixes #2520
* Fix dev/run --with-admin-party-please (#2516)Robert Newson2020-02-041-0/+1
|
* Return mango warnings as a delimited stringWill Holley2020-02-033-6/+6
| | | | | | | The CouchDB API defines the warning field returned by _find to be a string (and this is what Fauxton expects). 5d55e289 was missing a string conversion and returned the warning(s) as an array. This restores the intended behaviour.
* Add recon for user convenience (#2511)Joan Touzet2020-02-015-3/+45
|
* Enable per-view-shard accessJoan Touzet2020-02-011-2/+8
|
* Fix attachment reading from _node/_local shardsNick Vatamaniuc2020-02-012-0/+8
| | | | It just needed a few clauses in send and recv_loop it turns out.
* Fix node-specific shard access via HTTPJoan Touzet2020-02-011-1/+1
|
* Jiffy exceptions are errors nowPaul J. Davis2020-01-311-1/+1
| | | | | Jiffy changed its exception type in 1.0 to match the standard Erlang style for exceptions that cross an API boundary.
* Update dependencies for 3.0Paul J. Davis2020-01-311-2/+2
| | | | | * b64url 1.0.1 -> 1.0.2 * jiffy CouchDB-0.14.11-2 -> CouchDB-1.0.1-1
* Stop propagating RC tags into dist archive (#2506)Joan Touzet2020-01-312-39/+43
|
* python-black style cleanup (#2505)Joan Touzet2020-01-312-3/+3
|
* fix: re-allow spaces in startup paths (#2504)Jan Lehnardt2020-01-312-10/+10
|
* Setup wizard: do not create _global_changes (#2497)Joan Touzet2020-01-291-1/+1
|
* Fix ini file setting for #2296 (#2463)Joan Touzet2020-01-291-2/+3
|
* bump ets_lru, khash revs (#2491)Joan Touzet2020-01-282-2/+3
|
* quote strings for all text values (#2486)Tony Sun2020-01-273-1/+21
| | | | | | | | | | | | When a user issues a range query $lt, $lte, $gt, $gte for text indexes, the query is translated into a MIN, MAX range query against clouseau. If not quoted, an error occurs: {"error":"text_search_error","reason":"Cannot parse '(a_3astring:[\"\" TO string\\ containing\\ space})'..} This is because the string is broken up into 3 tokens which the parser cannot parse. If we add quotes to the string, the the range query works correctly.
* Jenkins: bump Erlang versions (#2492)Joan Touzet2020-01-262-18/+18
|
* Revert prio flag in default.ini (#2488)Joan Touzet2020-01-251-3/+5
|
* Revert default priority change for couch_server (#2487)Joan Touzet2020-01-251-1/+1
|
* Remove reduntant get_ring_opts call in in dreyfus_fabric_searchNick Vatamaniuc2020-01-231-1/+0
| | | | | Previously we erroneously got ring opts before and after figuring out live shards if some shards were not live there was a badmatch failure.
* Update couchdb-config to 2.1.7Will Holley2020-01-231-1/+1
|
* Fix misspelling in dreyfusNick Vatamaniuc2020-01-221-1/+1
| | | | dreyful -> dreyfus
* Python black cleanups (#2477)Joan Touzet2020-01-213-2/+6
|
* Enable building on Power (ppc64le) architecture (#2455)Paul J. Davis2020-01-211-0/+43
| | | | Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* Replace Triq with PropErNick Vatamaniuc2020-01-217-28/+90
| | | | | | | | It was already used in the IOQ2 work so all the plumbing to pull it in during dev testing was there and it seems awkward to have two different property testing framework for just a few tests. It is still an optional component and is not included in the release.
* Add POST /_node/<node>/_config/_reloadWill Holley2020-01-212-0/+17
| | | | | | Using the backend port 5986 it was possible to reload config from disk using the _config/_reload endpoint. This ports it to the _node API on the frontend cluster port.
* Log clustered URIs at startupWill Holley2020-01-211-1/+1
| | | | | | | Changes the URI logged at startup to report the address(es) that `chttpd` is bound to rather than `httpd`. Previously it was a bit confusing that it always reported that Couch had started on port 5986 which is deprecated and not intended to be user-facing.
* Merge pull request #2473 from apache/infinite-loop-authRobert Newson2020-01-202-8/+5
|\ | | | | Fix infinite loop in default_authentication_handler
| * Fix infinite loop in default_authentication_handlerinfinite-loop-authRobert Newson2020-01-202-8/+5
|/
* [Jenkins] Try to cleanup hung beam.smp (FreeBSD) (#2468)Joan Touzet2020-01-181-1/+2
|
* Port etags tests to elixirJuanjo Rodriguez2020-01-174-9/+170
| | | | Fixes #2464
* Merge pull request #2466 from apache/mango_index_consistency_errorPeng Hui Jiang2020-01-181-0/+4
|\ | | | | Handle not_found atom in mango text indexes
| * Handle not_found docs in mango text indexesarchive/mango_index_consistency_errormango_index_consistency_errorWill Holley2020-01-171-0/+4
|/ | | | | | mango_cursor_text:get_json_docs may return a not_found atom instead of a Doc. In this case, we should just ignore the hit instead of attempting to evaluate it against a mango selector.
* Add a few missing settings to the default.ini fileNick Vatamaniuc2020-01-171-0/+17
| | | | | | Some rexi and reshard parameters Issue: https://github.com/apache/couchdb/issues/2457