Skip to content

Commit

Permalink
Merge pull request #3522 from dim/fix-cq-timeout-bug
Browse files Browse the repository at this point in the history
Consume CQ results on request timeouts
  • Loading branch information
jwilder committed Aug 14, 2015
2 parents facba5d + 762a1c6 commit bb6de3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/continuous_querier/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ func (s *Service) runContinuousQueryAndWriteResult(cq *ContinuousQuery) error {
return err
}

// Drain results
defer func() {
for _ = range ch {
}
}()

// Read all rows from the result channel.
for result := range ch {
if result.Err != nil {
Expand Down

0 comments on commit bb6de3b

Please sign in to comment.