You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/07/19 13:52:38 UTC
[couchdb] branch master updated: TMP: Add debug logging for failed
assertion
This is an automated email from the ASF dual-hosted git repository.
davisp 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 dfa14c0 TMP: Add debug logging for failed assertion
dfa14c0 is described below
commit dfa14c06ac01c489a270c3fdde1572b5a2152c83
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Fri Jul 14 11:27:06 2017 -0500
TMP: Add debug logging for failed assertion
---
src/couch/test/couchdb_compaction_daemon_tests.erl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/couch/test/couchdb_compaction_daemon_tests.erl b/src/couch/test/couchdb_compaction_daemon_tests.erl
index 908f1d3..856a53d 100644
--- a/src/couch/test/couchdb_compaction_daemon_tests.erl
+++ b/src/couch/test/couchdb_compaction_daemon_tests.erl
@@ -293,6 +293,13 @@ is_idle(DbName) ->
{ok, Db} = couch_db:open_int(DbName, [?ADMIN_CTX]),
Monitors = couch_db:monitored_by(Db),
ok = couch_db:close(Db),
+ Others = [M || M <- Monitors, M /= self()],
+ if Others == [] -> ok; true ->
+ lists:foreach(fun(Other) ->
+ Args = [Other, process_info(Other)],
+ couch_log:error("XKCD: MONITORED BY ~p :: ~p", Args)
+ end, Others)
+ end,
not lists:any(fun(M) -> M /= self() end, Monitors).
with_config_change(_DbName, Fun) ->
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].