You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2023/01/13 10:17:00 UTC

[jira] [Comment Edited] (CAMEL-18912) Sqs2ConsumerHealthCheck is broken when using injected client

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

Andrea Cosentino edited comment on CAMEL-18912 at 1/13/23 10:16 AM:
--------------------------------------------------------------------

So you're using a client from the registry and it is autowired?


was (Author: ancosen):
So you're using a client from the registry?

> Sqs2ConsumerHealthCheck is broken when using injected client
> ------------------------------------------------------------
>
>                 Key: CAMEL-18912
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18912
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws2
>    Affects Versions: 3.19.0, 3.20.0, 3.20.1
>            Reporter: Simon Rasmussen
>            Priority: Major
>
> Cased by CAMEL-18466 where a new health check is introduced for the SQS component.
> The component creates it own client, but does so incorrectly as it fails to detect if a client is injected.
> Also, the client is created for every invocation of the health check which is not very efficient, a better solution would be to pass in the SqsClient to the health check itself.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)