Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
1.6.1
-
None
-
None
-
CentOS 6.4
Description
TaskResourceProvider.parseStructuredOutput(...) uses Jackson to parse the structured_out of agent responses. In general, we should move to Gson and away from Jackson globally.
However, because of the ambiguous nature of the responses, there is no first-class object mapping for responses like java_home_check and host_resolution_check. Gson, in turn, will convert integers to float when there is no contract for it to map with. Jackson, although slower, will try to determine if the numbers are integers or floats first.
There are two solutions; either provide mappings for the various responses in structured_out so that Gson can correctly deserialize the JSON, or determine why Jackson is so slow.