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 /packages/policy-distribution-tarball/src/main/resources | |
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 'packages/policy-distribution-tarball/src/main/resources')
0 files changed, 0 insertions, 0 deletions