Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18503

Configure max ack extension period parameter in PubSub subscriber

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.2
    • 3.18.3, 3.19.0
    • camel-google-pubsub
    • None
    • Unknown

    Description

      In recent versions 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) from being 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

       

      PR: https://github.com/apache/camel/pull/8363

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vpaturet Vincent Paturet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: