Closed nemosupremo closed 9 years ago
Ideally, I would like to use zookeeper watches instead of retrying. This way we can just wait until the partition becomes available, and resume execution then. What do you think?
This is the approach I took for my Ruby consumer
I've decided to go with the watch approach in the reimplementation (see #72). For now I'll merge this as a nice addition for the current version :+1:
This should fix #62, and combined with the fix in PR #63, should also fix #60.
What I've opted to do is simply retry
ClaimPartition
3 times, sleeping for 1sec if the errorkazoo.ErrPartitionClaimedByOther
occurs. If another error occurs, we exit as normal.The other changes (line 366, 371) were due to
go fmt
.