[
https://issues.apache.org/jira/browse/CAMEL-20992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-20992:
--------------------------------
Issue Type: Bug (was: Improvement)
> azure-service-bus component: When using RECEIVE_AND_DELETE mode, the
> ServiceBusConsumer onComplete and onFailure methods logs errors
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-20992
> URL: https://issues.apache.org/jira/browse/CAMEL-20992
> Project: Camel
> Issue Type: Bug
> Components: camel-azure
> Affects Versions: 4.5.0, 4.6.0, 4.7.0
> Environment: Ubuntu in WSL2 with jbang
> tested with
> camel run route.yaml --camel-version 4.5.0
> camel run route.yaml --camel-version 4.6.0
> camel run route.yaml --camel-version 4.7.0
> Reporter: Romain Pfund
> Assignee: Dylan Piergies
> Priority: Minor
> Fix For: 4.8.0
>
> Attachments: testRoute.yaml, testRoute_deadlettering.yaml,
> testRoute_onComplete.yaml
>
>
> Here's the error message I get from camel 4.5.0 and above (tested with 4.7.0)
> in RECEIVE_AND_DELETE mode:
> Route end without failure, so the onComplete method is called:
> {code:java}
> ...
> ERROR 2019 --- [ receiverPump-2] cebus.ServiceBusReceiverAsyncClient :
> 'COMPLETED' is not supported on a receiver opened in
> ReceiveMode.RECEIVE_AND_DELETE.
> ...{code}
>
> Route end with failure, so the onFailure method is called
> enableDeadLettering: false:
> {code:java}
> ...
> ERROR 4015 --- [ receiverPump-2] cebus.ServiceBusReceiverAsyncClient :
> 'ABANDONED' is not supported on a receiver opened in
> ReceiveMode.RECEIVE_AND_DELETE
> ...{code}
> same with enableDeadLettering: true:
> {code:java}
> ...
> ERROR 281 --- [ receiverPump-2] servicebus.ServiceBusReceiverAsyncClient :
> 'SUSPENDED' is not supported on a receiver opened in
> ReceiveMode.RECEIVE_AND_DELETE.
> ...{code}
> There is no functional problem with that, the message is correctly consume
> from the subscription.
> But we should avoid unnecessarily ERROR level log, so the
> abandon|complete|deadletter should not be call in RECEIVE_AND_DELETE mode
--
This message was sent by Atlassian Jira
(v8.20.10#820010)