Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check elasticsearch response nil in bulk processor (#1467)
* Avoid process crash when elasticsearch response is nil Add nil pointer check in elasticsearch bulkprocessor's after callback, defined inside pkg/es/config/config.go. In some rare cases, elasticsearch request will return error with nil response, and then nil response will be passed into after callback, and using of nil pointer will cause process crash. Signed-off-by: Li Zhaoxing <lizhaoxing@4paradigm.com> * Remove unnecessary wrap arround nil pointer in log Signed-off-by: Li Zhaoxing <lizhaoxing@4paradigm.com>
- Loading branch information