aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-07-07 12:50:56 -0400
committerJim Hahn <jrh3@att.com>2020-07-07 12:53:46 -0400
commit32188d0ca6346db1e3fc59efc52288d9d9cf2942 (patch)
tree1f06687facd4a577883aa8862d67d348bcc16dec
parentd29a57a558336feb74d4c46b706686bb3253c60c (diff)
Add fetch timeout to PAP properties
When an error occurs fetching from DMaaP, PAP should not try again immediately, but should wait a little bit before retrying. Added the the fetch timeout property to prevent it from defaulting to -1 when retrying. Issue-ID: POLICY-2702 Change-Id: Ifeb9ca9dc51a5d2080c84ae877781b02c3041001 Signed-off-by: Jim Hahn <jrh3@att.com>
-rw-r--r--packages/policy-pap-tarball/src/main/resources/etc/defaultConfig.json3
-rw-r--r--testsuites/stability/src/main/resources/papsetup/config/pap/etc/defaultConfig.json3
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/policy-pap-tarball/src/main/resources/etc/defaultConfig.json b/packages/policy-pap-tarball/src/main/resources/etc/defaultConfig.json
index 173b2017..e1e06722 100644
--- a/packages/policy-pap-tarball/src/main/resources/etc/defaultConfig.json
+++ b/packages/policy-pap-tarball/src/main/resources/etc/defaultConfig.json
@@ -32,7 +32,8 @@
"topicSources" : [{
"topic" : "POLICY-PDP-PAP",
"servers" : [ "message-router" ],
- "topicCommInfrastructure" : "dmaap"
+ "topicCommInfrastructure" : "dmaap",
+ "fetchTimeout": 15000
}],
"topicSinks" : [{
"topic" : "POLICY-PDP-PAP",
diff --git a/testsuites/stability/src/main/resources/papsetup/config/pap/etc/defaultConfig.json b/testsuites/stability/src/main/resources/papsetup/config/pap/etc/defaultConfig.json
index e603c0b5..aca21fe7 100644
--- a/testsuites/stability/src/main/resources/papsetup/config/pap/etc/defaultConfig.json
+++ b/testsuites/stability/src/main/resources/papsetup/config/pap/etc/defaultConfig.json
@@ -32,7 +32,8 @@
"topicSources" : [{
"topic" : "POLICY-PDP-PAP",
"servers" : [ "10.2.0.41:3904" ],
- "topicCommInfrastructure" : "dmaap"
+ "topicCommInfrastructure" : "dmaap",
+ "fetchTimeout": 15000
}],
"topicSinks" : [{
"topic" : "POLICY-PDP-PAP",