nsqio / go-nsq

The official Go package for NSQ
MIT License
2.59k stars 444 forks source link

consumer receive duplicate message when producer use multiple publish #180

Closed wangxingge closed 8 years ago

wangxingge commented 8 years ago

I use multiple publish function to publish data each batch has 100 data.

My consumer found there are money duplicate data when receive data from nsqd.

Is there an known issue?

mreiferson commented 8 years ago

Under normal operation, there shouldn't be duplicate messages. Did the channel requeue any messages? If so, those would represent duplicates.

wangxingge commented 8 years ago

There is no requeue message, I check it on nsq_admin. I review the code and I confuse that I think that should be work.

I'll test it again and provide more test data and code sample.

Thanks for your help, mreiferson.