Skip to content

Commit

Permalink
fix: Fix successful ES bulk request failing with cluster block messag…
Browse files Browse the repository at this point in the history
…e due to cluster block handling fix
  • Loading branch information
driskell committed Jul 30, 2024
1 parent d5c1cc2 commit 20e5751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lc-lib/transports/es/transportes.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (t *transportES) performBulkRequest(addr *addresspool.Address, id int, requ
}

// If cluster is blocked on all messages, allow a retry to occur by throwing an error
if clusterBlocked == len(response.Errors) {
if len(response.Errors) > 0 && clusterBlocked == len(response.Errors) {
return fmt.Errorf("cluster is blocked")
}

Expand Down

0 comments on commit 20e5751

Please sign in to comment.