diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2018-03-28 16:58:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 16:58:16 -0500 |
commit | d33f6788ebac3625f63e70e79a7d305dc28204fe (patch) | |
tree | 882d1fd9f7bc8cc16aae29af479dc691fa323ea2 | |
parent | cb34c58b07aaea9a362c8bcc82962ec9ea321134 (diff) | |
parent | fe1ce4250a5850e60765a83612a4c10754dba114 (diff) | |
download | couchdb-fix-shard-substitution.tar.gz |
Merge branch 'master' into fix-shard-substitutionfix-shard-substitution
-rw-r--r-- | src/fabric/src/fabric_util.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fabric/src/fabric_util.erl b/src/fabric/src/fabric_util.erl index 49f4c8913..dd4b80da6 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 |