<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/src/fabric/test, 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>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>Allow specifying an end_key for fold_changes</title>
<updated>2020-11-17T21:53:52+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-11-13T21:13:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=0e91f2f608d4a920b6c22f1fe1eb9e0ea6982d5a'/>
<id>0e91f2f608d4a920b6c22f1fe1eb9e0ea6982d5a</id>
<content type='text'>
This is useful so that read conflicts on the changes feed will
eventually be resolved. Without an end key specified a reader could end
up in an infinite conflict retry loop if there are clients updating
documents in the database.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is useful so that read conflicts on the changes feed will
eventually be resolved. Without an end key specified a reader could end
up in an infinite conflict retry loop if there are clients updating
documents in the database.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow snapshots through fabric2_fdb:transactional</title>
<updated>2020-11-17T21:53:52+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-11-13T20:08:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=1b30d0810ac0d985676c90dc1b6532f9fb84284c'/>
<id>1b30d0810ac0d985676c90dc1b6532f9fb84284c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix flaky test</title>
<updated>2020-11-10T20:09:32+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-11-10T18:46:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=1a138804f692d0e578a7d4a19f9f13099a59a1cd'/>
<id>1a138804f692d0e578a7d4a19f9f13099a59a1cd</id>
<content type='text'>
Waiting for the timeout option to be set means we could still sneak in
and grab the old FDB database handle before fabric2_server updated it in
the application environment.

This new approach just waits until the handle has been updated by
watching the value in the application environment directly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Waiting for the timeout option to be set means we could still sneak in
and grab the old FDB database handle before fabric2_server updated it in
the application environment.

This new approach just waits until the handle has been updated by
watching the value in the application environment directly.
</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>Allow creating new deleted documents</title>
<updated>2020-09-03T17:36:50+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-09-01T19:28:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=947308d61d8016d9624d53a1a4dc91b7d92a0464'/>
<id>947308d61d8016d9624d53a1a4dc91b7d92a0464</id>
<content type='text'>
This makes it compatible with CouchDB &lt;= 3.x where we can create deleted
documents.

How to check:

```
$ http put $DB1/mydb
$ http put $DB1/mydb/foo _deleted:='true' a=b
{
    "id": "foo",
    "ok": true,
    "rev": "1-ad7eb689fcae75e7a7edb57dc1f30939"
}
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it compatible with CouchDB &lt;= 3.x where we can create deleted
documents.

How to check:

```
$ http put $DB1/mydb
$ http put $DB1/mydb/foo _deleted:='true' a=b
{
    "id": "foo",
    "ok": true,
    "rev": "1-ad7eb689fcae75e7a7edb57dc1f30939"
}
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle empty maps in active_tasks data structure</title>
<updated>2020-09-01T04:11:20+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-08-31T22:59:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=bf61a0051f6a0ae88cc40b7e6cd7710033fef33f'/>
<id>bf61a0051f6a0ae88cc40b7e6cd7710033fef33f</id>
<content type='text'>
Empty maps maybe useful to initialize the data in some cases but we don't want
to emit an entry in the output with just an empty map.

While at it, add some tests to check the basics.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Empty maps maybe useful to initialize the data in some cases but we don't want
to emit an entry in the output with just an empty map.

While at it, add some tests to check the basics.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow interactive requests to reopen a re-created db instance</title>
<updated>2020-07-31T16:08:43+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-07-30T21:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=8b49b0d63485afe68d559f3532be4827eee5bd8c'/>
<id>8b49b0d63485afe68d559f3532be4827eee5bd8c</id>
<content type='text'>
Previously, if a database was re-created on another node, a request with that
database might have found the previous db instance in the cache. In that case
it would have correctly reopened the db while in a transaction, but, because
the old db instance was deleted it would throw a database_does_not_exist which
was not the correct behavior.

To prevent that from happening, introduce an interactive = true|false option
when opening a database. User requests may specify that option and then when
the db is re-opened, it will allow it to automatically upgrade to the new db
instance instead returning an error.

Background processes will still get a database_doest_not_exist error if they
keep a db open which has now been re-created.

The interactive option may also be used in the future to set other transaction
parameters like timeouts and retries that might be different for interactive
requests vs background tasks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, if a database was re-created on another node, a request with that
database might have found the previous db instance in the cache. In that case
it would have correctly reopened the db while in a transaction, but, because
the old db instance was deleted it would throw a database_does_not_exist which
was not the correct behavior.

To prevent that from happening, introduce an interactive = true|false option
when opening a database. User requests may specify that option and then when
the db is re-opened, it will allow it to automatically upgrade to the new db
instance instead returning an error.

Background processes will still get a database_doest_not_exist error if they
keep a db open which has now been re-created.

The interactive option may also be used in the future to set other transaction
parameters like timeouts and retries that might be different for interactive
requests vs background tasks.
</pre>
</div>
</content>
</entry>
<entry>
<title>Include database uuid in db info result</title>
<updated>2020-06-04T18:05:40+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-06-04T16:19:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=19ae50815ca1016719f94a2757e08757b37fb949'/>
<id>19ae50815ca1016719f94a2757e08757b37fb949</id>
<content type='text'>
As per ML
[discussion](https://lists.apache.org/thread.html/rb328513fb932e231cf8793f92dd1cc2269044cb73cb43a6662c464a1%40%3Cdev.couchdb.apache.org%3E)
add a `uuid` field to db info results in order to be able to uniquely identify
a particular instance of a database. When a database is deleted and re-created
with the same name, it will return a new `uuid` value.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As per ML
[discussion](https://lists.apache.org/thread.html/rb328513fb932e231cf8793f92dd1cc2269044cb73cb43a6662c464a1%40%3Cdev.couchdb.apache.org%3E)
add a `uuid` field to db info results in order to be able to uniquely identify
a particular instance of a database. When a database is deleted and re-created
with the same name, it will return a new `uuid` value.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent eviction of newer handles from fabric_server cache</title>
<updated>2020-06-02T17:33:07+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-06-02T16:03:58+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=03210b029cbb60f906f13b6a826d8897c42102b6'/>
<id>03210b029cbb60f906f13b6a826d8897c42102b6</id>
<content type='text'>
Check metadata versions to ensure newer handles are not clobbered. The same
thing is done for removal, `maybe_remove/1` removes handle only if there isn't
a newer handle already there.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check metadata versions to ensure newer handles are not clobbered. The same
thing is done for removal, `maybe_remove/1` removes handle only if there isn't
a newer handle already there.
</pre>
</div>
</content>
</entry>
</feed>
