How to reproduce this bug?
1. Start master broker, and write lots of messages until broker starts cleaning commit log.
2. When the first commit log file isn't 00000000000000, start slave broker.
In current state, slave broker will pull messages from master broker, but the first message's offset isn't zero, and isn't equal to commit offset, so slave broker could't do right flush.