Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Aug 19, 2024
1 parent c20f12c commit 1052ead
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private void addBaseMetrics(MetricStat metricStat, Set<MetricStat> metricSet) {
Queue<MetricStat> metricQueue = new LinkedList<>(metricStat.getBaseMetrics());
while (metricQueue.isEmpty() == false) {
MetricStat metric = metricQueue.poll();
if (metric.isDerivedMetric()) {
if (metric.isDerivedMetric() && !metricSet.contains(metric)) {
metricQueue.addAll(metric.getBaseMetrics());

Check warning on line 289 in server/src/main/java/org/opensearch/index/mapper/StarTreeMapper.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/index/mapper/StarTreeMapper.java#L289

Added line #L289 was not covered by tests
}
metricSet.add(metric);
Expand Down

0 comments on commit 1052ead

Please sign in to comment.