You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any code path that reads a BulkIndexerResponseItem should check the Error field and ensure that an error has not occurred. If an error has occurred then it should return an error instead of continuing on.
Overview
Inside of the
BulkIndexerResponseItem
there is an error field that could have possible been set but is ignored in here https://github.com/elastic/fleet-server/blob/main/internal/pkg/bulk/opBulk.go#L77.What should be done?
Any code path that reads a
BulkIndexerResponseItem
should check theError
field and ensure that an error has not occurred. If an error has occurred then it should return an error instead of continuing on.Relates to elastic/elastic-agent#760
The text was updated successfully, but these errors were encountered: