FINERACT-1795: Improve resilience of command processing service
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
aa7747c5ce
commit
744abd1364
@@ -111,3 +111,26 @@ spring.main.allow-bean-definition-overriding=true
|
||||
spring.batch.initialize-schema=NEVER
|
||||
# Disabling Spring Batch jobs on startup
|
||||
spring.batch.job.enabled=false
|
||||
|
||||
resilience4j.retry.instances.executeCommand.max-attempts=3
|
||||
resilience4j.retry.instances.executeCommand.wait-duration=1s
|
||||
resilience4j.retry.instances.executeCommand.enable-exponential-backoff=true
|
||||
resilience4j.retry.instances.executeCommand.exponential-backoff-multiplier=2
|
||||
resilience4j.retry.instances.executeCommand.retryExceptions=org.springframework.dao.CannotAcquireLockException,org.springframework.orm.ObjectOptimisticLockingFailureException
|
||||
|
||||
resilience4j.retry.instances.processJobDetailForExecution.max-attempts=3
|
||||
resilience4j.retry.instances.processJobDetailForExecution.wait-duration=1s
|
||||
resilience4j.retry.instances.processJobDetailForExecution.enable-exponential-backoff=true
|
||||
resilience4j.retry.instances.processJobDetailForExecution.exponential-backoff-multiplier=2
|
||||
|
||||
resilience4j.retry.instances.recalculateInterest.max-attempts=3
|
||||
resilience4j.retry.instances.recalculateInterest.wait-duration=1s
|
||||
resilience4j.retry.instances.recalculateInterest.enable-exponential-backoff=true
|
||||
resilience4j.retry.instances.recalculateInterest.exponential-backoff-multiplier=2
|
||||
resilience4j.retry.instances.recalculateInterest.retryExceptions=org.springframework.dao.CannotAcquireLockException,org.springframework.orm.ObjectOptimisticLockingFailureException
|
||||
|
||||
resilience4j.retry.instances.postInterest.max-attempts=3
|
||||
resilience4j.retry.instances.postInterest.wait-duration=1s
|
||||
resilience4j.retry.instances.postInterest.enable-exponential-backoff=true
|
||||
resilience4j.retry.instances.postInterest.exponential-backoff-multiplier=2
|
||||
resilience4j.retry.instances.postInterest.retryExceptions=org.springframework.dao.CannotAcquireLockException,org.springframework.orm.ObjectOptimisticLockingFailureException
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
Feature: Commands Service
|
||||
Feature: Commands Provider
|
||||
|
||||
@template
|
||||
Scenario Outline: Verify that command providers are injected
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
|
||||
Feature: Commands Service
|
||||
|
||||
Scenario: Verify that command source write service are working with fallback function
|
||||
Given A command source write service
|
||||
When The user executes the command via a command write service with exceptions
|
||||
Then The command processing service should fallback as expected
|
||||
Then The command processing service execute function should be called 3 times
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
<logger name="org.springframework.transaction" level="INFO" />
|
||||
<logger name="org.springframework.data.convert" level="ERROR" />
|
||||
<logger name="org.springframework.http.converter.json" level="ERROR" />
|
||||
<logger name="io.github.resilience4j.retry" level="DEBUG" />
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT" />
|
||||
|
||||
Reference in New Issue
Block a user