docs: private void truncateUncommittedEntries() {
      if (role() == RaftServer.Role.PASSIVE) {
        final RaftLogWriter writer = raft.getLogWriter();
        writer.truncate(raft.getCommitIndex());
      }
    }