Timeout in the Pipeline Executor connector
Learn why a synchronous call from the Pipeline Executor connector can time out even when the called pipeline executes successfully, and how to fix it.
Why does the timeout occur?
In a synchronous call from the Pipeline Executor connector, the origin pipeline waits for the destination pipeline to complete and return a response before it continues.
The Timeout value doesn't just measure how long the destination pipeline takes to process the message. It measures the whole round trip:
The origin pipeline sends the message.
The message waits in the destination pipeline's queue.
The destination pipeline processes the message.
The response goes back to the origin pipeline's queue.
The origin pipeline receives the response and continues.
Queue time counts toward the timeout in both directions. When the destination pipeline receives a high volume of executions, messages wait longer in its queue, and the response can take longer to reach the origin pipeline than the configured timeout allows, even if the destination pipeline itself finishes processing in time. When this happens, the destination pipeline returns a timeout error to the origin pipeline.
This typically happens when the number of calls exceeds the processing capacity of the destination pipeline, and results in an error like this:
The message could not be sent to the specified pipeline. Error org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 20000 millis due reply message with correlationID: Camel-…-… not received on destination: amq.gen-…. Exchange[…-…]Common causes
Check if your pipelines fit one of these scenarios:
The origin pipeline is deployed with more concurrent executions than the destination pipeline.
The origin pipeline can send more requests than the destination pipeline can process, so requests queue up on the destination side.
The destination pipeline is triggered by multiple flows at the same time.
The combined requests exceed the concurrent executions allowed in the destination pipeline's deployment.
Each deploy type allows a different maximum number of concurrent executions:
Small
10
Medium
20
Large
40
A mismatch between the origin and destination pipeline's deploy type is a common cause of this error. Watch for combinations like these:
Medium
Small
Large
Medium
Large
Small
Solution
Apply one of these fixes:
Increase the number of concurrent executions of the destination pipeline so it can handle more requests. This may require increasing the number of replicas.
If the operation can be asynchronous, change it to ASYNC, or use an event-based call so the queue manager controls traffic to the destination pipeline.
To learn more about how Pipeline Executor timeout works, read Pipeline Executor.
Last updated
Was this helpful?