<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/rel, branch decrease-indexer-transaction-time-limit</title>
<subtitle>github.com: apache/couchdb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/'/>
<entry>
<title>Decrease the view indexer transaction time</title>
<updated>2021-03-22T15:44:55+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-22T05:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=aa800e2d00eb9565d59396c1ae8c482d609ec872'/>
<id>aa800e2d00eb9565d59396c1ae8c482d609ec872</id>
<content type='text'>
The indexer transaction time is decreased in order to allow enough
time for the client to re-use the same GRV to emit doc bodies.

This PR goes along with [1], where emitted doc bodies in a view
responses now come from the same database read version as the one used
by the indexer. Since the batcher previously used 4.5 seconds as the
maximum, that left little time to read any doc bodies.

[1]: https://github.com/apache/couchdb/pull/3391

Issue: https://github.com/apache/couchdb/issues/3381
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The indexer transaction time is decreased in order to allow enough
time for the client to re-use the same GRV to emit doc bodies.

This PR goes along with [1], where emitted doc bodies in a view
responses now come from the same database read version as the one used
by the indexer. Since the batcher previously used 4.5 seconds as the
maximum, that left little time to read any doc bodies.

[1]: https://github.com/apache/couchdb/pull/3391

Issue: https://github.com/apache/couchdb/issues/3381
</pre>
</div>
</content>
</entry>
<entry>
<title>Lower the view indexer transaction retry limit</title>
<updated>2021-03-04T17:28:17+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-03T19:59:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=fdd53774bd802fe9e6b6eb473ae5b40c7436137c'/>
<id>fdd53774bd802fe9e6b6eb473ae5b40c7436137c</id>
<content type='text'>
Previously, the view indexer used the default retry limit (100) from the
`fdb_tx_options` config section. However, since the batching algorithm relies
on sensing errors and reacting to them, retrying the batch 100 times before
erroring out was not optimal. So value is lowered down to 5 and it's also made
configurable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the view indexer used the default retry limit (100) from the
`fdb_tx_options` config section. However, since the batching algorithm relies
on sensing errors and reacting to them, retrying the batch 100 times before
erroring out was not optimal. So value is lowered down to 5 and it's also made
configurable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a development container for VS Code (#3343)</title>
<updated>2021-01-26T01:31:57+00:00</updated>
<author>
<name>Adam Kocoloski</name>
<email>kocolosk@apache.org</email>
</author>
<published>2021-01-26T01:31:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=46b346e30b96d3774f83ee2d366e12dc1ce50749'/>
<id>46b346e30b96d3774f83ee2d366e12dc1ce50749</id>
<content type='text'>
* Add a development container config for VS Code

This creates a development environment with a FoundationDB server
and a CouchDB layer in two containers, sharing a network through
Docker Compose.

It uses the FDB image published to Docker Hub for the FDB container,
and downloads the FDB client packages from foundationdb.org to provide
the development headers and libraries. www.foundationdb.org is actually
not trusted in Debian Buster by default, so we have to download the
GeoTrust_Global_CA.pem. The following link has more details:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962596

Once the Docker Compose setup is running, VS Code executes the
create_cluster_file.bash script to write down a cluster file containing
the IP address in the compose network where the FDB service can be
found. This cluster file is used both for a user-driven invocation of
`./dev/run`, as well as for unit tests that require a running CouchDB.

Additionally, I've got a small fix to the way we run explicitly specified
eunit tests:

* Run eunit tests for each app separately

The `eunit` target executes a for loop that appears intended to use a
separate invocation of rebar for each Erlang application's unit tests.
When running `make eunit` without any arguments this works correctly,
as the for loop processes the output of `ls src`. But if you specify a
comma-delimited list of applications the for loop will treat that as a
single argument and pass it down to rebar. This asymmetry is
surprising, but also seems to cause some issues with environment
variables not being inherited by the environment used to execute the
tests for the 2..N applications in the list. I didn't bother digging
into the rebar source code to figure out what was happening there.

This patch just parses the incoming comma-delimited list with `sed` to
create a whitespace-delimited list for the loop, so we get the same
behavior regardless of whether we are specifying applications
explicitly or not.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add a development container config for VS Code

This creates a development environment with a FoundationDB server
and a CouchDB layer in two containers, sharing a network through
Docker Compose.

It uses the FDB image published to Docker Hub for the FDB container,
and downloads the FDB client packages from foundationdb.org to provide
the development headers and libraries. www.foundationdb.org is actually
not trusted in Debian Buster by default, so we have to download the
GeoTrust_Global_CA.pem. The following link has more details:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962596

Once the Docker Compose setup is running, VS Code executes the
create_cluster_file.bash script to write down a cluster file containing
the IP address in the compose network where the FDB service can be
found. This cluster file is used both for a user-driven invocation of
`./dev/run`, as well as for unit tests that require a running CouchDB.

Additionally, I've got a small fix to the way we run explicitly specified
eunit tests:

* Run eunit tests for each app separately

The `eunit` target executes a for loop that appears intended to use a
separate invocation of rebar for each Erlang application's unit tests.
When running `make eunit` without any arguments this works correctly,
as the for loop processes the output of `ls src`. But if you specify a
comma-delimited list of applications the for loop will treat that as a
single argument and pass it down to rebar. This asymmetry is
surprising, but also seems to cause some issues with environment
variables not being inherited by the environment used to execute the
tests for the 2..N applications in the list. I didn't bother digging
into the rebar source code to figure out what was happening there.

This patch just parses the incoming comma-delimited list with `sed` to
create a whitespace-delimited list for the loop, so we get the same
behavior regardless of whether we are specifying applications
explicitly or not.</pre>
</div>
</content>
</entry>
<entry>
<title>Allow for disabling custom reduce functions</title>
<updated>2020-10-20T20:39:11+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-10-12T19:08:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=bfda16348f5c61e274ad5087e4a6407fa8306e0d'/>
<id>bfda16348f5c61e274ad5087e4a6407fa8306e0d</id>
<content type='text'>
This changes allows administators to disable custom JavaScript reduce
functions. Custom reduce functions are notoriously difficult to write
correctly and most of the time when written correctly would be more
efficiently done using an builtin reduce.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changes allows administators to disable custom JavaScript reduce
functions. Custom reduce functions are notoriously difficult to write
correctly and most of the time when written correctly would be more
efficiently done using an builtin reduce.
</pre>
</div>
</content>
</entry>
<entry>
<title>add missing applications to reltool.config</title>
<updated>2020-10-16T17:26:20+00:00</updated>
<author>
<name>Robert Newson</name>
<email>rnewson@apache.org</email>
</author>
<published>2020-10-16T17:23:45+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=8fbf62843ad5ed17d1d331d2577c9922c89fc646'/>
<id>8fbf62843ad5ed17d1d331d2577c9922c89fc646</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>simplify max_document_size comment</title>
<updated>2020-10-06T14:23:58+00:00</updated>
<author>
<name>Robert Newson</name>
<email>rnewson@apache.org</email>
</author>
<published>2020-10-06T14:18:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=990a3bd7240971cc0274b26fa496b88fd6c66f44'/>
<id>990a3bd7240971cc0274b26fa496b88fd6c66f44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Views on ebtree</title>
<updated>2020-09-30T15:08:44+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-07-24T15:59:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=b91f193563c9b3dadd4f8de4c49de9cbf4304837'/>
<id>b91f193563c9b3dadd4f8de4c49de9cbf4304837</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch master into prototype/fdb-layer</title>
<updated>2020-09-16T21:37:33+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-09-16T21:19:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=ad93d1378048ab1049dcd5d6066e947afb614e67'/>
<id>ad93d1378048ab1049dcd5d6066e947afb614e67</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update and cleanup default.ini replicator entries</title>
<updated>2020-09-15T20:13:46+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-08-28T08:36:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=b718d3380cbc8dc5799f36e19e1a94b8c2e00c2d'/>
<id>b718d3380cbc8dc5799f36e19e1a94b8c2e00c2d</id>
<content type='text'>
Update settings with defaults. Also comment out values which are already set to
default in the code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update settings with defaults. Also comment out values which are already set to
default in the code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add after_db_create/2 and after_db_delete/2 callbacks to fabric</title>
<updated>2020-09-15T20:13:46+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-08-28T08:30:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=36a6b390f4f5e236401224ed30dea7282be965a5'/>
<id>36a6b390f4f5e236401224ed30dea7282be965a5</id>
<content type='text'>
`after_db_create/2` and `after_db_delete/2` are when databases are created and
deleted respectively. The callbacks are called with both the database name and
the database instance UUID values.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`after_db_create/2` and `after_db_delete/2` are when databases are created and
deleted respectively. The callbacks are called with both the database name and
the database instance UUID values.
</pre>
</div>
</content>
</entry>
</feed>
