The source project of this merge request has been removed.
Fix unexpected panic in bulk AfterFunc
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