-
Bug
-
Resolution: Done
-
Medium
-
Frankfurt Release
-
None
-
Policy 6/8-6/19
If we specify timeout values as String in Tosca Policy. Try to create & deploy the policy in drools-pdp. Then there is StackOverflow error in drools-pdp and it stops listening to PAP notifications.
Resulting in an infinite loop where PAP keeps removing & registering drools-pdp. And cannot take any action on the PDP.
Below error can be seen in policy-management.err log file.
Tue May 19 21:22:12 UTC 2020: Exception in thread "DMAAP-source-POLICY-PDP-PAP" java.lang.StackOverflowError
Tue May 19 21:22:12 UTC 2020: at com.worldturner.medeia.parser.gson.GsonJsonReaderDecorator.nextInt(GsonJsonReaderDecorator.kt:68)
Tue May 19 21:22:12 UTC 2020: at com.worldturner.medeia.parser.gson.GsonJsonReaderDecorator.nextInt(GsonJsonReaderDecorator.kt:76)
Workaround
Undeploy the policy from PAP and then Delete the Policy from API.
And then restart drools-pdp pod.