diff options
author | ramverma <ram.krishna.verma@ericsson.com> | 2018-09-21 11:09:58 +0100 |
---|---|---|
committer | ramverma <ram.krishna.verma@ericsson.com> | 2018-09-21 17:40:10 +0100 |
commit | 6931309e2969dbf7be71777f048dcab4830d1c05 (patch) | |
tree | 4c1b51e9cc2bbce0a28460a21564380c3bac818a /plugins/reception-plugins/src/test/resources/handling-sdc.json | |
parent | b15571184fabee50986f38f40577b87281e8765c (diff) |
Adding retry logic for SDC Client in Distribution
* SdcReceptionHandler in distribution tries to initialize & start the
SDC Client when distribution framework comes up. If by any chance the
SDC service is not up then currently the SdcReceptionHandler throws an
exception to the distribution activator and the distribution framework
goes down. And the health check fails.
* This review fixes it by adding a retry mechanism in
SdcReceptionHandler for all lifecycle methods of SdcClient (init, start,
stop). After failure the same operation is retried again with some
delay. The delay is passed as parameter from configuration json file.
The minimum default value for the delay is kept as 30 seconds.
* Adding SdcClientHandler timer task for performing the retries
asynchronously.
Change-Id: Ibb6d936fcf4872c82f87e2cd04a00583b81c92ff
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Diffstat (limited to 'plugins/reception-plugins/src/test/resources/handling-sdc.json')
-rw-r--r-- | plugins/reception-plugins/src/test/resources/handling-sdc.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/reception-plugins/src/test/resources/handling-sdc.json b/plugins/reception-plugins/src/test/resources/handling-sdc.json index 7e3758de..0bb936bf 100644 --- a/plugins/reception-plugins/src/test/resources/handling-sdc.json +++ b/plugins/reception-plugins/src/test/resources/handling-sdc.json @@ -10,6 +10,7 @@ "password": "policy", "pollingInterval":20, "pollingTimeout":30, + "retryDelay":30, "consumerId": "policy-id", "artifactTypes": [ "TOSCA_CSAR", |