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

BridgeExceptionHandlerToErrorHandler broken with DefaultErrorHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.14.0
    • 3.14.1, 3.15.0
    • came-core
    • None
    • Unknown

    Description

      Using BridgeExceptionHandlerToErrorHandler marks new Exchange as delivery exhausted

      exchange.adapt(ExtendedExchange.class).setRedeliveryExhausted(true);
      

      Link to Code

      but SimpleTask in RedeliveryErrorHandler must be not exhausted.

      boolean failure = exchange.getException() != null
          && !ExchangeHelper.isFailureHandled(exchange)
          && !exchange.isRedeliveryExhausted();
      
      if (failure) {
          // previous processing cause an exception
          handleException();
          onExceptionOccurred();
          prepareExchangeAfterFailure(exchange);
          // we do not support redelivery so continue callback
          AsyncCallback cb = callback;
          taskFactory.release(this);
          reactiveExecutor.schedule(cb);
      }
      

      Link to Code

      Seems to be broken somewhere after 3.7.x

      Attachments

        1. camel-bridge.zip
          2 kB
          Benjamin Graf

        Activity

          People

            davsclaus Claus Ibsen
            graben Benjamin Graf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: