|
@@ -80,7 +80,6 @@ class ScriptedMetricAggregator extends MetricsAggregator {
|
|
|
|
|
|
leafMapScript.setDocument(doc);
|
|
|
leafMapScript.execute();
|
|
|
- CollectionUtils.ensureNoSelfReferences(aggState, "Scripted metric aggs map script");
|
|
|
}
|
|
|
};
|
|
|
}
|
|
@@ -103,4 +102,10 @@ class ScriptedMetricAggregator extends MetricsAggregator {
|
|
|
return new InternalScriptedMetric(name, null, reduceScript, pipelineAggregators(), metaData());
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ protected void doPostCollection() throws IOException {
|
|
|
+ CollectionUtils.ensureNoSelfReferences(aggState, "Scripted metric aggs map script");
|
|
|
+
|
|
|
+ super.doPostCollection();
|
|
|
+ }
|
|
|
}
|