Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhant Deshmukh <[email protected]>
  • Loading branch information
deshsidd committed Sep 4, 2024
1 parent 357d2cd commit d891909
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void addToMaxPQPromoteToMinPQ(SearchQueryRecord aggregateSearchQueryReco
}

private boolean checkMaxGroupsLimitReached(String groupId) {
if (maxGroups <= maxHeapQueryStore.size()) {
if (maxGroups <= maxHeapQueryStore.size() && minHeapTopQueriesStore.size() >= topNSize) {
log.warn(
"Exceeded [{}] setting threshold which is set at {}. Discarding new group with id {}.",
TOP_N_QUERIES_MAX_GROUPS_EXCLUDING_N.getKey(),
Expand Down

0 comments on commit d891909

Please sign in to comment.