github-actions[bot] commented on code in PR #62836:
URL: https://github.com/apache/doris/pull/62836#discussion_r3144650586
##########
fe/fe-core/src/main/java/org/apache/doris/qe/PointQueryExecutor.java:
##########
@@ -307,80 +307,63 @@ private RowBatch getNextInternal(Status status, Backend
backend) throws TExcepti
long timeoutTs = System.currentTimeMillis() + timeoutMs;
RowBatch rowBatch = new RowBatch();
InternalService.PTabletKeyLookupResponse pResult = null;
+ boolean includeQueryContext = true;
try {
Preconditions.checkNotNull(shortCircuitQueryContext.serializedDescTable);
- InternalService.PTabletKeyLookupRequest.Builder requestBuilder
- = InternalService.PTabletKeyLookupRequest.newBuilder()
- .setTabletId(tabletID)
- .setDescTbl(shortCircuitQueryContext.serializedDescTable)
-
.setOutputExpr(shortCircuitQueryContext.serializedOutputExpr)
-
.setQueryOptions(shortCircuitQueryContext.serializedQueryOptions)
- .setIsBinaryRow(ConnectContext.get().command ==
MysqlCommand.COM_STMT_EXECUTE);
- // Set timezone for functions like from_unixtime
- String timeZone =
ConnectContext.get().getSessionVariable().getTimeZone();
- if ("CST".equals(timeZone)) {
- timeZone = "Asia/Shanghai";
+ boolean allowLightweight = Config.enable_lightweight_lookup_request
Review Comment:
This changes the FE->BE request contract without a mixed-version fallback.
Once `enable_lightweight_lookup_request` is enabled, FE can send a request that
omits `desc_tbl` / `output_expr` / `query_options`, and FE only retries with
the full payload if BE returns the new `need_resend_query_context` flag. An
older BE in a rolling upgrade will never send that flag, so a cache miss on
that replica becomes a normal non-OK response instead of a transparent resend.
In practice that means prepared-statement point queries can fail against
mixed-version clusters or immediately after talking to an older/restarted BE
with an empty lookup cache. This path needs either a BE capability/version gate
before sending lightweight requests, or a fallback-to-full-request path on the
compatibility failure instead of treating it as an ordinary backend error.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]