Skip to content

Commit

Permalink
Merge pull request mattbaird#246 from maraino/master
Browse files Browse the repository at this point in the history
Send an unread Buffer to the ErrorChannel
  • Loading branch information
weberr13 committed Nov 30, 2015
2 parents 6a1bd9c + e9e5019 commit bc78e4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/corebulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func (b *BulkIndexer) startHttpSender() {
// 2. Retry then return error and let runner decide
// 3. Retry, then log to disk? retry later?
if err != nil {
buf = bytes.NewBuffer(bufCopy.Bytes())
if b.RetryForSeconds > 0 {
time.Sleep(time.Second * time.Duration(b.RetryForSeconds))
err = b.Sender(bufCopy)
Expand Down

0 comments on commit bc78e4c

Please sign in to comment.