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

camel-aws - SQS option deleteAfterRead not work if set deleteIfFiltered=false

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.3
    • Fix Version/s: 2.17.4, 2.18.0
    • Component/s: camel-aws
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I'm using aws-sqs 2.17.3, if I set deleteAfterRead=true and deleteIfFiltered=false in my DSL, the message will not be deleted. If I want to delete the message after read it, I have to set deleteAfterRead and deleteIfFiltered both with true when I use the two options in one DSL, but in fact there is no filter in my route, the message should be removed whatever the deleteIfFiltered option set to ture or false.

      SqsConsumerDeleteTest.java
      from("aws-sqs:my-quque"
          + "?amazonSQSClient=#conn_cAWSConnection_1"
          + "&deleteAfterRead=" + true + "&deleteIfFiltered="
          + false).to("log:qs_route.cLog_1" + "?level=DEBUG").to("mock:mock_1");
      

      I attached my test file, after run the test method, the sqs message still exists in the sqs queue after 30 seconds.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                yanbasic Yi Yan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: