From: tkogut Date: Thu, 10 Dec 2020 10:49:02 +0000 (+0100) Subject: Upgrade SpringBoot and SDK X-Git-Tag: 2.1.0^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1e6f4d9c7ea75302f4b902dbbe13642b6d20d716;p=dcaegen2%2Fservices.git Upgrade SpringBoot and SDK Add missing .gitreview file Issue-ID: DCAEGEN2-2537 Signed-off-by: tkogut Change-Id: I519b850b689236b4e2e34bb19ead6b7522b60c48 --- diff --git a/.gitreview b/.gitreview new file mode 100644 index 00000000..4acf10dd --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=gerrit.onap.org +port=29418 +project=dcaegen2/services.git diff --git a/components/bbs-event-processor/pom.xml b/components/bbs-event-processor/pom.xml index fd9b6d0d..eb47fccb 100644 --- a/components/bbs-event-processor/pom.xml +++ b/components/bbs-event-processor/pom.xml @@ -12,7 +12,7 @@ org.onap.dcaegen2.services.components bbs-event-processor - 2.0.1-SNAPSHOT + 2.1.0-SNAPSHOT dcaegen2-services-bbs-event-processor BBS Re-Registration and CPE Authentication Handler @@ -28,10 +28,10 @@ 11 2.8.3 - 2.2.9.RELEASE + 2.4.0 1.1.0 0.8.2 - 1.4.1 + 1.5.0 2.24.0 2.3.0 3.0.0 @@ -124,6 +124,10 @@ org.springframework.boot spring-boot-starter-webflux + + org.springframework.boot + spring-boot-starter-validation + org.springframework.boot spring-boot-starter-test diff --git a/components/bbs-event-processor/src/main/java/org/onap/bbs/event/processor/config/ConsulConfigurationGateway.java b/components/bbs-event-processor/src/main/java/org/onap/bbs/event/processor/config/ConsulConfigurationGateway.java index 4ac85495..b660b718 100644 --- a/components/bbs-event-processor/src/main/java/org/onap/bbs/event/processor/config/ConsulConfigurationGateway.java +++ b/components/bbs-event-processor/src/main/java/org/onap/bbs/event/processor/config/ConsulConfigurationGateway.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * BBS-RELOCATION-CPE-AUTHENTICATION-HANDLER * ================================================================================ - * Copyright (C) 2019 NOKIA Intellectual Property. All rights reserved. + * Copyright (C) 2019-2020 NOKIA Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,7 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import java.util.function.Function; import org.jetbrains.annotations.NotNull; import org.onap.bbs.event.processor.exceptions.ApplicationEnvironmentException; @@ -48,6 +49,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import reactor.core.Disposable; +import reactor.util.retry.Retry; @Component public class ConsulConfigurationGateway { @@ -128,7 +130,7 @@ public class ConsulConfigurationGateway { // Create the client and use it to get the configuration cbsFetchPipeline = CbsClientFactory.createCbsClient(cbsClientConfig) .doOnError(e -> LOGGER.warn("CBS Configuration fetch failed with error: {}", e)) - .retry(e -> true) + .retryWhen(Retry.from(Function.identity())) .flatMapMany(cbsClient -> cbsClient.updates(cbsRequest, initialDelay, period)) .subscribe(this::parseConsulRetrievedConfiguration, this::handleErrors); }