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

Error starting SQS consumer due to config option missing that's required for producer only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.21.0
    • 2.23.2, 2.24.0, 2.22.4, 3.0.0
    • camel-aws
    • None
    • Unknown

    Description

      Currently if you consume from an SQS queue that is a FIFO queue and do not specify a messageGroupIdStrategy option the consumer fails to start with an error:

      Failed to resolve endpoint: aws-sqs://queue.name.fifo?accessKey=xxx&maxMessagesPerPoll=1&region=AP_SOUTHEAST_2&secretKey=xxx&visibilityTimeout=60 due to: messageGroupIdStrategy must be set for FIFO queues

      This parameter is used for producing only to set the GroupId on the messages sent to the queue and should not be checked as part of general endpoint configuration check. It should be checked in the producer, perhaps in org.apache.camel.component.aws.sqs.SqsProducer#configureFifoAttributes or in the constructor.

       

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              strelok1 Roman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m