You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Peter Palaga (JIRA)" <ji...@apache.org> on 2018/03/19 15:58:00 UTC

[jira] [Commented] (CAMEL-12379) Shutdown only AWS clients owned by the context

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

Peter Palaga commented on CAMEL-12379:
--------------------------------------

Looks like we have the same problem also for at least ec2, kinesis, s3, SNS and SQS.

> Shutdown only AWS clients owned by the context
> ----------------------------------------------
>
>                 Key: CAMEL-12379
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12379
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.21.0
>            Reporter: Peter Palaga
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 2.21.1, 2.22.0
>
>
> This is caused by https://github.com/apache/camel/commit/0a34a3ccfdf487b2e855c0ed567b479a49bcd51e that calls {{ddbClient.shutdown()}} on endpoint shutdown.
> As it happens we have a test in WildFly Camel that does roughly the following;
>  * It first binds a client instance we claim to own (because we created it ourselves) to a camelctx
>  * It does some route invocations and assertions
>  * It stops the camelctx
>  * And finally it wants to delete all Dynamo tables it has created
> The last point cannot succeed because the client is closed.
> The test is here https://github.com/wildfly-extras/wildfly-camel/blob/7c9c67362b324043f6ad95e4233330c2d160e9c3/itests/standalone/extra/src/test/java/org/wildfly/camel/test/aws/DynamoDBIntegrationTest.java#L58
> We tend to think that camel should only close the resources it owns. It it is us who created a resource and bound it manually to a name, we expect not to loose the ownership by that. Camel should thus destroy only resources it has created itself.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)