Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-6219

Performance Issues When Parsing structured_output From Agents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.6.1
    • 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.

      Attachments

        Activity

          People

            jonathanhurley Jonathan Hurley
            jonathanhurley Jonathan Hurley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: