You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2018/03/26 23:28:34 UTC
[couchdb] branch 796-update-lru-on-read-default updated (7e4fdbc ->
335bcdb)
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a change to branch 796-update-lru-on-read-default
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
omit 7e4fdbc Set update_lru_on_read=false as default
add 91f5985 Set eunit timeout on a whole test object
add b2e0e13 Merge pull request #1123 from apache/fix-create_delete_database_continuously-test
add d16f2db Make peruser database prefix configurable
add c3bc956 Remove outdated docker targets and docs (#1109)
add 4e35b36 Hide Auth information in replication document for reader - don't display credential information for user who just wants to check replication status. In basic authentication, the credential information is available in header field of doc
add 52e7cbe Decode destination header for doc copy
add 380ae69 Remove 'smartquote' from default.ini, broke the build
add 1ecf363 Make _design_docs to respect query parameters
add 92a280a Introduce new _dbs_info endpoint to get info of a list of databases
add 884db89 Merge pull request #1082 from cloudant/issue-822-all-dbs-info
add 960a6f9 Fix for issue #603 - Error 500 when creating a db below quorum
add 1c39e0c feat: add quorum tests to make check
add 7a296d2 Fix for issue #1134 clean up dev/lib before run mango tests (#1135)
add 1446e87 Remove queries for _all_docs issue 820
add 3b53c1c Merge pull request #1143 from cloudant/issue-820-remove-queries-for_all_docs
add d35f00a Simplify make dist approach
add d3a2871 feat: add ./configure --dev as alias for -c --disable-{docs,fauxton}
add c6f0208 Add config app to couch_replicator app dependencies
add 6cd62c2 Bump config to 1.0.2 for dialyzer related fixes
add 4976f49 Use callbacks for couch_event_listener behavior
add 302bd8b feat: update mochiweb to 2.17.0
add 6d959a7 Avoid unconditional retries in replicator's http client
add 0832393 Prevent chttpd multipart zombie processes
add 364ea20 Remove old rolling reboot upgrade code
add fb2b046 Add couch_db_engine module
add 8e34ce3 Add legacy storage engine implementation
add f6a7711 Implement pluggable storage engines
add d80f7df Add storage engine test suite
add 49d4194 Ensure deterministic revisions for attachments
add fdc7a26 Increase timeout for storage engine tests
add 51cb6ae Eliminate "default" Erlang platform from Jenkins CI
add 9b99722 Remove unused code for starting compactions
add 4a73d03 re-enable "flaky" test in quest to nail down #745
add 72b41c4 Implement pluggable authentication and session support for replicator
add 2c43e62 This fixes couch_bt_engine:fold_local_docs/4
add 5ef942a feat: introduce snooze_period to reduce compaction_daemon load.
add 0761b6a fix: simplify config integer get
add 58fef34 feat: bump the compaction daemon check_interval to one hour
add e5bf9d4 doc: add snooze_period doc to default.ini
add 42aba99 feat: demote view index opening/closing to log level debug
add 3bd033b Prevent access to Fauxton on node-local port (5986)
add 8898104 Fix dialyzer warning on `couch_key_tree:merge/2`
add 5218348 Fix validate_doc_update for Erlang functions
add 101f29b Use precise term comparison
add 0464c46 Switching `couch_stats_process_tracker:track/2` argument names
add e1fa0f5 Use `chttpd:send_error/2` in mango_httpd
add 087a1b2 Merge pull request #1193 from cloudant/fix-error-reporting-in-mango
add cd598d8 Add error tuple return type to replicator auth spec and callback
add ba624ea Revert "re-enable "flaky" test in quest to nail down #745"
add 817b2b6 Add bcrypt hashing option
add b58021e Introduce bin_opt_info erl_opts compilation option
add 3c26bc3 Fix dialyzer warning for couch_att:from_disk_term
add 1b21587 feat: allow eunit to run without setup or make all
add 6f294c1 fix: compaction daemon symlink resolution and log level #1097
add b05c177 Proper error handling for file:open() call
add 42c89ba fix whitespace
add f999071 style fixes as per @davisp
add 2b5cf23 Increase PSE test engine timeouts
add bb74b16 Implement format_status/2 for replication worker gen_server
add 18f8362 Bump config dependency to 1.0.3
add 36ecf92 Support queries for endpoints
add 0a477b5 Merge pull request #1222 from cloudant/issue-820-add-queries
add 95a78ce Remove _config call in couch_peruser_test
add a0c863d Merge pull request #1130 from cloudant/issue-876-remove-_config-call-in-eunit-test
add 89a727b Replace resource expensive bcrypt test with shorter version (#1231)
add 45da9f3 Validate password_scheme in user doc
add 3d702d8 Revert "Revert "re-enable "flaky" test in quest to nail down #745""
add e7c48b3 Improve 413 response handling
new 335bcdb Set update_lru_on_read=false as default
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (7e4fdbc)
\
N -- N -- N refs/heads/796-update-lru-on-read-default (335bcdb)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.gitignore | 5 +-
Jenkinsfile | 117 --
LICENSE | 117 ++
Makefile | 83 +-
Makefile.win | 18 -
NOTICE | 7 +
README-DEV.rst | 24 -
configure | 9 +
dev/run | 24 +-
rebar.config.script | 12 +-
rel/overlay/etc/default.ini | 48 +-
rel/reltool.config | 2 +
src/chttpd/src/chttpd_auth_request.erl | 4 +
src/chttpd/src/chttpd_db.erl | 63 +-
src/chttpd/src/chttpd_httpd_handlers.erl | 1 +
src/chttpd/src/chttpd_misc.erl | 35 +
src/chttpd/src/chttpd_view.erl | 16 +
.../test/chttpd_csp_tests.erl} | 11 +-
src/chttpd/test/chttpd_db_test.erl | 152 ++-
src/chttpd/test/chttpd_dbs_info_test.erl | 169 +++
src/chttpd/test/chttpd_view_test.erl | 123 ++
src/couch/.gitignore | 5 +
src/couch/include/couch_db.hrl | 5 +-
src/couch/include/couch_js_functions.hrl | 9 +
src/couch/src/couch.app.src | 1 +
src/couch/src/couch.erl | 1 +
src/couch/src/couch_att.erl | 146 ++-
src/couch/src/couch_auth_cache.erl | 16 +-
src/couch/src/couch_bt_engine.erl | 962 ++++++++++++++
.../{couch_server_int.hrl => couch_bt_engine.hrl} | 21 +-
src/couch/src/couch_bt_engine_compactor.erl | 496 ++++++++
...ch_db_header.erl => couch_bt_engine_header.erl} | 39 +-
src/couch/src/couch_bt_engine_stream.erl | 70 ++
src/couch/src/couch_changes.erl | 21 +-
src/couch/src/couch_compaction_daemon.erl | 87 +-
src/couch/src/couch_db.erl | 720 +++++------
src/couch/src/couch_db_engine.erl | 893 +++++++++++++
src/couch/src/couch_db_int.hrl | 69 +-
src/couch/src/couch_db_updater.erl | 1310 +++++---------------
src/couch/src/couch_file.erl | 40 +-
src/couch/src/couch_httpd.erl | 13 +
src/couch/src/couch_httpd_auth.erl | 12 +-
src/couch/src/couch_httpd_db.erl | 11 +-
src/couch/src/couch_httpd_misc_handlers.erl | 38 +-
src/couch/src/couch_httpd_multipart.erl | 77 +-
src/couch/src/couch_key_tree.erl | 6 +-
src/couch/src/couch_passwords.erl | 19 +-
src/couch/src/couch_query_servers.erl | 2 +-
src/couch/src/couch_server.erl | 238 +++-
src/couch/src/couch_stream.erl | 255 ++--
src/couch/src/couch_users_db.erl | 10 +-
src/couch/src/couch_util.erl | 47 +-
src/couch/src/test_engine_attachments.erl | 93 ++
src/couch/src/test_engine_compaction.erl | 185 +++
src/couch/src/test_engine_fold_changes.erl | 190 +++
src/couch/src/test_engine_fold_docs.erl | 390 ++++++
src/couch/src/test_engine_get_set_props.erl | 70 ++
src/couch/src/test_engine_open_close_delete.erl | 81 ++
src/couch/src/test_engine_purge_docs.erl | 158 +++
src/couch/src/test_engine_read_write_docs.erl | 317 +++++
src/couch/src/test_engine_ref_counting.erl | 103 ++
src/couch/src/test_engine_util.erl | 607 +++++++++
src/couch/src/test_request.erl | 10 +
src/couch/test/chttpd_endpoints_tests.erl | 1 +
.../test/couch_bt_engine_tests.erl} | 11 +-
src/couch/test/couch_db_plugin_tests.erl | 2 +-
src/couch/test/couch_db_tests.erl | 10 +-
src/couch/test/couch_passwords_tests.erl | 42 +-
src/couch/test/couch_server_tests.erl | 16 +
src/couch/test/couch_stream_tests.erl | 32 +-
src/couch/test/couchdb_compaction_daemon_tests.erl | 3 +-
src/couch/test/couchdb_vhosts_tests.erl | 25 -
src/couch/test/couchdb_views_tests.erl | 42 +-
src/couch_event/src/couch_event_listener.erl | 28 +-
src/couch_index/src/couch_index.erl | 6 +-
src/couch_index/src/couch_index_updater.erl | 6 +-
src/couch_mrview/src/couch_mrview.erl | 32 +-
src/couch_mrview/src/couch_mrview_util.erl | 15 +-
.../test/couch_mrview_local_docs_tests.erl | 6 +-
src/couch_peruser/src/couch_peruser.erl | 52 +-
src/couch_peruser/test/couch_peruser_test.erl | 73 +-
.../{src => include}/couch_replicator_api_wrap.hrl | 13 +-
src/couch_replicator/src/couch_replicator.app.src | 1 +
src/couch_replicator/src/couch_replicator.erl | 2 +-
.../src/couch_replicator_api_wrap.erl | 7 +-
src/couch_replicator/src/couch_replicator_auth.erl | 100 ++
.../src/couch_replicator_auth_noop.erl | 52 +
.../src/couch_replicator_auth_session.erl | 693 +++++++++++
.../src/couch_replicator_changes_reader.erl | 2 +-
src/couch_replicator/src/couch_replicator_docs.erl | 49 +-
.../src/couch_replicator_httpc.erl | 86 +-
src/couch_replicator/src/couch_replicator_ids.erl | 51 +-
.../src/couch_replicator_scheduler.erl | 2 +-
.../src/couch_replicator_scheduler_job.erl | 2 +-
.../src/couch_replicator_utils.erl | 90 +-
.../src/couch_replicator_worker.erl | 49 +-
.../test/couch_replicator_compact_tests.erl | 4 +-
.../test/couch_replicator_filtered_tests.erl | 4 +-
.../test/couch_replicator_missing_stubs_tests.erl | 4 +-
.../test/couch_replicator_proxy_tests.erl | 2 +-
.../test/couch_replicator_selector_tests.erl | 4 +-
...ch_replicator_small_max_request_size_target.erl | 28 +-
.../test/couch_replicator_test_helper.erl | 4 +-
.../couch_replicator_use_checkpoints_tests.erl | 4 +-
.../src/couch_stats_process_tracker.erl | 4 +-
src/fabric/src/fabric_db_create.erl | 33 +-
src/fabric/src/fabric_rpc.erl | 9 +-
src/mango/src/mango_httpd.erl | 2 +-
src/mem3/include/mem3.hrl | 6 +-
src/mem3/src/mem3.erl | 19 +-
src/mem3/src/mem3_nodes.erl | 3 +-
src/mem3/src/mem3_rep.erl | 13 +-
src/mem3/src/mem3_shards.erl | 61 +-
src/mem3/src/mem3_util.erl | 17 +-
src/mem3/test/mem3_util_test.erl | 16 +-
test/javascript/run | 16 +-
.../tests-cluster/with-quorum/db-creation.js | 26 +-
.../without-quorum/db-creation.js} | 28 +-
test/javascript/tests/basics.js | 2 +-
test/javascript/tests/design_docs_query.js | 154 +++
test/javascript/tests/users_db_security.js | 144 ++-
121 files changed, 8608 insertions(+), 2483 deletions(-)
rename src/{couch/test/couchdb_csp_tests.erl => chttpd/test/chttpd_csp_tests.erl} (90%)
create mode 100644 src/chttpd/test/chttpd_dbs_info_test.erl
create mode 100644 src/chttpd/test/chttpd_view_test.erl
create mode 100644 src/couch/src/couch_bt_engine.erl
copy src/couch/src/{couch_server_int.hrl => couch_bt_engine.hrl} (77%)
create mode 100644 src/couch/src/couch_bt_engine_compactor.erl
copy src/couch/src/{couch_db_header.erl => couch_bt_engine_header.erl} (92%)
create mode 100644 src/couch/src/couch_bt_engine_stream.erl
create mode 100644 src/couch/src/couch_db_engine.erl
create mode 100644 src/couch/src/test_engine_attachments.erl
create mode 100644 src/couch/src/test_engine_compaction.erl
create mode 100644 src/couch/src/test_engine_fold_changes.erl
create mode 100644 src/couch/src/test_engine_fold_docs.erl
create mode 100644 src/couch/src/test_engine_get_set_props.erl
create mode 100644 src/couch/src/test_engine_open_close_delete.erl
create mode 100644 src/couch/src/test_engine_purge_docs.erl
create mode 100644 src/couch/src/test_engine_read_write_docs.erl
create mode 100644 src/couch/src/test_engine_ref_counting.erl
create mode 100644 src/couch/src/test_engine_util.erl
copy src/{ddoc_cache/test/ddoc_cache_ev.erl => couch/test/couch_bt_engine_tests.erl} (77%)
rename src/couch_replicator/{src => include}/couch_replicator_api_wrap.hrl (86%)
create mode 100644 src/couch_replicator/src/couch_replicator_auth.erl
create mode 100644 src/couch_replicator/src/couch_replicator_auth_noop.erl
create mode 100644 src/couch_replicator/src/couch_replicator_auth_session.erl
copy share/server/validate.js => test/javascript/tests-cluster/with-quorum/db-creation.js (59%)
copy test/javascript/{tests/large_docs.js => tests-cluster/without-quorum/db-creation.js} (56%)
create mode 100644 test/javascript/tests/design_docs_query.js
--
To stop receiving notification emails like this one, please contact
wohali@apache.org.
[couchdb] 01/01: Set update_lru_on_read=false as default
Posted by wo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch 796-update-lru-on-read-default
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 335bcdbca5e3efa737e7721c552a38a027910102
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Fri Jan 19 15:22:23 2018 -0500
Set update_lru_on_read=false as default
---
rel/overlay/etc/default.ini | 7 +++++--
src/couch/src/couch_server.erl | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index df43877..103a6eb 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -32,7 +32,6 @@ default_security = admin_local
; btree_chunk_size = 1279
; maintenance_mode = false
; stem_interactive_updates = true
-; update_lru_on_read = true
; uri_file =
; The speed of processing the _changes feed with doc_ids filter can be
; influenced directly with this setting - increase for faster processing at the
@@ -49,9 +48,13 @@ changes_doc_ids_optimization_threshold = 100
; applied conservatively. For example 1.0e+16 could be encoded as 1e16, so 4 used
; for size calculation instead of 7.
;max_document_size = 4294967296 ; bytes
-
+;
; Maximum attachment size.
; max_attachment_size = infinity
+;
+; Do not update the least recently used DB cache on reads, only writes
+;update_lru_on_read = false
+;
; The default storage engine to use when creating databases
; is set as a key into the [couchdb_engines] section.
default_engine = couch
diff --git a/src/couch/src/couch_server.erl b/src/couch/src/couch_server.erl
index ff1bf9e..05af0ed 100644
--- a/src/couch/src/couch_server.erl
+++ b/src/couch/src/couch_server.erl
@@ -223,7 +223,7 @@ init([]) ->
MaxDbsOpen = list_to_integer(
config:get("couchdb", "max_dbs_open", integer_to_list(?MAX_DBS_OPEN))),
UpdateLruOnRead =
- config:get("couchdb", "update_lru_on_read", "true") =:= "true",
+ config:get("couchdb", "update_lru_on_read", "false") =:= "true",
ok = config:listen_for_changes(?MODULE, nil),
ok = couch_file:init_delete_dir(RootDir),
hash_admin_passwords(),
--
To stop receiving notification emails like this one, please contact
wohali@apache.org.