Open lootek opened 2 years ago
Reproduction as unit test: https://github.com/nsqio/go-diskqueue/pull/37
Nice find. This is broken because we check to roll the file on write at the beginning of writeOne(), so when the size of the file reaches maxBytesPerFile (exactly), it doesn't roll until the next write.
writeOne()
maxBytesPerFile
Reproduction as unit test: https://github.com/nsqio/go-diskqueue/pull/37