Class S3SchemaHistory

All Implemented Interfaces:
SchemaHistory

@NotThreadSafe public class S3SchemaHistory extends AbstractFileBasedSchemaHistory
A SchemaHistory implementation that records schema changes as normal SourceRecords on the specified topic, and that recovers the history by establishing a Kafka Consumer re-processing all messages on that topic. This implementation provides caching HistoryRecord on the main memory in the case of recovering records. Since S3 does not support Append operation on the object level. AbstractFileBasedSchemaHistory.start() fetches history log from S3 and store the HistoryRecord on the main memory. Also AbstractFileBasedSchemaHistory.storeRecord(HistoryRecord) creates new history object everytime invokes on S3
Author:
hossein.torabi