camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10340) camel-aws - SQS option deleteAfterRead not work if set deleteIfFiltered=false
Date Fri, 30 Sep 2016 11:17:20 GMT

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

ASF GitHub Bot commented on CAMEL-10340:
----------------------------------------

GitHub user yanbasic opened a pull request:

    https://github.com/apache/camel/pull/1193

    CAMEL-10340: Adjusted deleteIfFiltered behavior for aws-sqs component

    Hello, 
    
    Please review my code by fixing CAMEL-10340.
    
    Thanks,
    Yi Yan

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yanbasic/camel master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1193.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1193
    
----
commit 631e463c8c710965b6b7c35cde19250c3c0e5ac1
Author: Mike Yan <yyan@talend.com>
Date:   2016-09-30T11:13:44Z

    CAMEL-10340: Adjusted deleteIfFiltered behavior for aws-sqs component

----


> 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
>            Priority: Minor
>         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