There were leaks in the ElasticBulkBase where errors could cause the code to miss the Sync.update() or Sync.error() calls that would change the transitional WORKING state to either OK or FAILURE. Clean this up with an enclosing try block. Make sure we always attach a useful Audit message on failure so we can track this better.
Also (separate but somewhat related), during ops review we observed many "user error" failures where some indication in the server log about the cause would have simplified analysis. We'd previously decided not to log "user errors" but given our experience the extra logs are more useful than annoying; so _dispatch will now log at WARNING level any APIAbort termination.
PBENCH-1286
There were leaks in the
ElasticBulkBase
where errors could cause the code to miss theSync.update()
orSync.error()
calls that would change the transitionalWORKING
state to eitherOK
orFAILURE
. Clean this up with an enclosingtry
block. Make sure we always attach a usefulAudit
message on failure so we can track this better.Also (separate but somewhat related), during ops review we observed many "user error" failures where some indication in the server log about the cause would have simplified analysis. We'd previously decided not to log "user errors" but given our experience the extra logs are more useful than annoying; so
_dispatch
will now log atWARNING
level anyAPIAbort
termination.