Handle high frequency (faster then DMI) of passthrough request in NCMP
- Added pendingAcquireMaxCount property into appliaction.yml.
- Added findbugs google annotations dependency.
- Supressed "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE" spotbugs low error for
reactor.netty.resources.ConnectionProvider.
Issue-ID: CPS-2262
Change-Id: Ie755e40282473933f2052fbe7654e7090bb9b337
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/config/HttpClientConfigurationSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/config/HttpClientConfigurationSpec.groovy
index b7ced23..228f412 100644
--- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/config/HttpClientConfigurationSpec.groovy
+++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/config/HttpClientConfigurationSpec.groovy
@@ -43,6 +43,7 @@
assert readTimeoutInSeconds == 789
assert writeTimeoutInSeconds == 30
assert maximumConnectionsTotal == 100
+ assert pendingAcquireMaxCount == 22
assert maximumInMemorySizeInMegabytes == 7
}
}
@@ -54,6 +55,7 @@
assert readTimeoutInSeconds == 30
assert writeTimeoutInSeconds == 30
assert maximumConnectionsTotal == 111
+ assert pendingAcquireMaxCount == 44
assert maximumInMemorySizeInMegabytes == 8
}
}
@@ -65,6 +67,7 @@
assert readTimeoutInSeconds == 30
assert writeTimeoutInSeconds == 30
assert maximumConnectionsTotal == 10
+ assert pendingAcquireMaxCount == 5
assert maximumInMemorySizeInMegabytes == 1
}
}
diff --git a/cps-ncmp-service/src/test/resources/application.yml b/cps-ncmp-service/src/test/resources/application.yml
index e35f471..5b10e73 100644
--- a/cps-ncmp-service/src/test/resources/application.yml
+++ b/cps-ncmp-service/src/test/resources/application.yml
@@ -38,9 +38,11 @@
dmi:
httpclient:
data-services:
+ pendingAcquireMaxCount: 22
connectionTimeoutInSeconds: 123
maximumInMemorySizeInMegabytes: 7
model-services:
+ pendingAcquireMaxCount: 44
connectionTimeoutInSeconds: 456
maximumInMemorySizeInMegabytes: 8
auth: