summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/externaloperationhandlertest.cpp
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@oath.com>2018-11-19 13:50:02 +0000
committerTor Brede Vekterli <vekterli@oath.com>2018-11-19 13:50:57 +0000
commit12b590416c164ef763896f2ce3f7e7f6ce600183 (patch)
tree66fed959caa741faf50ed543905d6f72072e85fe /storage/src/tests/distributor/externaloperationhandlertest.cpp
parent5a591f4c70ae2ec28a3bc32e32434ccd36694b40 (diff)
Add explicit metric for diverging timestamps on updated documents
Easier to track across nodes than hunting for log warnings.
Diffstat (limited to 'storage/src/tests/distributor/externaloperationhandlertest.cpp')
-rw-r--r--storage/src/tests/distributor/externaloperationhandlertest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/src/tests/distributor/externaloperationhandlertest.cpp b/storage/src/tests/distributor/externaloperationhandlertest.cpp
index 54aca78d13d..a9956712679 100644
--- a/storage/src/tests/distributor/externaloperationhandlertest.cpp
+++ b/storage/src/tests/distributor/externaloperationhandlertest.cpp
@@ -62,12 +62,20 @@ class ExternalOperationHandlerTest : public CppUnit::TestFixture,
.safe_time_not_reached.getLongValue("count");
}
+ int64_t safe_time_not_reached_metric_count(const metrics::LoadMetric<UpdateMetricSet>& metrics) const {
+ return metrics[documentapi::LoadType::DEFAULT].failures.safe_time_not_reached.getLongValue("count");
+ }
+
int64_t concurrent_mutatations_metric_count(
const metrics::LoadMetric<PersistenceOperationMetricSet>& metrics) const {
return metrics[documentapi::LoadType::DEFAULT].failures
.concurrent_mutations.getLongValue("count");
}
+ int64_t concurrent_mutatations_metric_count(const metrics::LoadMetric<UpdateMetricSet>& metrics) const {
+ return metrics[documentapi::LoadType::DEFAULT].failures.concurrent_mutations.getLongValue("count");
+ }
+
void set_up_distributor_for_sequencing_test();
const vespalib::string _dummy_id{"id:foo:testdoctype1::bar"};