<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git, branch concurrent_write_tests</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>Verify correctness with concurrent updates</title>
<updated>2021-03-10T14:18:22+00:00</updated>
<author>
<name>Robert Newson</name>
<email>rnewson@apache.org</email>
</author>
<published>2021-03-09T15:49:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=6de3caca2162b1ee332aa7072c73d297866d5912'/>
<id>6de3caca2162b1ee332aa7072c73d297866d5912</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>Re-add transaction size exceeded test (#3395)</title>
<updated>2021-03-03T22:35:30+00:00</updated>
<author>
<name>Bessenyei Balázs Donát</name>
<email>bessbd@users.noreply.github.com</email>
</author>
<published>2021-03-03T22:35:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=ad30fea6bbc8766c8f575eb664da924f27ec1893'/>
<id>ad30fea6bbc8766c8f575eb664da924f27ec1893</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow applying per-transaction options with fabric2_fdb:transactional/3</title>
<updated>2021-03-03T18:21:11+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-02T22:53:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=2ef72d60945bcda80845015cfb7c8426c4f9d0f3'/>
<id>2ef72d60945bcda80845015cfb7c8426c4f9d0f3</id>
<content type='text'>
1) First, as a cleanup, remove DB `Options` from the `init_db/3 call. We always
follow `init_db/3` (sometimes called through the
`fabric2_fdb:transactional(DbName, ...)` with a `create(TxDb, Options)` or
`open(TxDb, Options)` call, where we overrode `Options` anyway. The only time
we didn't follow it up with a `create/2` or `open/2` is when dbs are deleted
where `Options` wouldn't matter.

2) Add a new `fabric2_fdb:transactional(DbName|Db, TxOptions, Fun)` call which
allows specifying per-transaction TX options in the `TxOptions` arg. The format
of `TxOptions` is `#{option_name_as_atom =&gt; integer | binary}`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1) First, as a cleanup, remove DB `Options` from the `init_db/3 call. We always
follow `init_db/3` (sometimes called through the
`fabric2_fdb:transactional(DbName, ...)` with a `create(TxDb, Options)` or
`open(TxDb, Options)` call, where we overrode `Options` anyway. The only time
we didn't follow it up with a `create/2` or `open/2` is when dbs are deleted
where `Options` wouldn't matter.

2) Add a new `fabric2_fdb:transactional(DbName|Db, TxOptions, Fun)` call which
allows specifying per-transaction TX options in the `TxOptions` arg. The format
of `TxOptions` is `#{option_name_as_atom =&gt; integer | binary}`
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump erlfdb to 1.2.6 (#3400)</title>
<updated>2021-03-03T17:35:51+00:00</updated>
<author>
<name>Joan Touzet</name>
<email>wohali@users.noreply.github.com</email>
</author>
<published>2021-03-03T17:35:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=59669ed56ee6e0fba0cc1bf09f2ac5b84f0c6e5b'/>
<id>59669ed56ee6e0fba0cc1bf09f2ac5b84f0c6e5b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Makefile stripping remaining direct make refs</title>
<updated>2021-03-03T15:30:30+00:00</updated>
<author>
<name>Alessio Biancalana</name>
<email>dottorblaster@gmail.com</email>
</author>
<published>2021-03-03T09:03:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=9b0ea1055cfe1b008c60b897df4a33f71f5b6787'/>
<id>9b0ea1055cfe1b008c60b897df4a33f71f5b6787</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Relax isolation level when indexer reads from DB (#3393)</title>
<updated>2021-03-02T22:13:52+00:00</updated>
<author>
<name>Adam Kocoloski</name>
<email>kocolosk@apache.org</email>
</author>
<published>2021-03-02T22:13:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=650ba28bb9f09bbd7d4740f2d030b24d5169401c'/>
<id>650ba28bb9f09bbd7d4740f2d030b24d5169401c</id>
<content type='text'>
* Relax isolation level when indexer reads from DB

This patch causes the indexing subsystem to use snapshot isolation when
reading from the database. This reduces commit conflicts and ensures
the index can make progress even in the case of frequently updated docs.

In the pathological case, a document updated in a fast loop can cause
the indexer to stall out entirely when using serializable reads. Each
successful update of the doc will cause the indexer to fail to commit.
The indexer will retry with a new GRV but the same target DbSeq. In the
meantime, our frequently updated document will have advanced beyond
DbSeq and so the indexer will finish without indexing it in that pass.
This process can be repeated ad infinitum and the document will never
actually show up in a view response.

Snapshot reads are safe for this use case precisely because we do have
the _changes feed, and we can always be assured that a concurrent doc
update will show up again later in the feed.

* Bump erlfdb version

Needed to pull in fix for snapshot range reads.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Relax isolation level when indexer reads from DB

This patch causes the indexing subsystem to use snapshot isolation when
reading from the database. This reduces commit conflicts and ensures
the index can make progress even in the case of frequently updated docs.

In the pathological case, a document updated in a fast loop can cause
the indexer to stall out entirely when using serializable reads. Each
successful update of the doc will cause the indexer to fail to commit.
The indexer will retry with a new GRV but the same target DbSeq. In the
meantime, our frequently updated document will have advanced beyond
DbSeq and so the indexer will finish without indexing it in that pass.
This process can be repeated ad infinitum and the document will never
actually show up in a view response.

Snapshot reads are safe for this use case precisely because we do have
the _changes feed, and we can always be assured that a concurrent doc
update will show up again later in the feed.

* Bump erlfdb version

Needed to pull in fix for snapshot range reads.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix badmatch in couch_views_indexer</title>
<updated>2021-03-02T20:42:16+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-02T20:20:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=fac13a3ff0cfe6502dc424a9a129d7dd265290e4'/>
<id>fac13a3ff0cfe6502dc424a9a129d7dd265290e4</id>
<content type='text'>
Previously, when an erlfdb error occured and a recursive call to `update/3` was
made, the result of that call was always matched against `{Mrst, State}`.
However, in the case when the call had finalized and returned
`couch_eval:release_map_context/1` response, the result would be `ok` which
would blow with a badmatch error against `{Mrst, State}`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, when an erlfdb error occured and a recursive call to `update/3` was
made, the result of that call was always matched against `{Mrst, State}`.
However, in the case when the call had finalized and returned
`couch_eval:release_map_context/1` response, the result would be `ok` which
would blow with a badmatch error against `{Mrst, State}`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make session elixir test more robust</title>
<updated>2021-03-01T19:59:34+00:00</updated>
<author>
<name>Bessenyei Balázs Donát</name>
<email>bessbd@apache.org</email>
</author>
<published>2021-03-01T19:28:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=04086e67161ef6facaee6a119afbfc0fbafacb45'/>
<id>04086e67161ef6facaee6a119afbfc0fbafacb45</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set default nodes in dev/run to 1</title>
<updated>2021-03-01T19:34:03+00:00</updated>
<author>
<name>Bessenyei Balázs Donát</name>
<email>bessbd@apache.org</email>
</author>
<published>2021-03-01T18:06:13+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=6822fe4e6f4087e119f122fb167c132c5136e68f'/>
<id>6822fe4e6f4087e119f122fb167c132c5136e68f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
