You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2018/03/28 21:18:16 UTC

[couchdb] branch master updated: feat: add debug log output for shard open errors

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

jan 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 fe1ce42  feat: add debug log output for shard open errors
fe1ce42 is described below

commit fe1ce4250a5850e60765a83612a4c10754dba114
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Tue Mar 27 16:11:12 2018 +0200

    feat: add debug log output for shard open errors
---
 src/fabric/src/fabric_util.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/fabric/src/fabric_util.erl b/src/fabric/src/fabric_util.erl
index 49f4c89..dd4b80d 100644
--- a/src/fabric/src/fabric_util.erl
+++ b/src/fabric/src/fabric_util.erl
@@ -194,9 +194,11 @@ get_shard([#shard{node = Node, name = Name} | Rest], Opts, Timeout, Factor) ->
             throw(Error);
         {Ref, {'rexi_EXIT', {{forbidden, _} = Error, _}}} ->
             throw(Error);
-        {Ref, _Else} ->
+        {Ref, Reason} ->
+            couch_log:debug("Failed to open shard ~p because: ~p", [Name, Reason]),
             get_shard(Rest, Opts, Timeout, Factor)
         after Timeout ->
+            couch_log:debug("Failed to open shard ~p after: ~p", [Name, Timeout]),
             get_shard(Rest, Opts, Factor * Timeout, Factor)
         end
     after

-- 
To stop receiving notification emails like this one, please contact
jan@apache.org.