Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address possible data race with the responses chan
WARNING: DATA RACE Write at 0x00c0003421f0 by goroutine 71: runtime.closechan() runtime/chan.go:355 +0x0 github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer.func1() github.com/Shopify/sarama/async_producer.go:725 +0x1c4 github.com/Shopify/sarama.withRecover() github.com/Shopify/sarama/utils.go:43 +0x74 github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer·dwrap·15() github.com/Shopify/sarama/async_producer.go:695 +0x39 Previous read at 0x00c0003421f0 by goroutine 58: runtime.chansend() runtime/chan.go:158 +0x0 github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer.func1.1.1() github.com/Shopify/sarama/async_producer.go:702 +0x125 github.com/Shopify/sarama.(*Broker).AsyncProduce.func1() github.com/Shopify/sarama/broker.go:408 +0x1a9 github.com/Shopify/sarama.(*responsePromise).handle() github.com/Shopify/sarama/broker.go:132 +0x1b8 github.com/Shopify/sarama.(*Broker).responseReceiver() github.com/Shopify/sarama/broker.go:1040 +0x124 github.com/Shopify/sarama.(*Broker).responseReceiver-fm() github.com/Shopify/sarama/broker.go:1032 +0x39 github.com/Shopify/sarama.withRecover() github.com/Shopify/sarama/utils.go:43 +0x74 github.com/Shopify/sarama.(*Broker).Open.func1·dwrap·22() github.com/Shopify/sarama/broker.go:244 +0x39
- Loading branch information