Skip to main content

Routine Load FAQ

This document records common issues, bug fixes, and optimization improvements related to Routine Load in Doris. It will be updated periodically.

Major Bug Fixes

Issue DescriptionTrigger ConditionsImpact ScopeTemporary SolutionAffected VersionsFixed VersionsFix PR
When at least one job times out while connecting to Kafka, it affects the import of other jobs, slowing down global Routine Load imports.At least one job times out while connecting to Kafka.Shared-nothing and shared-storageStop or manually pause the job to resolve the issue.<2.1.9 <3.0.52.1.9 3.0.5#47530
User data may be lost after restarting the FE Master.The job's offset is set to OFFSET_END, and the FE is restarted.Shared-storageChange the consumption mode to OFFSET_BEGINNING.3.0.2-3.0.43.0.5#46149
A large number of small transactions are generated during import, causing compaction to fail and resulting in continuous -235 errors.Doris consumes data too quickly, or Kafka data flow is in small batches.Shared-nothing and shared-storagePause the Routine Load job and execute the following command: ALTER ROUTINE LOAD FOR jobname FROM kafka ("property.enable.partition.eof" = "false");<2.1.8 <3.0.42.1.8 3.0.4#45528, #44949, #39975
Kafka third-party library destructor hangs, causing data consumption to fail.Kafka topic deletion (possibly other conditions).Shared-nothing and shared-storageRestart all BE nodes.<2.1.8 <3.0.42.1.8 3.0.4#44913
Routine Load scheduling hangs.Timeout occurs when FE aborts a transaction in Meta Service.Shared-storageRestart the FE node.<3.0.23.0.2#41267
Routine Load restart issue.Restarting BE nodes.Shared-nothing and shared-storageManually resume the job.<2.1.7 <3.0.22.1.7 3.0.2#3727

Default Configuration Optimizations

Optimization ContentApplied VersionsCorresponding PR
Increased the timeout duration for Routine Load.2.1.7 3.0.3#42042, #40818
Adjusted the default value of max_batch_interval.2.1.8 3.0.3#42491
Removed the restriction on max_batch_interval.2.1.5 3.0.0#29071
Adjusted the default values of max_batch_rows and max_batch_size.2.1.5 3.0.0#36632

Observability Optimizations

Optimization ContentApplied VersionsCorresponding PR
Added observability-related metrics.3.0.5#48209, #48171, #48963