@ -60,10 +63,14 @@ public class FailOnInvalidTimestamp extends ExtractRecordMetadataTimestamp {
@@ -60,10 +63,14 @@ public class FailOnInvalidTimestamp extends ExtractRecordMetadataTimestamp {
finallongrecordTimestamp,
finallongpreviousTimestamp)
throwsStreamsException{
thrownewStreamsException("Input record "+record+" has invalid (negative) timestamp. "+
"Possibly because a pre-0.10 producer client was used to write this record to Kafka without embedding a timestamp, "+
"or because the input topic was created before upgrading the Kafka cluster to 0.10+. "+
"Use a different TimestampExtractor to process this data.");
finalStringmessage="Input record "+record+" has invalid (negative) timestamp. "+
"Possibly because a pre-0.10 producer client was used to write this record to Kafka without embedding "+
"a timestamp, or because the input topic was created before upgrading the Kafka cluster to 0.10+. "+
"Use a different TimestampExtractor to process this data.";