Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5165

PutElasticsearchHttp error handling doesn't properly extract ES6 error reason

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.6.0
    • None
    • None
    • None

    Description

      In the event the overall call "succeeds" but a FlowFile within the batch fails (leading to the error handling here[1]), the error handling doesn't properly pull out the error reason. An example of such error in ES 6:

      {
      "took": 0,
      "ingest_took": 0,
      "errors": true,
      "items": [
      {
      "index": {
      "_index": "theIndex",
      "_type": "theType",
      "_id": null,
      "status": 400,
      "error":

      Unknown macro: { "type"}

      }
      }
      ]

      The problem is the extra nesting of "index" which is not accounted for.

       

      [1] https://github.com/apache/nifi/blob/4df3eb567d8dff396b0e2380949e971d074dd04b/nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttp.java#L367

      Attachments

        Activity

          People

            Unassigned Unassigned
            jpercivall Joe Percivall
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: