Skip to content

Commit

Permalink
bugfix: series table stops uploading into clickhouse after error
Browse files Browse the repository at this point in the history
  • Loading branch information
lomik committed Mar 21, 2018
1 parent 0a4209c commit 84df778
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion uploader/cached.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ func (u *cached) upload(exit chan struct{}, logger *zap.Logger, filename string)
uploadResult := make(chan error, 1)

u.Go(func(exit chan struct{}) {
uploadResult <- u.insertRowBinary(
err := u.insertRowBinary(
u.insertQuery,
pipeReader,
)
uploadResult <- err
if err != nil {
pipeReader.CloseWithError(err)
}
})

newSeries, err := u.parser(filename, writer)
Expand Down

0 comments on commit 84df778

Please sign in to comment.