couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] branch master updated: Increase PSE test engine timeouts
Date Fri, 09 Mar 2018 19:46:47 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 2b5cf23  Increase PSE test engine timeouts
2b5cf23 is described below

commit 2b5cf23e9c733f17a26d344bffc439ce1c6a9f59
Author: Nick Vatamaniuc <vatamane@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.

Mime
View raw message