Closed yeluyang closed 6 years ago
Sorry, the README is auto-generated, you need to update https://github.com/bsm/sarama-cluster/blob/master/README.md.tpl and run make doc
. You will need go get -u github.com/dave/rebecca/cmd/becca
Sorry, the README is auto-generated, you need to update https://github.com/bsm/sarama-cluster/blob/master/README.md.tpl and run
make doc
. You will needgo get -u github.com/dave/rebecca/cmd/becca
I have updated README.md.tpl
and run make doc
, please check. Thanks for your advice. @dim
I meet trouble just like #99 , thanks @F21 .
But the solution in #99 is not the best solution, especially when you don't want receive all older msg.
My idea is as follow:
kafka will return a notifications via
consumer.Notifications()
when consumer init successfully in kafka.you should wait this notifications and confirm field
Type
of it is equal tocluster.RebalanceOK
.if you don't wait the notifications, the msg inputted by producer maybe regard as an old msg before your new consumer init successfully, and the new consumer will never get the msg. this is why @F21 cannot received any msg.
My mother language is not English, so if there is any problem, please point it out.