Merge remote-tracking branch 'smithsz/2819-db-create-check-already-exists'
diff --git a/priv/stats_descriptions.cfg b/priv/stats_descriptions.cfg
index a65263c..0c2351b 100644
--- a/priv/stats_descriptions.cfg
+++ b/priv/stats_descriptions.cfg
@@ -1,3 +1,7 @@
+{[fabric, worker, timeouts], [
+ {type, counter},
+ {desc, <<"number of worker timeouts">>}
+]}.
{[fabric, read_repairs, success], [
{type, counter},
{desc, <<"number of successful read repair operations">>}
diff --git a/src/fabric_util.erl b/src/fabric_util.erl
index 7b2ed75..ef40484 100644
--- a/src/fabric_util.erl
+++ b/src/fabric_util.erl
@@ -152,6 +152,8 @@
end.
log_timeout(Workers, EndPoint) ->
+ CounterKey = [fabric, worker, timeouts],
+ couch_stats:increment_counter(CounterKey),
lists:map(fun(#shard{node=Dest, name=Name}) ->
Fmt = "fabric_worker_timeout ~s,~p,~p",
couch_log:error(Fmt, [EndPoint, Dest, Name])