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/07/24 05:24:20 UTC
[couchdb-documentation] branch 2.2.0-release-notes updated:
Near-complete release notes for 2.2.0
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch 2.2.0-release-notes
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
The following commit(s) were added to refs/heads/2.2.0-release-notes by this push:
new fe0117d Near-complete release notes for 2.2.0
fe0117d is described below
commit fe0117dd82a30aaf7e8a7456c0efbe1ab13e9e48
Author: Joan Touzet <wo...@atypical.net>
AuthorDate: Tue Jul 24 01:24:09 2018 -0400
Near-complete release notes for 2.2.0
---
src/whatsnew/2.2.rst | 128 +++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 119 insertions(+), 9 deletions(-)
diff --git a/src/whatsnew/2.2.rst b/src/whatsnew/2.2.rst
index bea41b1..9de2fe4 100644
--- a/src/whatsnew/2.2.rst
+++ b/src/whatsnew/2.2.rst
@@ -27,6 +27,9 @@ Upgrade Notes
.. rst-class:: open
+* The minimum supported version of Erlang is now R17, not 16B03. Support for Erlang 21
+ is still ongoing and will be provided in a future release.
+
* TODO WORDING: Recommend increasing PBKDF2 / bcrypt work factor and auth_plugins to
couch_replicator_auth_session,couch_replicator_auth_noop. Do not do this, if an older
version of CouchDB is replicating TO this instance/cluster. Replicating FROM older
@@ -50,12 +53,29 @@ Upgrade Notes
regularly act as replication clients to use this new feature, which is enabled by
default (:ghissue:`1462`).
+* :ghissue:`1118`: The least recently used (LRU) cache of databases is now only updated
+ on database write, not read. This has lead to significant performance enhancements
+ on very busy clusters. To restore the previous behaviour, your local ini file can
+ contain the block ``[couchdb] update_lru_on_read = true``.
+
+* :ghissue:`1283`: The ``[couchdb] enable_database_recovery`` feature, which only
+ soft-deletes databases in response to a ``DELETE /{db}`` call, is now documented in
+ ``default.ini``.
+
+* :ghissue:`1330`: CouchDB externals and OS daemons are now officially deprecated and no
+ longer documented. Support for these features will be completely removed in a future
+ release of CouchDB (probably 3.0.0).
+
+* :ghissue:`1436`: CouchDB proxy authentication now uses a proper ``chttpd_auth``
+ module, simplifying configuration in local ini files. While this is not a backward-
+ compatible breaking change, it is best to update your local ini files to reference the
+ new ``{chttpd_auth, proxy_authentication_handler}`` handler rather than the
+ ``couch_httpd_auth`` version, as ``couch_httpd`` is in the process of being deprecated
+ completely.
+
Version 2.2.0
=============
-Features
---------
-
.. rst-class:: open
* Much improved documentation. Highlights include:
@@ -93,6 +113,12 @@ Features
a TCP reset, and to give the client a better chance of parsing the 413 response. In
tandem, the replicator http client correctly closes its own socket after processing
any 413 response. (:ghissue:`1234`)
+ * A ``fabric`` process to receive unchunked attachments can no longer orphan processes
+ that leave unprocessed binaries in memory until all available memory is exhausted.
+ (:ghissue:`1264`).
+ * When using CouchDB's native SSL responder (port 6984 by default), sessions are now
+ timed out by default after 300s. This is to work around RAM explosion in the BEAM VM
+ when using the Erlang-native SSL libraries. (:ghissue:`1321`)
* TODO LINK :ghissue:`822`: A new ``POST /_dbs_info`` endpoint has been added to return
information about a list of specified databases. This endpoint can take the place of
@@ -110,13 +136,57 @@ Features
* :ghissue:`1095`: Recognize the environment variables ``ARGS_FILE``, ``SYSCONFIG_FILE``,
``COUCHDB_ARGS_FILE`` and ``COUCHDB_SYSCONFIG_FILE`` to overrride where CouchDB looks
for the ``vm.args`` and ``sys.config`` files at startup.
+* :ghissue:`1101`, :ghissue:`1425`: Mango can now be used to find conflicted documents
+ in a database by adding ``conflicts: true`` to a mango selector.
+* :ghissue:`1136`, :ghissue:`1139`: When deleting a database in a cluster without
+ quorum, CouchDB will no longer throw a ``500`` error status, but a ``202`` as long as
+ at least one node records the deletion, or a ``200`` when all nodes respond. This fix
+ parallels the one made for :ghissue:`603`.
* :ghissue:`1126`: When queried back after saving, replication documents no longer
contain sensitive credential information (such as basic authenticataion headers).
* :ghissue:`1203`: The compaction daemon now has a snooze period, during which it waits
to start the next compaction after finishing the previous one. This value is useful
in ``couch_peruser`` setups, which can cause a CPU spike every ``check_interval``
seconds. The setting can be adjusted in your local ini file via
- ``[compaction_daemon] snooze_period``. The current default is a 3 second pause.
+ ``[compaction_daemon] snooze_period``. The current default is a 3 second pause. The
+ related ``[compaction_daemon] check_interval`` period has also been increased from 15
+ minutes to 1 hour, and the view index open/close logging messages are now debug level.
+* :ghissue:`1309`, :ghissue:`1435`: CouchDB now reports the git sha at the time of build
+ in the top-level ``GET /`` version string, in a new ``git_sha`` key. This can be used
+ to help ensure an unmodified version of CouchDB has been built and is running on any
+ given machine.
+* :issue:`2971`, :ghissue:`1346`: CouchDB now includes a new builtin reduce function
+ ``_approx_count_distinct``, that uses a HyperLogLog algorithm to estimate the number of
+ distinct keys in the view index. The precision is currently fixed to 2^11 observables,
+ and therefore uses approximately 1.5KB of memory.
+* :ghissue:`1377`: CouchDB finalization of view reduces now occurs at the coordinator
+ node. This simplified the built-in ``_stats`` function.
+* :ghissue:`1392`: When running CouchDB under Erlang 19.0 or newer, messages can now be
+ stored off the process heap. This is extremely useful for Erlang processes that can
+ have huge number of messages in their mailbox, and is now enabled for ``couch_server``,
+ ``couch_log_server``, ``ddoc_cache``, ``mem3_shards``, and ``rexi_server`` whenever
+ possible.
+* :ghissue:`1424`: The CouchDB native SSL/TLS server ``httpsd`` now accepts socket-level
+ configuration options through the ``[httpsd] server_options`` ini file setting.
+* :ghissue:`1440`: CouchDB can now be configured to prevent non-admins from accessing
+ the ``GET /_all_dbs`` method by specifying ``[chttpd] admin_only_all_dbs = true`` in
+ your local ini file(s).
+* :ghissue:`1171`, :ghissue:`1445`: CouchDB can now be configured to use the internal
+ Erlang MD5 hash function when not available in the external environment (e.g. FIPS
+ enabled CentOS) at compile time with the ``configure`` flag ``--enable-md5``. Because
+ this implementation is slower, it is not recommended in the general case.
+
+Performance
+-----------
+
+.. rst-class:: open
+
+* :ghissue:`1246`: CouchDB now checks for request authorization only once per each
+ request, improving the performance of any request that requires authorization.
+* :ghissue:`958`: The revision stemming algorithm was optimized down from *O(N^2)* to
+ *O(N)* via a depth-first search approach, and then further improved by calling the
+ stemming operation only when necessary. This new algorithm can be disabled by
+ setting the option ``[couchdb] stem_interactive_updates = false`` if necessary.
Bugfixes
--------
@@ -132,16 +202,44 @@ Bugfixes
* :ghissue:`969`: CouchDB now returns ``offset`` and ``update_seq`` values when ``keys``
are provided to the ``GET`` or ``POST`` ``/{db}/_all_docs?update_seq=true`` endpoints.
This was affecting PouchDB compatibility.
+* :ghissue:`984`, :ghissue:`1434`: CouchDB views now retain their ``update_seq`` after
+ compaction, preventing potentially expensive client-side view rewinds after compaction.
* :ghissue:`1012`: Address a theoretical race condition the replication scheduler could
encounter when trying to determine if the cluster is "stable" enough to resume
handling replication-introduced document updates.
* :ghissue:`1051`: Return a user-friendly error message when attempting to create a
CouchDB user with an invalid password field (non-string).
-
-Performance
------------
-
-.. rst-class:: open
+* :ghissue:`1059`: DB-specific compaction configurations were not working correctly. The
+ syntax now also supports shard-level custom compaction configuration if desired (which
+ it probably isn't.)
+* :ghissue:`1097`: Compaction daemon will not crash out when trying to check specific
+ file system mounts that are not "real" file systems (like ``/run`` on Linux).
+* :ghissue:`1198`: Fauxton is no longer available on the node-local port (5986, by
+ default). The node-local port is only to be used for specific administrative tasks;
+ removing the Fauxton interface prevents mistaking the node-local port as the correct
+ CouchDB port (5984, by default).
+* :ghissue:`1165`: ``validate_doc_update`` view functions can once again be implemented
+ directly in Erlang (after enabling the optional Erlang view server).
+* :ghissue:`1223`: The ``couch_config`` application now correctly handles non-persistent
+ integer and boolean-valued configuration changes.
+* :ghissue:`1242`: ``couch_os_daemons`` may now reside in directories with spaces.
+* :ghissue:`1258`: CouchDB will now successfully login users, even if password encryption
+ is very slow.
+* :ghissue:`1276`: The replication scheduler status for a repeatedly erroring job now
+ correctly reflects the `crashing` state in more scenarios.
+* :ghissue:`1375`: If CouchDB fails authorization but passes authentication, it no longer
+ drops the ``user_ctx`` out of the request.
+* :ghissue:`1390`: The active size of views (as returned in a database info response) no
+ longer is incorrectly calculated in such a way that it could occasionally be larger than
+ the actual on-disk file size.
+* :ghissue:`1401`: CouchDB Erlang views no longer crash in the ``couch_native`` process
+ with an unexpected ``function_clause`` error.
+* :ghissue:`1419`: When deleting a file, CouchDB now properly ignores the configuration
+ flag ``enable_database_recovery`` when set when compacting databases, rather than
+ always retaining the old, renamed, uncompacted database file.
+* :ghissue:`1439`: The CouchDB setup wizard now correctly validates bind_addresses. It
+ also moves logging of internal wizard setup steps to the debug level from the notice
+ level.
Mango
-----
@@ -156,6 +254,8 @@ Mango
certain values are present.
* :ghissue:`849`: When ``{"seq_indexed": true}`` is specified, a badmatch error was
returned. This is now fixed.
+* :ghissue:`927`, :ghissue:`1310`: Error messages when attempting to sort incorrectly are
+ now actually useful.
* :ghissue:`951`: When using ``GET /{db}/_index``, only use a partial filter selector for
an index if it is set to something other than the default.
* :ghissue:`961`: Do not prefix ``_design/`` to a Mango index name whose user-specified
@@ -173,6 +273,11 @@ Mango
Mango selector were reversed.
* :ghissue:`1067`: Prevent an ``invalid_cast`` crash when the ``couch_proc_manager`` soft
limit for processes is reached and mango idle processes are stopped.
+* :ghissue:`1336`: The built-in fields ``_id`` and ``rev`` will always be covered by any
+ index, and Mango now correctly ignores their presence in any index that explicitly
+ includes them for selector matching purposes.
+* :ghissue:`1376`: Mango now appropriately selects some indexes as usable for queries,
+ even if not all columns for an index are added to the query's sort field list.
* Multiple fixes related to using Mango as a front-end for full text indexing (a feature
not shipped with couch, but for which support is in place as a compile-time addon).
@@ -188,6 +293,7 @@ The 2.2.0 release also includes the following minor improvements:
* The ``mochiweb`` dependency was bumped to version 2.17.0, in part to address the
difficult :ghissue:`745` issue.
* Improved compatibility with newer versions of Erlang (20.x)
+* Improved release process for CouchDB maintainers and PMC members.
* Multiple test suite improvements, focused on increased coverage, speed, and
reliability.
* Improvements to the Travis CI and Jenkins CI setups, focused on improved long-term
@@ -196,4 +302,8 @@ The 2.2.0 release also includes the following minor improvements:
make deployment even easier.
* :ghissue:`1007`: Move ``etc/default.ini`` entries back into ``[replicator]`` section
(incorrectly moved to ``[couch_peruser]`` section)
+* :ghissue:`1245`: Increased debug-level logging for shard open errors is now available.
+* :ghissue:`1296`: CouchDB by default now always invokes the SMP-enabled BEAM VM, even
+ on single-processor machines. A future release of Erlang will remove the non-SMP BEAM
+ VM entirely.
* A pony! OK, no, not really. If you got this far, thank you for reading.