Class CdcrUpdateLog

  • All Implemented Interfaces:
    SolrMetricProducer, PluginInfoInitialized

    public class CdcrUpdateLog
    extends UpdateLog
    An extension of the UpdateLog for the CDCR scenario.
    Compared to the original update log implementation, transaction logs are removed based on pointers instead of a fixed size limit. Pointers are created by the CDC replicators and correspond to replication checkpoints. If all pointers are ahead of a transaction log, this transaction log is removed.
    Given that the number of transaction logs can become considerable if some pointers are lagging behind, the CdcrUpdateLog.CdcrLogReader provides a CdcrUpdateLog.CdcrLogReader.seek(long) method to efficiently lookup a particular transaction log file given a version number.