Github user MikeThomsen commented on the issue:

    https://github.com/apache/nifi/pull/2175
  
    I found one area that this doesn't handle properly at all, and that's 
deleting documents where the ID cannot be found. The reason your patch fails 
there is that the check around the declaration of `boolean errors` ~ line 353 
doesn't expect ElasticSearch to treat this as an inconsequential problem 
instead of an error. See this JSON I got in the debugger when running a flow:
    
    {
        "took": 346,
        "errors": false,
        "items": [{
                "delete": {
                        "found": false,
                        "_index": "events",
                        "_type": "event",
                        "_id": "abcd_1509454409510",
                        "_version": 1,
                        "result": "not_found",
                        "_shards": {
                                "total": 2,
                                "successful": 1,
                                "failed": 0
                        },
                        "status": 404
                }
        }]
    }
    
    I try indexing some really bad (syntatically valid JSON that is not what 
Elastic expects) and see if that goes to the error queue.
    
    My guess is that an update on a missing document ID will return the same 
sort of JSON as the delete.


---

Reply via email to