Extensive memory consumption in the REST connector
To improve handling of the REST connector failed jobs with multiple tasks, consuming extensive amounts of memory resulting in OutOfMemory
issues the existing errorResponseFilter
setting was enhanced and new responseFilter
setting was added. They allow to provide JsonPath that are applied to responses limiting their size:
-
errorResponseFilter
- applies the JsonPaths when server returns error and allows to limit response to information required to identify the cause. -
responseFilter
- applies JsonPaths to successful response and allows to select nodes to be included in the OPS task result values.
JsonPaths should be enclosed withing the #
sign. Multiple JsonPaths can be provided with the #
separating them, for example:
errorResponsesFilter=#$.userName#$.roleAndCompany[*].notificationMessages.personId[*].message
#responsesFilter=#$.userName#$.status#
INC-268655