From bbfb061bf2f6c2a3448d3afaef256d98c032bd4b Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Tue, 16 Apr 2024 22:04:44 +0100 Subject: [BUG] Make failed async task report failure on Kafka topic - In event of async task timeout, error code 102 (DMI_SERVICE_NOT_RESPONDING) is sent to client topic. - In event of unexpected error (such as database unavailable), error code 108 (UNKNOWN_ERROR) is sent to client topic. - The default timeouts have been adjusted so that the task timeout (60s) is longer than the HTTP and Database timeouts (30s), so that expected codes are returned. Issue-ID: CPS-2186 Signed-off-by: danielhanrahan Change-Id: I84c3447a625e084c445ab2f5c01e2b32a0c971ac --- integration-test/src/test/resources/application.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'integration-test/src') diff --git a/integration-test/src/test/resources/application.yml b/integration-test/src/test/resources/application.yml index 3d61bdbea6..6fd3bcae4e 100644 --- a/integration-test/src/test/resources/application.yml +++ b/integration-test/src/test/resources/application.yml @@ -48,7 +48,7 @@ spring: minimumIdle: 5 maximumPoolSize: 80 idleTimeout: 60000 - connectionTimeout: 120000 + connectionTimeout: 30000 leakDetectionThreshold: 30000 pool-name: CpsDatabasePool @@ -120,7 +120,7 @@ notification: queue-capacity: 500 wait-for-tasks-to-complete-on-shutdown: true thread-name-prefix: Async- - time-out-value-in-ms: 2000 + time-out-value-in-ms: 60000 springdoc: swagger-ui: @@ -165,7 +165,7 @@ logging: ncmp: dmi: httpclient: - connectionTimeoutInSeconds: 180 + connectionTimeoutInSeconds: 30 maximumConnectionsPerRoute: 50 maximumConnectionsTotal: 100 idleConnectionEvictionThresholdInSeconds: 5 -- cgit