Update ShardEnd checkpoint failure messaging (#591)

* Update shard end checkpoint failure messaging

* Update shard end checkpoint failure messaging
This commit is contained in:
Micah Jaffe 2019-08-13 13:18:52 -07:00 committed by Sahil Palvia
parent 161590c2ce
commit c2a3f18670

View file

@ -106,8 +106,9 @@ public class ShutdownTask implements ConsumerTask {
ExtendedSequenceNumber lastCheckpointValue = recordProcessorCheckpointer.lastCheckpointValue();
if (lastCheckpointValue == null
|| !lastCheckpointValue.equals(ExtendedSequenceNumber.SHARD_END)) {
throw new IllegalArgumentException(
"Application didn't checkpoint at end of shard " + shardInfo.shardId());
throw new IllegalArgumentException("Application didn't checkpoint at end of shard "
+ shardInfo.shardId() + ". Application must checkpoint upon shard end. " +
"See ShardRecordProcessor.shardEnded javadocs for more information.");
}
} else {
shardRecordProcessor.leaseLost(LeaseLostInput.builder().build());