From c0ae9f7eff91b8cd8e0567adaadbc766c10c3c3c Mon Sep 17 00:00:00 2001 From: Jozsef Csongvai Date: Mon, 22 Jun 2020 14:05:45 -0400 Subject: Fix exception handling in AbstractComponentFunction Moved try-catch to applyNB so that it also catches exceptions in prepareRequestNB. This restores exception handling to the way it was before introduction of locking feature. Issue-ID: CCSDK-2460 Signed-off-by: Jozsef Csongvai Change-Id: I20326d9a79ac5fbae630eda8530e8428cdb4f84c --- .../execution/AbstractComponentFunction.kt | 30 +++++++++++----------- .../scripts/AbstractComponentFunctionTest.kt | 23 +++++++++++++++++ 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt b/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt index 211bf76fb..4cd809778 100644 --- a/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt +++ b/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt @@ -105,7 +105,7 @@ abstract class AbstractComponentFunction : BlueprintFunctionNode