docs: private void failPendingCommands() {
      for (RaftSession session : raft.getSessions().getSessions()) {
        for (PendingCommand command : session.clearCommands()) {
          command.future().complete(logResponse(CommandResponse.builder()
              .withStatus(RaftResponse.Status.ERROR)
              .withError(RaftError.Type.COMMAND_FAILURE, "Request sequence number " + command.request().sequenceNumber() + " out of sequence")
              .withLastSequence(session.getRequestSequence())
              .build()));
        }
      }
    }