} else {
String message =
String.format("Was asked to checkpoint at %s but no checkpointer was provided for shard %s",
sequenceNumber, shardId);
LOG.error(message);
return this.messageWriter.writeCheckpointMessageWithError(sequenceNumber, new InvalidStateException(
message));
}
} catch (Throwable t) {
return this.messageWriter.writeCheckpointMessageWithError(sequenceNumber, t);
}