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

Google Pubsub Component manual acknowledgement mode

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 4.4.0
    • camel-google-pubsub
    • None
    • Unknown

    Description

      The camel documentation states that there are two ways to acknowledge a Google pubsub message. They are "ackMode=AUTO" and "ackMode=NONE". If the mode is set to NONE, the document states that the "downstream process has to acknowledge explicitly". However there are no examples, or pointers on how to do that.

      The unit tests also do not reflect this scenario. The AckModeNoneTest.java sets the ackMode to NONE, and checks if the message is redelivered, but it doesn't test how to acknowledge the message. This file AcknowledgeSync.java has the steps to acknowledge, but it's not clear how to do that within a Camel route. It seems to need an class called com.google.cloud.pubsub.v1.stub.SubscriberStub that is passed into it.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rvenk Ramesh Venkitaswaran
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: