This is an automated email from the ASF dual-hosted git repository. chewbranca pushed a commit to branch couch-stats-resource-tracker-v2 in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit bb00b81cab246b2c9c5739b7c2328ea8871e55d2 Author: Russell Branca <[email protected]> AuthorDate: Wed Aug 21 16:19:40 2024 -0700 Handle unexpected get_shard messages --- src/fabric/src/fabric_util.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fabric/src/fabric_util.erl b/src/fabric/src/fabric_util.erl index 19804e949..04b641a11 100644 --- a/src/fabric/src/fabric_util.erl +++ b/src/fabric/src/fabric_util.erl @@ -149,6 +149,9 @@ get_shard([#shard{node = Node, name = Name} | Rest], Opts, Timeout, Factor) -> throw(Error); {Ref, Reason} -> couch_log:debug("Failed to open shard ~p because: ~p", [Name, Reason]), + get_shard(Rest, Opts, Timeout, Factor); + _ -> + ?LOG_UNEXPECTED_MSG(Msg), get_shard(Rest, Opts, Timeout, Factor) end after Timeout ->
