Rajat Venkatesh
05/29/2025, 5:05 AMRajat Venkatesh
05/29/2025, 5:05 AMRajat Venkatesh
06/05/2025, 5:08 AMRajat Venkatesh
06/05/2025, 2:31 PMVivek Iyer Vaidyanathan
06/09/2025, 3:55 AMRajat Venkatesh
06/09/2025, 4:02 AMRajat Venkatesh
06/16/2025, 3:21 PMVivek Iyer Vaidyanathan
06/18/2025, 11:26 PMRajat Venkatesh
06/19/2025, 2:01 AMVivek Iyer Vaidyanathan
06/19/2025, 7:56 PMRajat Venkatesh
06/20/2025, 5:35 AMRajat Venkatesh
06/21/2025, 9:37 AMif (shouldKill) {
_queryRunner.cancel(maxUsageTuple._queryId, /* maybe an extra parameter that this is a system cancel */);
}
• _queryRunner
has been injected during construction of the watcher task in BaseServerStarter
.
• _queryRunner
maintains a queryId -> FutureTask
map.
• PerQuery...Accountant
forces a queryId -> Thread
map through many thread locals that have to be maintained and setup correctly rather than using the map that already exists.
Instead the current architecture tries to store a handle to a root thread in a thread local. IMO the OOM design has painted itself into a bad design corner and is forcing us to make bad design calls.
https://github.com/apache/pinot/pull/16142Rajat Venkatesh
06/23/2025, 10:07 AMPraveen Kumar Chaganlal
06/24/2025, 3:00 AMRajat Venkatesh
06/26/2025, 4:55 AMRajat Venkatesh
06/26/2025, 4:58 AMQueryAggregator
a replacement for the WatcherTask
? Can you extract that out and merge it separately. After the thread-local, the embedded watcher task is the top-most pain and needs to be junked. One more required improvement in it is to support updates of some configs like critical and panic threshholds during runtime.Vivek Iyer Vaidyanathan
06/26/2025, 5:09 PMQueryAggregator
a replacement for the WatcherTask
Not fully the case. The watcher task still exists in the main ResourceUsageAccountant. But how the aggregation is done differs between the QueryAggregator
(this just has logic copied over from PerQueryCPUMem....
) and WorkloadAggregator
.
Agree on the watcher task being the pain-point. But we should perhaps take up together after this code is merged. Thoughts?Vivek Iyer Vaidyanathan
06/26/2025, 8:25 PMRajat Venkatesh
06/27/2025, 3:30 AMRajat Venkatesh
06/27/2025, 3:31 AMVivek Iyer Vaidyanathan
06/27/2025, 6:40 AMRajat Venkatesh
06/27/2025, 3:02 PMVivek Iyer Vaidyanathan
07/07/2025, 6:44 PMRajat Venkatesh
07/08/2025, 10:45 AMRajat Venkatesh
07/18/2025, 4:28 AMPraveen Kumar Chaganlal
07/18/2025, 4:31 AMRajat Venkatesh
07/22/2025, 5:33 AM