Interface GlobalCheckpointSyncer


public interface GlobalCheckpointSyncer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Synchronize the global checkpoints across the replication group.
  • Method Details

    • syncGlobalCheckpoints

      void syncGlobalCheckpoints(ShardId shardId)
      Synchronize the global checkpoints across the replication group. This is used when indexing traffic stops and the primary's global checkpoint reaches the max seqno, because in this state the replicas will have an older global checkpoint as carried by the earlier indexing traffic, and may not receive any further updates without the explicit sync that this method triggers.

      It's also used if Translog.Durability.ASYNC is selected, because in that case indexing traffic does not advance the persisted global checkpoint.

      In production this triggers a GlobalCheckpointSyncAction.

      Parameters:
      shardId - The ID of the shard to synchronize.