From 5cfff2b468a13e7b5ce068e58e899fcfe36537b3 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 16 Jun 2020 17:52:17 -0400 Subject: PAP should discard old PDP messages Modified PAP to discard any messages old than 10 minutes so that if PAP is unable to communicate with DMaaP and then suddently gets flooded, it will discard old messages. Updates per review comments - made the "max message age" configurable, with a default of 10 minutes Issue-ID: POLICY-2170 Change-Id: I541c03aabf29482af12a07f51eeb5888bbafbf31 Signed-off-by: Jim Hahn --- main/src/test/resources/parameters/PapConfigParametersStd.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/src/test/resources') diff --git a/main/src/test/resources/parameters/PapConfigParametersStd.json b/main/src/test/resources/parameters/PapConfigParametersStd.json index 47925dff..a11782bc 100644 --- a/main/src/test/resources/parameters/PapConfigParametersStd.json +++ b/main/src/test/resources/parameters/PapConfigParametersStd.json @@ -16,7 +16,8 @@ "maxRetryCount": 1, "maxWaitMs": 5 }, - "heartBeatMs": 6 + "heartBeatMs": 6, + "maxMessageAgeMs": 20000 }, "databaseProviderParameters": { "name": "PolicyModelsProviderParameters", -- cgit 1.2.3-korg