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

SQS Endpoint initialization fails to page queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 3.7.5
    • None
    • camel-aws
    • None
    • Unknown

    Description

      The doInit() method ignores the name of the queue when checking whether the queue already exists:

      ListQueuesResult listQueuesResult = client.listQueues();

      The issue is that method only returns 1000 results and the queue that my code is looking for is in the next page of results resulting in an  AWS.SimpleQueueService.NonExistentQueue error. The code doesn't use the pagination feature of the API. 

      The Sqs2Endpoint class of the master branch has the correct pagination logic.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            angelogalvao Angelo Galvão
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: