<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/src, 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>Fix error_logger reports for OTP &gt;= 21</title>
<updated>2021-03-18T21:45:16+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-17T06:36:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=4f0574d1b2cbbd64501ec0468ad37b553a8a86de'/>
<id>4f0574d1b2cbbd64501ec0468ad37b553a8a86de</id>
<content type='text'>
Starting with OTP 21 there is a new logging system, and we forgot to
add the legacy error logger handler for it. Without it `couch_log`
cannot emit gen_server, supervisor and other such system events.

Luckily, there is OTP support to enable legacy error_logger behavior and
that's what we're doing here. The `add_report_handler/1` call will
auto-start the `error_logger` app if needed, and it will also add an
`error_logger` handler to the global `logger` system.

We also keep the `gen_event:add_sup_handler/3` call, as that will
ensure we'll find out when `error_logger` dies so that
`couch_log_monitor` can restart everything.

Someday(TM) we'll write a proper log event handler for the new logger
and have nicely formatted structured logs, but it's better to do that
once we don't have to support OTP versions =&lt; 20.

Issue: https://github.com/apache/couchdb/pull/3422
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Starting with OTP 21 there is a new logging system, and we forgot to
add the legacy error logger handler for it. Without it `couch_log`
cannot emit gen_server, supervisor and other such system events.

Luckily, there is OTP support to enable legacy error_logger behavior and
that's what we're doing here. The `add_report_handler/1` call will
auto-start the `error_logger` app if needed, and it will also add an
`error_logger` handler to the global `logger` system.

We also keep the `gen_event:add_sup_handler/3` call, as that will
ensure we'll find out when `error_logger` dies so that
`couch_log_monitor` can restart everything.

Someday(TM) we'll write a proper log event handler for the new logger
and have nicely formatted structured logs, but it's better to do that
once we don't have to support OTP versions =&lt; 20.

