Skip to content

Commit f638796

Browse files
committed
Revert "timer"
This reverts commit 775f402. Signed-off-by: Vinay Krishna Pudyodu <[email protected]>
1 parent 775f402 commit f638796

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalTerms.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ For backward compatibility, we disable the merge sort and use ({@link InternalTe
458458
}
459459
final B[] list;
460460
if (reduceContext.isFinalReduce() || reduceContext.isSliceLevel()) {
461-
long startTime = System.nanoTime();
462461
final int size = Math.min(localBucketCountThresholds.getRequiredSize(), reducedBuckets.size());
463462

464463
Comparator<MultiBucketsAggregation.Bucket> cmp = order.comparator();
@@ -505,9 +504,6 @@ For backward compatibility, we disable the merge sort and use ({@link InternalTe
505504
list = createBucketsArray(selectSize);
506505
if (selectSize >= 0) System.arraycopy(reducedBucketsFinal, 0, list, 0, selectSize);
507506
Arrays.sort(list, cmp);
508-
long endTime = System.nanoTime();
509-
long duration = endTime - startTime;
510-
System.out.println("Method took: " + duration / 1_000_000 + " milliseconds");
511507
} else {
512508
// we can prune the list on partial reduce if the aggregation is ordered by key
513509
// and not filtered (minDocCount == 0)

0 commit comments

Comments
 (0)