MCPcopy Create free account
hub / github.com/crate/crate / retryQuery

Method retryQuery

server/src/main/java/io/crate/session/Session.java:295–318  ·  view source on GitHub ↗
(UUID jobId,
                            AnalyzedStatement stmt,
                            RoutingProvider routingProvider,
                            RowConsumer consumer,
                            Row params,
                            CoordinatorTxnCtx txnCtx,
                            TimeoutToken timeoutToken)

Source from the content-addressed store, hash-verified

293 }
294
295 private void retryQuery(UUID jobId,
296 AnalyzedStatement stmt,
297 RoutingProvider routingProvider,
298 RowConsumer consumer,
299 Row params,
300 CoordinatorTxnCtx txnCtx,
301 TimeoutToken timeoutToken) {
302 PlannerContext plannerContext = planner.createContext(
303 routingProvider,
304 jobId,
305 txnCtx,
306 0,
307 params,
308 cursors,
309 currentTransactionState,
310 timeoutToken
311
312 );
313 Plan plan = planner.plan(stmt, plannerContext);
314 if (timeoutToken != null) {
315 timeoutToken.check("retry:plan");
316 }
317 Plan.execute(plan, executor, plannerContext, consumer, params, SubQueryResults.EMPTY);
318 }
319
320 private Portal getSafePortal(String portalName) {
321 Portal portal = portals.get(portalName);

Callers 2

quickExecMethod · 0.95
singleExecMethod · 0.95

Calls 4

executeMethod · 0.95
checkMethod · 0.65
createContextMethod · 0.45
planMethod · 0.45

Tested by

no test coverage detected