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/04/09 16:10:50 UTC
[couchdb] branch 796-update-lru-on-read-default updated (335bcdb ->
794e9d1)
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 335bcdb Set update_lru_on_read=false as default
add f0887c1 Allow couch_os_daemons to live in directories with spaces
add 7bfdedb Fix DB-specific compaction configuration (#1059)
add 6f987ae Merge branch 'master' into daemon-spaces
add f28d896 make it so
add 3621725 add bootstrap
add 0f559a9 add ignore
add 58c4948 add http stub
add e8c4966 add basic action handling
add a5213f7 add Apache License stanza everywhere
add 404692f add the plan to readme
add ecf310a add note about skipping a step if the node is already setup
add 38eaa88 add delete_node API
add 9f1fa23 hack for storing erlang cookie value on new nodes
add 068bdf1 add action hints
add 94eab12 add license
add 3ad82e5 remove leftover
add 317e5a4 formatting
add 0145bae formatting & clarification
add bc41677 mroe formatting
add 277ca66 wip: implement setup handling
add 92da54e wip: full receive feature, setup now works yay
add fc39fab add simple test script
add 354647b add finish cluster routine
add 7c6c3bb add some more testing
add 4c423e6 s/_cassim/cassim/ for the time being
add 7528f5b add license header
add 0a676fc add testing instructions to readme
add 3304add hash admin passwords, more resilient port parsing
add 14e0374 handle GET cluster state
add 9c3eb0a show cluster finished state
add be52f7e R14 compatibility
add 9728b34 Remove error-handling clause
add cd7d0ec Fix LICENSE indention
add deeb073 Rename cassim db to _metadata
add 127e85a Use _nodes db
add 372dd8b fix tests
add ecb601b Create _global_changes database on cluster setup
add 616789b cluster_enable: add remote_node feature
add f4fd3fa whitespace fix
add aa17a55 use couch_log instead of io:format
add 5c0e927 Use dynamic handlers
add ff19be1 add catch-all clause for url_handler
add bdb8a0c configure the right http interface
add 647ffbc fix enable_cluster_http for admin-party clusters
add fb61c04 Update to new couch_epi API
add d0a9b72 Pass supervisor's children to couch_epi
add 747144e Return HTTP 200 on GET
add b9e1f3b Return HTTP 405 for unsupported request method
add e8d1e32 feat: cassim is off for now
add 75a7682 require nodecount on setup
add dd68945 use config:setineger/3
add b107042 fix wording
add 401d776 Merge remote-tracking branch 'robertkowalski/2594-2598-number-of-nodes'
add 2590fbc Fixed some minor errors in the documentation.
add d75693e add_node: Don't fail if node name != "couchdb" or "node1"
add b2b93c1 Merge remote-tracking branch 'adrienverge/COUCHDB-3119'
add 54623ce fix cluster setup: use same admin pq salt on all nodes
add c38d7aa Merge remote-tracking branch 'asf/salt-distribution'
add 18314a6 Add support for new ensure_dbs_exist option to GET, POST/finish_cluster
add 92dd9d1 Add new enable_single_node action for cluster_setup endpoint
add e153d48 address comments from rnewson
add d61381a fix typo/compilation error
add 942c665 chore: whitespace
add 4b90eca chore: better log output
add 4d9bd58 Merge branch '593-setup-single-node' of https://github.com/apache/couchdb-setup
add 68545af fix: make sure cluster setups do not exceed n=3 by default
add 9fd7f44 Merge branch 'fix/node-count' of https://github.com/apache/couchdb-setup
add 2f725d9 Import couchdb-setup
add e282d70 Update rebar.config for local src/setup
add 1a040a4 Merge pull request #1243 from apache/import-setup-again
add b163663 Merge branch 'master' into daemon-spaces
add c300673 Merge pull request #1242 from apache/daemon-spaces
add 266c56b Various top-level directory cleanups
add 25de7b5 Merge pull request #1240 from apache/cleanup
add 0e1cdef Fix couch peruser test suite (#1247)
add 0074b4f fix: more reliable password scheme tests
add f6fc285 add test covering loading admins from config
add fe1ce42 feat: add debug log output for shard open errors
add 99a64b2 Fix shard substitution in changes feeds
add 790783e Fix killing of OS processes
add 6ffe042 Make loginUser wait for successful authentication
add 455d634 Fix compaction resumption for the BT engine
add b52683c Test compaction resumption after error
add 8f38625 fix file_compression value description
add 948a131 Fix typo in node local _replicate handler
add 02c9429 Key tree property tests
add 0e92688 Kill fabric attachment receiver when middleman times out
add a0dd946 Do not drop updated httpdb record after auth headers are updated
new 794e9d1 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 (335bcdb)
\
N -- N -- N refs/heads/796-update-lru-on-read-default (794e9d1)
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 | 2 +-
COMMITTERS.md | 51 +-
Makefile | 4 +-
Makefile.win | 4 +-
Vagrantfile | 69 ---
introspect => build-aux/introspect | 0
license.skip | 204 --------
rebar.config.script | 9 +-
rel/overlay/etc/default.ini | 2 +-
src/couch/src/couch_bt_engine.erl | 1 +
src/couch/src/couch_bt_engine_compactor.erl | 2 +-
src/couch/src/couch_compaction_daemon.erl | 18 +-
src/couch/src/couch_os_daemons.erl | 2 +-
src/couch/src/couch_os_process.erl | 1 -
src/couch/test/couch_auth_cache_tests.erl | 16 +-
src/couch/test/couch_bt_engine_compactor_tests.erl | 130 +++++
src/couch/test/couch_key_tree_prop_tests.erl | 531 +++++++++++++++++++++
src/couch_peruser/test/couch_peruser_test.erl | 139 +++---
.../src/couch_replicator_httpc.erl | 8 +-
.../src/couch_replicator_httpd.erl | 2 +-
src/fabric/src/fabric_doc_attachments.erl | 5 +-
src/fabric/src/fabric_util.erl | 4 +-
src/mem3/src/mem3_rep.erl | 4 +-
src/setup/.gitignore | 4 +
src/{global_changes => setup}/LICENSE | 0
src/setup/README.md | 193 ++++++++
.../src/setup.app.src} | 15 +-
src/setup/src/setup.erl | 289 +++++++++++
.../couch_epi_app.erl => setup/src/setup_app.erl} | 11 +-
.../src/mem3_epi.erl => setup/src/setup_epi.erl} | 7 +-
src/setup/src/setup_httpd.erl | 169 +++++++
.../src/setup_httpd_handlers.erl} | 3 +-
.../src/setup_sup.erl} | 19 +-
src/setup/test/t-frontend-setup.sh | 63 +++
src/setup/test/t-single-node.sh | 46 ++
src/setup/test/t.sh | 63 +++
test/javascript/couch_test_runner.js | 4 +-
test/javascript/tests/users_db_security.js | 42 +-
38 files changed, 1690 insertions(+), 446 deletions(-)
delete mode 100644 Vagrantfile
rename introspect => build-aux/introspect (100%)
delete mode 100644 license.skip
create mode 100644 src/couch/test/couch_bt_engine_compactor_tests.erl
create mode 100644 src/couch/test/couch_key_tree_prop_tests.erl
create mode 100644 src/setup/.gitignore
copy src/{global_changes => setup}/LICENSE (100%)
create mode 100644 src/setup/README.md
copy src/{couch_plugins/src/couch_plugins.app.src => setup/src/setup.app.src} (71%)
create mode 100644 src/setup/src/setup.erl
copy src/{couch_epi/src/couch_epi_app.erl => setup/src/setup_app.erl} (69%)
copy src/{mem3/src/mem3_epi.erl => setup/src/setup_epi.erl} (91%)
create mode 100644 src/setup/src/setup_httpd.erl
copy src/{couch/src/couch_httpd_handlers.erl => setup/src/setup_httpd_handlers.erl} (86%)
copy src/{couch_peruser/src/couch_peruser_sup.erl => setup/src/setup_sup.erl} (57%)
create mode 100755 src/setup/test/t-frontend-setup.sh
create mode 100755 src/setup/test/t-single-node.sh
create mode 100755 src/setup/test/t.sh
--
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 794e9d1aca1d4a5bbe119a982133b3746b9eaca0
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 74087ea..66ade00 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.