Join GitHub today
ZOOKEEPER-2959: ignore accepted epoch and LEADERINFO ack from observers #500
credit: Xiang Yongqiang (https://github.com/xyq000) for original PR and reporting the issue
The fix looks good to me, I would only like to suggest a few nitpicks in the tests.
The init and finally parts of these tests are redundant, so I think it'd be great if we can move these new tests to a separate test file and add proper setup() and teardown() methods.
On the top of that, existing tests follow the same pattern as far as I can see, so why not we just refactor all of them to take advantage of junit before-after mechanism?