Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong guid generation #592
In production we suddenly expiriencing lots of message duplication messages with about hundred of nsqd nodes. After looking at the code we realized that guid was improperly generated for worker ids >= 1024. see https://github.com/bitly/nsq/blob/master/nsqd/guid.go#L19 . Worker id has range 0-4095, while there are only ten bits shift between it and timestamp.