You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/10/31 09:51:02 UTC
[GitHub] [camel-karavan] davsclaus opened a new issue, #506: Using resilienc4j as circuit breaker - error in generated yaml
davsclaus opened a new issue, #506:
URL: https://github.com/apache/camel-karavan/issues/506
```
- route:
from:
uri: timer:yaml
steps:
- setBody:
expression:
constant:
expression: Hello Camel from yaml
- circuitBreaker:
steps:
- throwException:
message: Forced error
exceptionType: java.lang.IllegalArgument
resilience4jConfiguration:
resilience4jConfiguration:
minimumNumberOfCalls: 5
failureRateThreshold: 50
- log:
message: ${body}
parameters:
period: '1000'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #506: Using resilienc4j as circuit breaker - error in generated yaml
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #506:
URL: https://github.com/apache/camel-karavan/issues/506#issuecomment-1297107210
Its the same for MP fault tolerance
```
- circuitBreaker:
steps:
- throwException:
message: Forced error
exceptionType: java.lang.IllegalArgumentException
faultToleranceConfiguration:
faultToleranceConfiguration:
successThreshold: 10
```
There are 2 x configuration
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #506: Using resilienc4j as circuit breaker - error in generated yaml
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #506:
URL: https://github.com/apache/camel-karavan/issues/506#issuecomment-1297015732
Here is a working example
```
- route:
from:
uri: timer:yaml
steps:
- setBody:
expression:
constant:
expression: Hello Camel from yaml
- circuitBreaker:
steps:
- throwException:
message: Forced error
exceptionType: java.lang.IllegalArgumentException
resilience4jConfiguration:
minimumNumberOfCalls: 10
failureRateThreshold: 50
- log:
message: ${body}
parameters:
period: '1000'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #506: Using resilienc4j as circuit breaker - error in generated yaml
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #506:
URL: https://github.com/apache/camel-karavan/issues/506#issuecomment-1296848067
It seems that this
```
resilience4jConfiguration:
resilience4jConfiguration:
```
Should just be once, eg
```
resilience4jConfiguration:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin closed issue #506: Using resilienc4j as circuit breaker - error in generated yaml
Posted by GitBox <gi...@apache.org>.
mgubaidullin closed issue #506: Using resilienc4j as circuit breaker - error in generated yaml
URL: https://github.com/apache/camel-karavan/issues/506
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #506: Using resilienc4j as circuit breaker - error in generated yaml
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #506:
URL: https://github.com/apache/camel-karavan/issues/506#issuecomment-1296848554
Unsupported field: resilience4jConfiguration
in file:mycb.yaml, line 16, column 17:
minimumNumberOfCalls: 5
^
at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.handleUnknownProperty(YamlDeserializerBase.java:132)
at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.setProperties(YamlDeserializerBase.java:126)
at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:65)
at org.apache.camel.dsl.yaml.common.YamlDeserializationContext$1.construct(YamlDeserializationContext.java:171)
at org.apache.camel.dsl.yaml.common.YamlDeserializerSupport.asType(YamlDeserializerSupport.java:332)
at org.apache.camel.dsl.yaml.deserializers.ModelDeserializers$CircuitBreakerDefinitionDeserializer.setProperty(ModelDeserializers.java:1735)
at org.apache.camel.dsl.yaml.deserializers.ModelDeserializers$CircuitBreakerDefinitionDeserializer.setProperty(ModelDeserializers.java:1676)
at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.setProperties(YamlDeserializerBase.java:125)
at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:65)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org