Shopify/sarama — pull request #101 by eapache (2014-06-13 22:21:16+00:00)
Title: Handle when client.Partitions returns empty slice

This can happen as documented in #49, when all the partitions for a slice
undergo leader election simultaneously.

In this case, return LeaderNotAvailable, which is true even if we haven't chosen
a partition yet :)

@burke @fw42 @patricklucas