Skip to content

Commit

Permalink
Merge #91619
Browse files Browse the repository at this point in the history
91619: changefeedccl: fix deadlock in mocksyncproducer r=samiskin a=samiskin

Resolves #89028

TestChangefeedKafkaMessageTooLarge would flake sometimes with goroutines blocked on sending into the mocksyncproducer feedCh and would result in a "Slow on quiesce" error. This is likely due to the jobFeed shutting down which also shuts down the consumer of feedCh.

Release note: None

Co-authored-by: Shiranka Miskin <[email protected]>
  • Loading branch information
craig[bot] and samiskin committed Nov 13, 2022
2 parents f82dead + ffbc28d commit 7f77f57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/ccl/changefeedccl/testfeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,10 @@ func (s *fakeKafkaSink) Dial() error {
return err
}
}
s.feedCh <- m
select {
case s.feedCh <- m:
case <-s.tg.done:
}
return nil
},
}}, nil
Expand Down

0 comments on commit 7f77f57

Please sign in to comment.