<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/src/couch_replicator, 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>fix additional links after branch renaming (master -&gt; main)</title>
<updated>2021-01-25T18:33:48+00:00</updated>
<author>
<name>Ronny</name>
<email>ronny@kioskkinder.com</email>
</author>
<published>2021-01-25T13:32:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=127c44120550a9994d4daf9016f4035acf2f39a6'/>
<id>127c44120550a9994d4daf9016f4035acf2f39a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>treat 408 as a retryable error condition (#3303)</title>
<updated>2020-12-20T14:46:46+00:00</updated>
<author>
<name>Robert Newson</name>
<email>rnewson@apache.org</email>
</author>
<published>2020-12-20T14:46:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=df2fb672565dfc8873aa1b102b572d9be16b6e14'/>
<id>df2fb672565dfc8873aa1b102b572d9be16b6e14</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing default headers to responses (#3279)</title>
<updated>2020-11-23T10:45:39+00:00</updated>
<author>
<name>Bessenyei Balázs Donát</name>
<email>bessbd@users.noreply.github.com</email>
</author>
<published>2020-11-23T10:45:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=c362b1c11326050e09fd2ad5303e1221b38e8b0c'/>
<id>c362b1c11326050e09fd2ad5303e1221b38e8b0c</id>
<content type='text'>
Add missing default headers to responses
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing default headers to responses
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed unused variable in merge headers unit test</title>
<updated>2020-10-12T17:17:53+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-10-12T17:07:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=52575df88ae4b268502c3a4b5e4ca36a46842389'/>
<id>52575df88ae4b268502c3a4b5e4ca36a46842389</id>
<content type='text'>
`Headers1` is not used anywhere
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`Headers1` is not used anywhere
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly combine base and extra headers when making replicator requests</title>
<updated>2020-10-10T16:01:27+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-10-09T22:10:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=4246e9fb4d5e442944f43709e1cbec8f9ff02593'/>
<id>4246e9fb4d5e442944f43709e1cbec8f9ff02593</id>
<content type='text'>
Previously we subtly relied on one set of headers being sorted, then sorted the
other set of headers, and ran `lists:ukeymerge/3`. That function, however,
needs both arguments to be sorted in order for it to work as expected. If one
argument wasn't sorted we could get duplicate headers easily, which is what was
observed in testing.

A better fix than just sorting both sets of keys, is to use an actual header
processing library to combine them so we can account for case insensitivity as
well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously we subtly relied on one set of headers being sorted, then sorted the
other set of headers, and ran `lists:ukeymerge/3`. That function, however,
needs both arguments to be sorted in order for it to work as expected. If one
argument wasn't sorted we could get duplicate headers easily, which is what was
observed in testing.

A better fix than just sorting both sets of keys, is to use an actual header
processing library to combine them so we can account for case insensitivity as
well.
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not shortcut replicator job initialization if replication ID matches</title>
<updated>2020-10-08T19:45:27+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-10-08T19:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=2b215079ed7130ab741ad3e29d3b674dd9395b52'/>
<id>2b215079ed7130ab741ad3e29d3b674dd9395b52</id>
<content type='text'>
Previously there was an attempt to shortcut some of the job initialization if
replication ID in the job data and the newly computed one matched. However,
that logic was wrong as it skipped over the job data state update.

The effect was that if a job was in a pending state, and it re-initialized, say
when a node restarted, its job data would still indicate it as "pending" until
the next checkpoint. If the job is continuous, and there are no more updates on
the source, the state of the job would stay in "pending" indefinitely.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously there was an attempt to shortcut some of the job initialization if
replication ID in the job data and the newly computed one matched. However,
that logic was wrong as it skipped over the job data state update.

The effect was that if a job was in a pending state, and it re-initialized, say
when a node restarted, its job data would still indicate it as "pending" until
the next checkpoint. If the job is continuous, and there are no more updates on
the source, the state of the job would stay in "pending" indefinitely.
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly initialize `user` in replication job's state</title>
<updated>2020-10-06T22:44:06+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-10-06T21:48:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=e42d33fcc77a09e99d1bc70557810a8536a80027'/>
<id>e42d33fcc77a09e99d1bc70557810a8536a80027</id>
<content type='text'>
This value is emitted in _active_tasks and was previously emitting `null`
values from the state record's defaults.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This value is emitted in _active_tasks and was previously emitting `null`
values from the state record's defaults.
</pre>
</div>
</content>
</entry>
<entry>
<title>Keep auth properties as a map in replicator's httpdb record</title>
<updated>2020-10-05T19:56:03+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-10-05T19:25:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=d560cb7c251f5f9a3c8a02138244ba3c0c4a9fe9'/>
<id>d560cb7c251f5f9a3c8a02138244ba3c0c4a9fe9</id>
<content type='text'>
Previously there was an attempt to keep backwards compatibility with 3.x
replicator plugins by transforming the auth into a proplist with
`maps:to_list/1`. However, that didn't account for nested properties, so we
could have ended up with a top level of props with maps for some values.
Instead of making things too complicating, and doing a nested transform to
proplists, just keep the auth object as a map and let the plugins handle the
compatibility issue.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously there was an attempt to keep backwards compatibility with 3.x
replicator plugins by transforming the auth into a proplist with
`maps:to_list/1`. However, that didn't account for nested properties, so we
could have ended up with a top level of props with maps for some values.
Instead of making things too complicating, and doing a nested transform to
proplists, just keep the auth object as a map and let the plugins handle the
compatibility issue.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add node and pid to _scheduler/jobs output</title>
<updated>2020-09-30T22:40:21+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-09-30T22:10:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=f143beb96546931314fe636cc485b1d4c84f0f4a'/>
<id>f143beb96546931314fe636cc485b1d4c84f0f4a</id>
<content type='text'>
This is mainly for compatibility with CouchDB 3.x

Ref: https://docs.couchdb.org/en/stable/api/server/common.html#scheduler-jobs
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is mainly for compatibility with CouchDB 3.x

Ref: https://docs.couchdb.org/en/stable/api/server/common.html#scheduler-jobs
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix error reporting when fetching replication filters</title>
<updated>2020-09-30T20:55:20+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-09-30T19:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=eaf13d35338fa4eecf660879c0b469c1db850a5b'/>
<id>eaf13d35338fa4eecf660879c0b469c1db850a5b</id>
<content type='text'>
Don't unnecessarily unwrap the fetch error since `error_info/1` can already
handle the current shape. Also, make sure to translate the reason to binary for
consistency with the other filter fetching errors in the
`couch_replicator_filters` module.

Add a test to ensure we return the `filter_fetch_error` term as that is
explicitly turned into a 404 error in chttpd, so we try to maintain
compatibility with CouchDB &lt;= 3.x code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't unnecessarily unwrap the fetch error since `error_info/1` can already
handle the current shape. Also, make sure to translate the reason to binary for
consistency with the other filter fetching errors in the
`couch_replicator_filters` module.

Add a test to ensure we return the `filter_fetch_error` term as that is
explicitly turned into a 404 error in chttpd, so we try to maintain
compatibility with CouchDB &lt;= 3.x code.
</pre>
</div>
</content>
</entry>
</feed>
