github-actions[bot] commented on code in PR #70846:
URL: https://github.com/apache/doris/pull/70846#discussion_r4663292586
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateRoutineLoadInfo.java:
##########
@@ -637,9 +641,12 @@ public void checkJobProperties() throws UserException {
RoutineLoadJob.DEFAULT_MAX_FILTER_RATIO, MAX_FILTER_RATIO_PRED,
MAX_FILTER_RATIO_PROPERTY + " should between 0 and 1");
+ // Replay parses the original CREATE to rebuild load descriptors. A
later ALTER can have
+ // corrected an oversized interval. Do not cancel that job by applying
the new upper bound
+ // to its historical CREATE statement; keep the previous lower-bound
check during replay.
maxBatchIntervalS =
Util.getLongPropertyOrDefault(jobProperties.get(MAX_BATCH_INTERVAL_SEC_PROPERTY),
- RoutineLoadJob.DEFAULT_MAX_INTERVAL_SECOND,
MAX_BATCH_INTERVAL_PRED,
- MAX_BATCH_INTERVAL_SEC_PROPERTY + " should >= 1");
+ RoutineLoadJob.DEFAULT_MAX_INTERVAL_SECOND, isReplay ? (v) -> v >=
1 : MAX_BATCH_INTERVAL_PRED,
Review Comment:
[P1] Keep replayed routine-load intervals compatible with the BE task
contract. The new `isReplay ? (v) -> v >= 1` branch preserves an old job whose
`max_batch_interval` can exceed `INT64_MAX / 1000`, but Kafka/Kinesis task
builders send that value unchanged and `RoutineLoadTaskExecutor::submit_task`
now rejects it. `RoutineLoadTaskScheduler` treats this submit error as a
renew/requeue, so after upgrading a job with such a persisted interval it stays
RUNNING and can never start. Normalize the historical value or explicitly
transition the job to a reported terminal state instead of retaining an
unstartable job.
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/RuntimeFilterTranslator.java:
##########
@@ -405,7 +406,8 @@ private void
setWaitTimeMs(org.apache.doris.planner.RuntimeFilter filter,
SessionVariable sessionVar =
ConnectContext.get().getSessionVariable();
if (sessionVar.runtimeFilterWaitInfinitely || isLocalTarget) {
// wait infinitely
- filter.setWaitTimeMs(sessionVar.getQueryTimeoutS() * 1000);
+ // The wire field stores signed 32-bit milliseconds.
+
filter.setWaitTimeMs(Ints.saturatedCast(sessionVar.getQueryTimeoutS() * 1000L));
Review Comment:
[P2] Apply the same wide timeout conversion to the cloud planner path.
`NereidsPlanner.configRuntimeFilterWaitTime()` still computes `1000 *
sessionVariable.getQueryTimeoutS()` in `int`, so a valid
`query_timeout=2147484` wraps negative and falls back to the default short
runtime-filter wait even though this translator now saturates the per-filter
field. Widen before multiplying and clamp to the runtime-filter wait field's
range there as well.
--
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]