Vincent Paturet created CAMEL-18503:
---------------------------------------
Summary: Configure max ack extension period parameter in PubSub
subscriber
Key: CAMEL-18503
URL: https://issues.apache.org/jira/browse/CAMEL-18503
Project: Camel
Issue Type: New Feature
Components: camel-google-pubsub
Affects Versions: 3.18.2
Reporter: Vincent Paturet
In recent version of the Google PubSub client library, the message ack deadline
can be extended up to 1 hour by default before the message is marked as expired:
https://github.com/googleapis/java-pubsub/blob/9add53894981d862ac1348d0b641e472b3b3aa79/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java#L96
To prevent long-running operations (more than 1 hour) to be executed multiple
times due to message redelivery, it is necessary to configure the max ack
extension period to a higher value using
Subscriber.Builder.setMaxAckExtensionPeriod()
Proposed new feature: add a per-route parameter to configure the max ack
extension period:
google-pubsub:myProject:mySubscription?maxAckExtensionPeriod=14400
--
This message was sent by Atlassian Jira
(v8.20.10#820010)