Description
LogSegment#append leaks the entryCache when a RaftServerImpl is restarted.
On restart, the entries are loaded from the raft Logs and then added in the entryCache, however after adding the entry in the cache, hasEntryCache is not set to true.