You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return new SourceRecord(..., Instant.now().getEpochSecond());
These should be switched to Instant.now().toEpochMilli().
The effect is that when the source connector appends a message to a topic, if the topic has retention.ms set to a reasonable value, the messages are immediately deleted from the topic.
This can be worked around by setting the topic configuration value:
message.timestamp.type: LogAppendTime
The text was updated successfully, but these errors were encountered:
ahawtho
added a commit
to coursehero/redis-kafka-connect
that referenced
this issue
Oct 6, 2022
Kafka message timestamps are in milliseconds, but the SourceRecordReader
implementations in this package were using seconds. This just changes
them to use milliseconds instead.
ahawtho
added a commit
to coursehero/redis-kafka-connect
that referenced
this issue
Oct 7, 2022
Kafka record timestamps are defined in milliseconds, but the
StreamSourceRecordReader
class and theKeySourceRecordReader
class use the following to create their records:These should be switched to
Instant.now().toEpochMilli()
.The effect is that when the source connector appends a message to a topic, if the topic has
retention.ms
set to a reasonable value, the messages are immediately deleted from the topic.This can be worked around by setting the topic configuration value:
The text was updated successfully, but these errors were encountered: