camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Woodforth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10340) camel-aws - SQS option deleteAfterRead not work if set deleteIfFiltered=false
Date Wed, 23 Nov 2016 10:14:58 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15689662#comment-15689662
] 

Jon Woodforth commented on CAMEL-10340:
---------------------------------------

I don't think the table from [~yanbasic] is 100% correct.  I've posted my interpretation (https://github.com/apache/camel/commit/50dc4ea14c0ad6d3d93cfe4ddb386a006d1fafcc).

Please have a look and correct my understanding!!

Thanks everyone for the amazingly quick replies!!!

> camel-aws - SQS option deleteAfterRead not work if set deleteIfFiltered=false
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-10340
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10340
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.17.3
>            Reporter: Yi Yan
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 2.18.0, 2.17.4
>
>         Attachments: SqsConsumerDeleteTest.java
>
>
> 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.
> {code:title=SqsConsumerDeleteTest.java|borderStyle=solid}
> 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");
> {code}
> I attached my test file, after run the test method, the sqs message still exists in the
sqs queue after 30 seconds.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message