Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20992

azure-service-bus component: When using RECEIVE_AND_DELETE mode, the ServiceBusConsumer onComplete and onFailure methods logs errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.5.0, 4.6.0, 4.7.0
    • 4.8.0
    • camel-azure
    • None
    • 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

    • Novice

    Description

      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:

      ... 
      ERROR 2019 --- [ receiverPump-2] cebus.ServiceBusReceiverAsyncClient : 'COMPLETED' is not supported on a receiver opened in ReceiveMode.RECEIVE_AND_DELETE. 
      ...

       

      Route end with failure, so the onFailure method is called

      enableDeadLettering: false:

      ... 
      ERROR 4015 --- [ receiverPump-2] cebus.ServiceBusReceiverAsyncClient : 'ABANDONED' is not supported on a receiver opened in ReceiveMode.RECEIVE_AND_DELETE 
      ...

      same with enableDeadLettering: true:

      ... 
      ERROR 281 --- [ receiverPump-2] servicebus.ServiceBusReceiverAsyncClient : 'SUSPENDED' is not supported on a receiver opened in ReceiveMode.RECEIVE_AND_DELETE. 
      ...

      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

      Attachments

        1. testRoute_deadlettering.yaml
          0.4 kB
          Romain Pfund
        2. testRoute_onComplete.yaml
          0.3 kB
          Romain Pfund
        3. testRoute.yaml
          0.4 kB
          Romain Pfund

        Issue Links

          Activity

            People

              dlp Dylan Piergies
              romain-pfund Romain Pfund
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: