com.groupbyinc.flux.index.seqno.SequenceNumbersService.class Maven / Gradle / Ivy
???? 4 ? 6com/groupbyinc/flux/index/seqno/SequenceNumbersService ;com/groupbyinc/flux/index/shard/AbstractIndexShardComponent SequenceNumbersService.java Fcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext 7com/groupbyinc/flux/index/seqno/GlobalCheckpointTracker PrimaryContext Gcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState CheckpointState localCheckpointTracker 8Lcom/groupbyinc/flux/index/seqno/LocalCheckpointTracker; globalCheckpointTracker 9Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker; j(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Lcom/groupbyinc/flux/index/IndexSettings;JJJ)V U(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)V
6com/groupbyinc/flux/index/seqno/LocalCheckpointTracker .(Lcom/groupbyinc/flux/index/IndexSettings;JJ)V
h(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Lcom/groupbyinc/flux/index/IndexSettings;J)V
! this 8Lcom/groupbyinc/flux/index/seqno/SequenceNumbersService; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; allocationId Ljava/lang/String;
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; maxSeqNo J localCheckpoint globalCheckpoint
generateSeqNo ()J / 0
1 getMaxSeqNo 3 0
4 waitForOpsToComplete (J)V java/lang/InterruptedException 8 6 7
: seqNo markSeqNoAsCompleted = 7
> resetLocalCheckpoint resetCheckpoint A 7
B stats .()Lcom/groupbyinc/flux/index/seqno/SeqNoStats; getGlobalCheckpoint F 0
G getStats /(J)Lcom/groupbyinc/flux/index/seqno/SeqNoStats; I J
K updateLocalCheckpointForShard (Ljava/lang/String;J)V updateLocalCheckpoint O N
P
checkpoint updateGlobalCheckpointForShard S N
T getInSyncGlobalCheckpoints >()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap; V W
X initiateTracking (Ljava/lang/String;)V Z [
\ markAllocationIdAsInSync ^ N
_ getLocalCheckpoint
getCheckpoint b 0
c getReplicationGroup 4()Lcom/groupbyinc/flux/index/shard/ReplicationGroup; e f
g
G updateGlobalCheckpointOnReplica (JLjava/lang/String;)V j k
l reason !getTrackedLocalCheckpointForShard (Ljava/lang/String;)J ](Ljava/lang/String;)Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState; o q
r a 0
t activatePrimaryMode v 7
w updateAllocationIdsFromMaster ^(JLjava/util/Set;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/util/Set;)V updateFromMaster { z
| applyingClusterStateVersion inSyncAllocationIds #Ljava/util/Set; Ljava/util/Set; routingTable