[
https://issues.apache.org/jira/browse/CAMEL-27033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Saravanakumar Selvaraj reassigned CAMEL-27033:
----------------------------------------------
Assignee: Saravanakumar Selvaraj
> camel-alibaba-mns: the producer and the consumer read the client again after
> initClient and can get null
> --------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27033
> URL: https://issues.apache.org/jira/browse/CAMEL-27033
> Project: Camel
> Issue Type: Bug
> Affects Versions: 4.23.0
> Reporter: Saravanakumar Selvaraj
> Assignee: Saravanakumar Selvaraj
> Priority: Minor
>
> Follow-up to CAMEL-27003, as suggested in the review of
> https://github.com/apache/camel/pull/30120.
> MNSEndpoint.initClient() returns nothing. After calling it,
> MNSProducer.process and MNSConsumer.poll read the client again with
> endpoint.getMnsClient(). If the endpoint stops between the two calls, doStop
> has closed the client and set the field to null, so the producer or the
> consumer gets null.
> Possible fix: let MNSEndpoint.initClient return the client, and let the
> producer and the consumer use the returned client.
> _Claude Code on behalf of saravanakumar1987_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)