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

kocolosk pushed a commit to branch jenkins-cpse-debugging
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/jenkins-cpse-debugging by this 
push:
     new 2e16988  Debug statements
2e16988 is described below

commit 2e169887711559ba9e7eae15610c573dd3baada8
Author: Adam Kocoloski <[email protected]>
AuthorDate: Tue Aug 13 14:26:06 2019 -0400

    Debug statements
---
 src/couch_replicator/src/couch_replicator_httpc.erl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/couch_replicator/src/couch_replicator_httpc.erl 
b/src/couch_replicator/src/couch_replicator_httpc.erl
index e4cf116..2ec8612 100644
--- a/src/couch_replicator/src/couch_replicator_httpc.erl
+++ b/src/couch_replicator/src/couch_replicator_httpc.erl
@@ -71,19 +71,23 @@ send_req(HttpDb, Params1, Callback) ->
         [{K, ?b2l(iolist_to_binary(V))} || {K, V} <- get_value(qs, Params1, 
[])]),
     Params = ?replace(Params2, ibrowse_options,
         lists:keysort(1, get_value(ibrowse_options, Params2, []))),
+    couch_log:notice("Sending request ~p ~p~n", [HttpDb, Params]),
     {Worker, Response, HttpDb1} = send_ibrowse_req(HttpDb, Params),
     Ret = try
         process_response(Response, Worker, HttpDb1, Params, Callback)
     catch
         throw:{retry, NewHttpDb0, NewParams0} ->
+            couch_log:notice("Caught retry ~p ~p~n", [NewHttpDb0, NewParams0]),
             {retry, NewHttpDb0, NewParams0}
     after
         Pool = HttpDb1#httpdb.httpc_pool,
         case get(?STOP_HTTP_WORKER) of
             stop ->
+                couch_log:notice("stop_and_release_worker ~p ~p~n", [Pool, 
Worker]),
                 ok = stop_and_release_worker(Pool, Worker),
                 erase(?STOP_HTTP_WORKER);
             undefined ->
+                couch_log:notice("release_worker ~p ~p~n", [Pool, Worker]),
                 ok = couch_replicator_httpc_pool:release_worker(Pool, Worker)
         end,
         clean_mailbox(Response)
@@ -93,6 +97,7 @@ send_req(HttpDb, Params1, Callback) ->
     % recursive call accidentally.
     case Ret of
         {retry, #httpdb{}=NewHttpDb, NewParams} ->
+            couch_log:notice("sending new req ~p ~p ~p~n", [NewHttpDb, 
NewParams, Callback]),
             send_req(NewHttpDb, NewParams, Callback);
         _ ->
             Ret

Reply via email to