heguanhui opened a new issue, #71218: URL: https://github.com/apache/doris/issues/71218
Type: Bug Affected version / environment: master and maintained release branches; any multi-FE deployment where clients query information_schema.routine_load_jobs on a follower FE. Expected behavior: SELECT on information_schema.routine_load_jobs returns the same job STATE as SHOW ROUTINE LOAD, regardless of which FE receives the query. Actual behavior: On a follower FE, jobs that are RUNNING on the master are reported as NEED_SCHEDULE. SHOW ROUTINE LOAD returns the correct state because it forwards to the master, while the information_schema query is a normal SELECT that is not forwarded; its schema scan calls back into the local FE, which never replays RUNNING from the edit log. Automation or monitoring that reads STATE from this table on a follower can act on stale input, such as treating a running job as stuck and triggering false alarms or restart/scheduling actions. Reproduction / trigger: 1. Start a cluster with at least one follower FE and create a routine load job. 2. Wait until the job is RUNNING (SHOW ROUTINE LOAD shows RUNNING). 3. Connect to the follower FE and run: SELECT JOB_NAME, STATE FROM information_schema.routine_load_jobs WHERE JOB_NAME = '<job>'; 4. Observe STATE = NEED_SCHEDULE on the follower, while SHOW ROUTINE LOAD on the same FE shows RUNNING. Frequency: Always when the job is RUNNING on master and the query is planned on a follower; found by code review, reproducible with a multi-FE cluster. Scope / affected paths: FE planner SchemaScanNode.finalizeForNereids() callback address selection; BE schema scan RPC to FE; information_schema.routine_load_jobs (and by the same pattern, information_schema.load_jobs, which is not fixed here). Related: None known. -- 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]