Issue: https://github.com/apache/couchdb/pull/3422
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo causing not saving of configuration changes from chttpd_node</title>
<updated>2021-03-18T15:42:10+00:00</updated>
<author>
<name>ILYA Khlopotov</name>
<email>iilyak@apache.org</email>
</author>
<published>2021-03-18T15:42:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=9043204735eed13128159208608823b35bf481b4'/>
<id>9043204735eed13128159208608823b35bf481b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(couchjs): add support for SpiderMonkey 86</title>
<updated>2021-03-17T12:26:28+00:00</updated>
<author>
<name>Jan Lehnardt</name>
<email>jan@apache.org</email>
</author>
<published>2021-03-13T13:09:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=a411fe220f94be73b9364fc0e923b8401d4e73ff'/>
<id>a411fe220f94be73b9364fc0e923b8401d4e73ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix _changes?filter=_design (#3430)</title>
<updated>2021-03-16T15:48:24+00:00</updated>
<author>
<name>Bessenyei Balázs Donát</name>
<email>bessbd@users.noreply.github.com</email>
</author>
<published>2021-03-16T15:48:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=1062435f50cf5bcc45cd37b0f89968d1d050c17e'/>
<id>1062435f50cf5bcc45cd37b0f89968d1d050c17e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set wait_for_built_index=True for 17-multi-type-value-test.py</title>
<updated>2021-03-16T13:25:30+00:00</updated>
<author>
<name>Bessenyei Balázs Donát</name>
<email>bessbd@apache.org</email>
</author>
<published>2021-03-16T12:40:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=67061dbba40ab83ba6bb04d2af2988331f000a92'/>
<id>67061dbba40ab83ba6bb04d2af2988331f000a92</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Ignore unchecked JWT claims</title>
<updated>2021-03-15T16:32:10+00:00</updated>
<author>
<name>Jay Doane</name>
<email>jaydoane@apache.org</email>
</author>
<published>2021-03-01T21:48:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=73413346c1e0c4fb94c68b62ffc3656888723f41'/>
<id>73413346c1e0c4fb94c68b62ffc3656888723f41</id>
<content type='text'>
Previously, if a JWT claim was present, it was validated regardless of
whether it was required.

However, according to the spec [1]:

"all claims that are not understood by implementations MUST be ignored"

which we interpret to mean that we should not attempt to validate
claims we don't require.

With this change, only claims listed in required checks are validated.

[1] https://tools.ietf.org/html/rfc7519#section-4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, if a JWT claim was present, it was validated regardless of
whether it was required.

However, according to the spec [1]:

"all claims that are not understood by implementations MUST be ignored"

which we interpret to mean that we should not attempt to validate
claims we don't require.

With this change, only claims listed in required checks are validated.

[1] https://tools.ietf.org/html/rfc7519#section-4
</pre>
</div>
</content>
</entry>
<entry>
<title>Include necessary dependency in jwtf keystore test setup &amp; teardown</title>
<updated>2021-03-15T16:32:10+00:00</updated>
<author>
<name>Jay Doane</name>
<email>jaydoane@apache.org</email>
</author>
<published>2021-02-16T06:06:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=6fa2a6f8fccbee831ef05e847b7d9acdee8079ab'/>
<id>6fa2a6f8fccbee831ef05e847b7d9acdee8079ab</id>
<content type='text'>
The config application depends on couch_log, so include it when
setting up and tearing down tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The config application depends on couch_log, so include it when
setting up and tearing down tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix more couch_jobs flakiness</title>
<updated>2021-03-12T21:51:14+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-12T21:12:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=c508efedcabd560449e4dcbd7774a04b3907257e'/>
<id>c508efedcabd560449e4dcbd7774a04b3907257e</id>
<content type='text'>
The errors see in #3417 seem to indicate the expiration jobs are interfering
with the couch_jobs tests, to prevent that prevent expiration_db job gen_server
from starting at all.

Fixes #3417
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The errors see in #3417 seem to indicate the expiration jobs are interfering
with the couch_jobs tests, to prevent that prevent expiration_db job gen_server
from starting at all.

Fixes #3417
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix couch_jobs to be less flaky</title>
<updated>2021-03-12T19:15:56+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-10T23:16:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=304a0634a2e06fdedd0746d39984e27147391842'/>
<id>304a0634a2e06fdedd0746d39984e27147391842</id>
<content type='text'>
It turns out fabric is dependent on couch_jobs because of db expiration module.
So when couch_jobs was restarted multiple times per test case it could have
brought down fabric. However, since couch_jobs needs fabric for transactional
stuff it ended up brining couch_jobs app down as well.

To fix it:

 * Switch to explicitly starting/stopping fabric and couch_jobs together

 * Break appart bad_messages* tests to individually test each type of message
   as app restarts in the middle of the tests kept killing fabric and
   intermettently killing couch_jobs a well.

 * Also make the tests look nicer by re-using ?TDEF_FE macros from
   `fabric2_test`, this we can avoid the `?_test(begin... end).` pattern.

 * Remove meck:unload since we don't really meck anything in the module

 * Don't need to spend time cleaning out database as we don't really create
   that many dbs (just one) and that one gets cleaned out in its own test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It turns out fabric is dependent on couch_jobs because of db expiration module.
So when couch_jobs was restarted multiple times per test case it could have
brought down fabric. However, since couch_jobs needs fabric for transactional
stuff it ended up brining couch_jobs app down as well.

To fix it:

 * Switch to explicitly starting/stopping fabric and couch_jobs together

 * Break appart bad_messages* tests to individually test each type of message
   as app restarts in the middle of the tests kept killing fabric and
   intermettently killing couch_jobs a well.

 * Also make the tests look nicer by re-using ?TDEF_FE macros from
   `fabric2_test`, this we can avoid the `?_test(begin... end).` pattern.

 * Remove meck:unload since we don't really meck anything in the module

 * Don't need to spend time cleaning out database as we don't really create
   that many dbs (just one) and that one gets cleaned out in its own test.
</pre>
</div>
</content>
</entry>
</feed>
