Skip to content

Fix unexpected panic in bulk AfterFunc

Xing Xin requested to merge (removed):fix/avoid_panic_in_afterfunc into master

Current logic in ES bulk After can cause panic if bulk response is nil.

One of the cases is elastic: Error 400 (Bad Request): no write index is defined for alias..., which I meet :-).

We should check nil before getting something from bulk response, and check errors first is always a good idea.

close #42 (closed)

Edited by Xing Xin

Merge request reports