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

Sqs2EndpointBuilder is not respecting delay - polling continuously

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • camel-aws2
    • None
    • Spring Boot 2.2.6

      org.apache.camel:camel-endpointdsl:3.2.0
      org.apache.camel.springboot:camel-aws2-sqs-starter:3.2.0

    • Unknown

    Description

      The `aws2Sqs`consumer is  not respecting the delay value and continuously polls every 500ms regardless of its setting in both the EndpointDSL and normal route builder string.

      Example:

      // build.gradle
      dependencies {
          implementation 'org.apache.camel:camel-endpointdsl:3.2.0'
          implementation 'org.apache.camel.springboot:camel-aws2-sqs-starter:3.2.0'
          ...
      }
      // EncodeQueueRoute.java
      ...
      @Component
      public class EncodeQueueRoute extends EndpointRouteBuilder {
          @Override
          public void configure() {
              from(aws2Sqs("queueName")
                      .useFixedDelay(true)
                      .delay(5000)
              ).to(file("data/output"));
          }
      } 
      

      I have tried both the EndpointDSL as well as normal Route builder,
      with useFixedDelay explicitly passed and without (it defaults to
      true).

       

      Original Mailing List Thread: https://camel.465427.n5.nabble.com/Sqs2EndpointBuilder-is-not-respecting-delay-polling-continuously-td5865730.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Burgess Brice
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: