Add DataNodeNotFoundException to deleteDataNodes 82/133482/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Tue, 28 Feb 2023 16:25:08 +0000 (16:25 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Wed, 1 Mar 2023 11:26:50 +0000 (11:26 +0000)
commitceda6a0b4aa498ae236092cf36d396c004c61cd7
treeb3ea73d6f2d8ec699157211e7600d0929caa12cd
parent373cdf2e88201f4262bdb3c933a0f84a4160bf72
Add DataNodeNotFoundException to deleteDataNodes

Current implementation of NCMP handle de-registration relies on
DataNodeNotFoundException being thrown to report errors.

- Make deleteDataNodes throw DataNodeFoundExceptionBatch
- Update performance test timings

Issue-ID: CPS-1481
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ib833bdb4a23d24e1784bdaf4e5e5e8a9acb41c54
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentRepository.java
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceIntegrationSpec.groovy
cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsDataPersistenceServiceDeletePerfTest.groovy
cps-service/src/main/java/org/onap/cps/spi/exceptions/DataNodeNotFoundExceptionBatch.java [new file with mode: 0644]