You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/09/13 00:07:43 UTC

[GitHub] [pinot] siddharthteotia commented on pull request #9386: Terminate the query after plan generation if timeout

siddharthteotia commented on PR #9386:
URL: https://github.com/apache/pinot/pull/9386#issuecomment-1244729926

   What about `timeOut` during per segment `planNode` creation, that is before execute is called and physical operators are created. ? Can happen for extremely large number of segments I guess. 
   
   ```
   Plan queryPlan =
             enableStreaming ? _planMaker.makeStreamingInstancePlan(selectedSegments, queryContext, executorService,
                 responseObserver, _serverMetrics) : _planMaker.makeInstancePlan(selectedSegments, queryContext,
                 executorService, _serverMetrics);
         planBuildTimer.stopAndRecord();
   ```
   
   ^^ can potentially timeOut
   
         ```
   TimerContext.Timer planExecTimer = timerContext.startNewPhaseTimer(ServerQueryPhase.QUERY_PLAN_EXECUTION);
         DataTable dataTable = queryContext.isExplain() ? processExplainPlanQueries(queryPlan) : queryPlan.execute();
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org