You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ya...@apache.org on 2025/03/06 03:12:53 UTC
(pinot) branch master updated: Fix memory leak in QueryDispatcher (#15201)
This is an automated email from the ASF dual-hosted git repository.
yashmayya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new d9ffa99285 Fix memory leak in QueryDispatcher (#15201)
d9ffa99285 is described below
commit d9ffa992855380c2c55ef78ddd2bd3a25abceeb6
Author: Yash Mayya <ya...@gmail.com>
AuthorDate: Thu Mar 6 08:42:47 2025 +0530
Fix memory leak in QueryDispatcher (#15201)
---
.../org/apache/pinot/query/service/dispatch/QueryDispatcher.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java b/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
index bd596b116d..58c925ea03 100644
--- a/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
+++ b/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
@@ -146,7 +146,13 @@ public class QueryDispatcher {
Set<QueryServerInstance> servers = new HashSet<>();
try {
submit(requestId, dispatchableSubPlan, timeoutMs, servers, queryOptions);
- return runReducer(requestId, dispatchableSubPlan, timeoutMs, queryOptions, _mailboxService);
+ try {
+ return runReducer(requestId, dispatchableSubPlan, timeoutMs, queryOptions, _mailboxService);
+ } finally {
+ if (isQueryCancellationEnabled()) {
+ _serversByQuery.remove(requestId);
+ }
+ }
} catch (Throwable e) {
// TODO: Consider always cancel when it returns (early terminate)
cancel(requestId, servers);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org