Skip to content

Commit

Permalink
Update ShardEnd checkpoint failure messaging (#591)
Browse files Browse the repository at this point in the history
* Update shard end checkpoint failure messaging

* Update shard end checkpoint failure messaging
  • Loading branch information
micah-jaffe authored and sahilpalvia committed Aug 13, 2019
1 parent 161590c commit c2a3f18
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ public TaskResult call() {
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());
Expand Down

0 comments on commit c2a3f18

Please sign in to comment.