Report a stat that captures every time we've set a vbucket's HLC
from a peer who is ahead of the threshold of the node.
Change-Id: I7b7d73b5044afd2a4cfcc2d8ed43e9018b478f19
Reviewed-on: http://review.couchbase.org/68272
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
replicaCountVisitor.getTotalHLCDriftExceptionCounters().behind,
add_stat, cookie);
+ // A single total for ahead exceptions accross all active/replicas
+ add_casted_stat("ep_clock_cas_drift_threshold_exceeded",
+ activeCountVisitor.getTotalHLCDriftExceptionCounters().ahead +
+ replicaCountVisitor.getTotalHLCDriftExceptionCounters().ahead,
+ add_stat, cookie);
+
return ENGINE_SUCCESS;
}
"ep_chk_persistence_remains",
"ep_chk_persistence_timeout",
"ep_chk_remover_stime",
+ "ep_clock_cas_drift_threshold_exceeded",
"ep_commit_num",
"ep_commit_time",
"ep_commit_time_total",