iilyak commented on a change in pull request #678: TMP: Add debug logging for 
failed assertion
URL: https://github.com/apache/couchdb/pull/678#discussion_r127767928
 
 

 ##########
 File path: 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)],
 
 Review comment:
   `process_info/1` is dangerous in production. Since it also includes all 
messages in the mailbox of a process.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to