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 31b63c5 Moar debugging detail
31b63c5 is described below
commit 31b63c5b2ea18627d3cda87a92f4782d460de01d
Author: Adam Kocoloski <[email protected]>
AuthorDate: Tue Aug 13 10:43:29 2019 -0400
Moar debugging detail
---
Jenkinsfile | 2 +-
src/couch_pse_tests/src/cpse_test_purge_replication.erl | 2 ++
src/couch_replicator/src/couch_replicator.erl | 5 +++++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index fddcd6f..90c9267 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -24,7 +24,7 @@ tar -xf ${WORKSPACE}/apache-couchdb-*.tar.gz
cd apache-couchdb-*
./configure --with-curl
make
-make eunit apps=couch suites=couch_bt_engine_tests
+make eunit apps=couch suites=couch_bt_engine_tests ||
(build-aux/logfile-uploader.py && false)
'''
make_packages = '''
diff --git a/src/couch_pse_tests/src/cpse_test_purge_replication.erl
b/src/couch_pse_tests/src/cpse_test_purge_replication.erl
index 73fd83b..372afa5 100644
--- a/src/couch_pse_tests/src/cpse_test_purge_replication.erl
+++ b/src/couch_pse_tests/src/cpse_test_purge_replication.erl
@@ -37,6 +37,8 @@ teardown_each({SrcDb, TgtDb}) ->
cpse_purge_http_replication({Source, Target}) ->
?debugHere,
+ ?debugVal(mem3:nodes()),
+ ?debugVal([node() | nodes()]),
{ok, Rev1} = cpse_util:save_doc(Source, {[{'_id', foo}, {vsn, 1}]}),
?debugHere,
diff --git a/src/couch_replicator/src/couch_replicator.erl
b/src/couch_replicator/src/couch_replicator.erl
index e4fa31c..b0da628 100644
--- a/src/couch_replicator/src/couch_replicator.erl
+++ b/src/couch_replicator/src/couch_replicator.erl
@@ -53,6 +53,7 @@
{error, any()} |
no_return().
replicate(PostBody, Ctx) ->
+ couch_log:notice("Received ~p ~p~n", [{PostBody, Ctx}]),
{ok, Rep0} = couch_replicator_utils:parse_rep_doc(PostBody, Ctx),
Rep = Rep0#rep{start_time = os:timestamp()},
#rep{id = RepId, options = Options, user_ctx = UserCtx} = Rep,
@@ -71,9 +72,13 @@ replicate(PostBody, Ctx) ->
{error, not_found}
end;
false ->
+ couch_log:notice("Checking authorization~n", []),
check_authorization(RepId, UserCtx),
+ couch_log:notice("Starting listener~n", []),
{ok, Listener} = rep_result_listener(RepId),
+ couch_log:notice("Starting replication loop~n", []),
Result = do_replication_loop(Rep),
+ couch_log:notice("Finishing~n", []),
couch_replicator_notifier:stop(Listener),
Result
end.