Repository navigation
v3 circuit breaker - #683
Conversation
Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
Code Coverage
|
Code Coverage
|
419d0f6 to
0aad6d0
Compare
Code Coverage
|
| case ffwAdapter -> | ||
| new ErrorResponse(NakshaError.NOT_IMPLEMENTED, "Writing not supported by underlying storage"); | ||
| case dataHubConnector -> | ||
| new ConnectorInterfaceWriteExecute(getNakshaContext(), request, getRequestSender()).execute(); |
There was a problem hiding this comment.
I think we need also to move default as we did in ReadSession
There was a problem hiding this comment.
I removed the default and converted the ReadSession switch to a switch expression, consistent with the write switch.
| || cbConfig.getSlowCallRateThreshold() == null | ||
| || cbConfig.getWaitDurationInOpenStateMs() == null | ||
| || cbConfig.getPermittedNumberOfCallsInHalfOpenState() == null) { | ||
| throw new IllegalArgumentException("circuitBreaker configuration is iconcomplete"); |
Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
Code Coverage
|
| "headers": { | ||
| "Authorization": "Bearer token123" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
Let us stick with "circuitBreakerConfig" everywhere. There is an issue with v2 implementation and already raised a MR for this.
| "Authorization": "Bearer <token>", | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
| "Authorization": "Bearer <token>", | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
| "Authorization": "Bearer <token>", | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
| "Authorization": "Bearer <token>", | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
| "Authorization": "Bearer <token>", | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
| "Authorization": "Bearer <token>", | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "circuitBreaker": { |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
| private static final String HEADERS = "headers"; | ||
|
|
||
| private static final String HTTP_INTERFACE = "httpInterface"; | ||
| private static final String CIRCUIT_BREAKER = "circuitBreaker"; |
There was a problem hiding this comment.
"circuitBreakerConfig" instead of "circuitBreaker"
Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
Code Coverage
|
No description provided.