Alex Dettinger created CAMEL-16789:
--------------------------------------

             Summary: faulttolerance: timeoutScheduledExecutorServiceRef and 
bulkHead* to be deprecated ?
                 Key: CAMEL-16789
                 URL: https://issues.apache.org/jira/browse/CAMEL-16789
             Project: Camel
          Issue Type: Task
            Reporter: Alex Dettinger


It looks like faulttolerance *timeoutScheduledExecutorServiceRef* and 
*bulkHead** have no effect.

[FaultToleranceConfiguration.getTimeoutScheduledExecutorServiceRef()|https://github.com/apache/camel/blob/main/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceConfiguration.java#L89..L91]
 is never called from camel code, so the configured value is never reified into 
an actual processor as far as I get it.

Concerning bulkHead*, the [FaultToleranceReifier does not 
propagate|https://github.com/apache/camel/blob/main/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceReifier.java#L103..L108]
 the bulkHeadEnabled boolean by calling something like 
*target.setBulkheadEnabled(true);*

As such, the FaultToleranceProcessor never actually executes the 
[doStart()|https://github.com/apache/camel/blob/main/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceProcessor.java#L348..L352]
 and 
[process()|https://github.com/apache/camel/blob/main/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceProcessor.java#L239..L243]
 code related to bulkhead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to