You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2018/03/09 18:30:00 UTC

[couchdb] branch increase-pse-test-engine-timeouts created (now 2cf818e)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch increase-pse-test-engine-timeouts
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 2cf818e  Increase PSE test engine timeouts

This branch includes the following new commits:

     new 2cf818e  Increase PSE test engine timeouts

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
vatamane@apache.org.

[couchdb] 01/01: Increase PSE test engine timeouts

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch increase-pse-test-engine-timeouts
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 2cf818e9a358ee477ac676f89351db9d60676437
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Fri Mar 9 13:29:17 2018 -0500

    Increase PSE test engine timeouts
    
    Also make them into defines to be easier to adjust in the future
---
 src/couch/src/test_engine_util.erl | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/couch/src/test_engine_util.erl b/src/couch/src/test_engine_util.erl
index 790fe30..8999753 100644
--- a/src/couch/src/test_engine_util.erl
+++ b/src/couch/src/test_engine_util.erl
@@ -29,6 +29,9 @@
     test_engine_ref_counting
 ]).
 
+-define(COMPACTOR_TIMEOUT, 50000).
+-define(ATTACHMENT_WRITE_TIMEOUT, 10000).
+-define(MAKE_DOC_SUMMARY_TIMEOUT, 5000).
 
 create_tests(EngineApp) ->
     create_tests(EngineApp, EngineApp).
@@ -343,7 +346,7 @@ make_doc_summary(Engine, St, DocData) ->
             Summary;
         {'DOWN', Ref, _, _, Error} ->
             erlang:error({make_doc_summary_error, Error})
-    after 1000 ->
+    after ?MAKE_DOC_SUMMARY_TIMEOUT ->
         erlang:error(make_doc_summary_timeout)
     end.
 
@@ -361,7 +364,7 @@ prep_atts(Engine, St, [{FileName, Data} | Rest]) ->
             throw(not_supported);
         {'DOWN', Ref, _, _, Resp} ->
             Resp
-        after 5000 ->
+        after ?ATTACHMENT_WRITE_TIMEOUT ->
             erlang:error(attachment_write_timeout)
     end,
     [Att | prep_atts(Engine, St, Rest)].
@@ -576,7 +579,7 @@ compact(Engine, St1, DbPath) ->
             Term0;
         {'DOWN', Ref, _, _, Reason} ->
             erlang:error({compactor_died, Reason})
-        after 10000 ->
+        after ?COMPACTOR_TIMEOUT ->
             erlang:error(compactor_timed_out)
     end,
 

-- 
To stop receiving notification emails like this one, please contact
vatamane@apache.org.