All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.index.seqno.GlobalCheckpointTracker.class Maven / Gradle / Ivy

????4?7com/groupbyinc/flux/index/seqno/GlobalCheckpointTracker;com/groupbyinc/flux/index/shard/AbstractIndexShardComponentGlobalCheckpointTracker.javaFcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContextPrimaryContextGcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState	CheckpointStatejava/util/Map$Entry
java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupshardAllocationIdLjava/lang/String;primaryModeZhandoffInProgressappliedClusterStateVersionJroutingTable;
pendingInSyncLjava/util/Set;#Ljava/util/Set;replicationGroup2Lcom/groupbyinc/flux/index/shard/ReplicationGroup;$assertionsDisabledgetInSyncGlobalCheckpoints>()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;'	*	,java/lang/AssertionError.()V01
/2	4>com/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongHashMap6 	8size()I:;<(I)V0>
7?entrySet()Ljava/util/Set;ABC
java/util/SetEstream()Ljava/util/stream/Stream;GHFI"java/lang/invoke/LambdaMetafactoryKmetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;MN
LOP(Ljava/lang/Object;)ZR#lambda$getInSyncGlobalCheckpoints$0(Ljava/util/Map$Entry;)ZTU
VWUtest ()Ljava/util/function/Predicate;Z[\java/util/stream/Stream^filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;`a_b(Ljava/lang/Object;)Vd#lambda$getInSyncGlobalCheckpoints$1T(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;Ljava/util/Map$Entry;)Vfg
hi(Ljava/util/Map$Entry;)Vkaccept[(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;)Ljava/util/function/Consumer;mnoforEach (Ljava/util/function/Consumer;)Vqr_sthis9Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker;globalCheckpointsPLcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;@nextB?>CgetKeyE?
FcontainsHRFIshard copy K4 blocks global checkpoint advancement but is in-syncMentryrLjava/util/Map$Entry;Ljava/util/Map$Entry;lambda$inSyncCheckpointStates$5R?
ST\	mapToLongB(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;WX_Y(J)Z[lambda$inSyncCheckpointStates$6][
^_$()Ljava/util/function/LongPredicate;Za	bA(Ljava/util/function/LongPredicate;)Ljava/util/stream/LongStream;`d	ejava/util/function/Functiong?hijava/util/OptionalLongk	isPresentm{
ln	getAsLongp?
lq????????functionnLjava/util/function/ToLongFunction;#Ljava/util/function/ToLongFunction;reducerTLjava/util/function/Function;Ljava/util/function/Function;valueLjava/util/OptionalLong;h(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Lcom/groupbyinc/flux/index/IndexSettings;J)VU(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)V0~
#illegal initial global checkpoint: ?'com/groupbyinc/flux/index/shard/ShardId?'com/groupbyinc/flux/index/IndexSettings?????????	?java/util/HashMap?getNumberOfReplicas?;
??
??(JJZ)V0?

?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???java/util/HashSet?
?2z{
?shardId)Lcom/groupbyinc/flux/index/shard/ShardId;
indexSettings)Lcom/groupbyinc/flux/index/IndexSettings;globalCheckpointgetReplicationGroup"lambda$calculateReplicationGroup$7?U
??
\	G)(Ljava/util/Map$Entry;)Ljava/lang/String;??java/util/stream/Collectors?toSet()Ljava/util/stream/Collector;??
??collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;??_?N(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/util/Set;)V0?
'??	
?cpsILcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState;updateGlobalCheckpointOnReplica(JLjava/lang/String;)V(J)V?(lambda$updateGlobalCheckpointOnReplica$8(JLjava/lang/String;J)V??
??o(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker;JLjava/lang/String;)Ljava/util/function/LongConsumer;m??updateGlobalCheckpoint7(Ljava/lang/String;JLjava/util/function/LongConsumer;)V??
?reasonupdateGlobalCheckpointForShard(Ljava/lang/String;J)V'lambda$updateGlobalCheckpointForShard$9(Ljava/lang/String;JJ)V??
??o(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker;Ljava/lang/String;J)Ljava/util/function/LongConsumer;m?
?java/util/function/LongConsumer?m???	ifUpdated!Ljava/util/function/LongConsumer;activatePrimaryModelocalCheckpoint?	
?	expected ? to have initialized entry in ? when activating primary?updateLocalCheckpoint_(Ljava/lang/String;Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState;J)Z??
?updateGlobalCheckpointOnPrimary?1
?updateFromMaster^(JLjava/util/Set;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/util/Set;)Vlambda$updateFromMaster$10(Ljava/lang/String;)Z??
????8update from master in primary mode contains in-sync ids ?" that have no matching entries in ?getAllInitializingShards()Ljava/util/List;??
??java/util/ListI?f(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/cluster/routing/AllocationId;??F(Lcom/groupbyinc/flux/cluster/routing/AllocationId;)Ljava/lang/String;?lambda$updateFromMaster$113(Ljava/util/Set;Ljava/util/Set;Ljava/lang/String;)Z

>(Ljava/util/Set;Ljava/util/Set;)Ljava/util/function/Predicate;ZremoveIf?FcontainsKeyR'update from master in primary mode has ) as in-sync but it does not exist locally????????initializingIdinSyncIdinitializingAllocationIdsremovedEntriesapplyingClusterStateVersioninSyncAllocationIdspre60AllocationIdsinitiateTracking(Ljava/lang/String;)Vjava/lang/IllegalStateException(2no local checkpoint tracking information available*0'
),markAllocationIdAsInSyncjava/lang/InterruptedException/7no local checkpoint tracking information available for 1$expected known local checkpoint for 3	 but was 5% is already marked as pending in-sync77 that's already in-sync should have a local checkpoint 9$ that's above the global checkpoint ;add=RF>waitForLocalCheckpointToAdvance@1
AremoveCRFDjava/lang/ThrowableFlogger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;HI	Jmarked [{}] as in-syncL6com/groupbyinc/flux/common/apache/logging/log4j/LoggerNtrace'(Ljava/lang/String;Ljava/lang/Object;)VPQORpre-6.0 shard copy T+ unexpected to send valid local checkpoint V)invalid local checkpoint for shard copy [X2updated local checkpoint of [{}] from [{}] to [{}]Zjava/lang/Long\valueOf(J)Ljava/lang/Long;^_
]`K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VPbOcYskipped updating local checkpoint of [{}] from [{}] to [{}], current checkpoint is higherenotifyAllWaitersg1
hincreasedLocalCheckpointpending????????;java/lang/Matho(JJ)J
q
prlocalCheckpointsaLjava/util/Collection;Ljava/util/Collection;fallbackminLocalCheckpointnew global checkpoint [y] is lower than previous one [{!global checkpoint updated to [{}]}computedGlobalCheckpointstartRelocationHandoffJ()Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext;Orelocation handoff started while there are still shard copies pending in-sync: ?
?2copyK()Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState;??

?O(JLjava/util/Map;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)V0?
?localCheckpointsCopyabortRelocationHandoffcompleteRelocationHandoff#lambda$completeRelocationHandoff$12?k
??X(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker;)Ljava/util/function/Consumer;m??activateWithPrimaryContextK(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext;)V(getMasterUpdateOperationFromCurrentState()Ljava/lang/Runnable;??
?clusterStateVersion??
?clear?1?
access$000Y(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext;)Ljava/util/Map;??
?java/lang/Runnable?getRoutingTable>()Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;??
?run?1??primaryContextHLcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext;runAfterLjava/lang/Runnable;2lambda$getMasterUpdateOperationFromCurrentState$136(Ljava/util/Set;Ljava/util/Set;Ljava/util/Map$Entry;)V??
??=(Ljava/util/Set;Ljava/util/Set;)Ljava/util/function/Consumer;m??Fs12lambda$getMasterUpdateOperationFromCurrentState$14??
???(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker;JLjava/util/Set;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/util/Set;)Ljava/lang/Runnable;???lastAppliedClusterStateVersionlastAppliedRoutingTable!getTrackedLocalCheckpointForShard](Ljava/lang/String;)Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$CheckpointState;.Lcom/groupbyinc/flux/common/SuppressForbidden;9Object#notifyAll waiters for local checkpoint advancementjava/lang/Object?	notifyAll?1
??,Object#wait for local checkpoint advancementwait?1
????
?eaid[updating local knowledge for [{}] on the primary of the global checkpoint from [{}] to [{}]?current8updating global checkpoint from [{}] to [{}] due to [{}]?vlcps:com/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap?(Ljava/lang/Object;J)J????java/lang/Class?desiredAssertionStatus?{
??	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTableR()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;1(Ljava/util/Map;Ljava/util/function/ToLongFunction;Ljava/util/function/Function;)J?(JLjava/util/Set;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/util/Set;)V
Exceptions?(Ljava/util/Set;Ljava/util/Collection;J)JRuntimeInvisibleAnnotationsBootstrapMethods
SourceFileInnerClasses!	 ?!"#?$@%&'+ ()??`?+?*?-??/Y?3??+?*?5??/Y?3??7Y*?9?=?@L*?9?D?J?]?c+?p?t+??`uv;%wy?;%wx?&	??*?;???D?N?Y?^????z{???+?*?9*?}???
?/Y?????+?-*?-?&*?9??????????/Y?3??+?B*?-?;*?9?D?J*???c??????????/Y?3??+?*?5?*?-??/Y?3??+?(*?-?!*?9*?}???
????/Y?3??+?B*?-?;*???
*???-?/Y??Y?????*????ȶ?*???ƶ̷???+?@*?-?9*???Ҷض?*?}??"*???Ҷض?*?}???/Y?3??+?4*?5?-*????!?/Y??Y????*??ƶ̷???+?%*????*?-?
*?5??/Y?3??+?`*?-?Y*??*??*?9??*?????=?/Y??Y?????*??*?9??*????????*????̷???+?b*?-?[*??*?9?????B?/Y??Y????*?????*?}????*?9???ö̷???+?J*????*?????/?/Y??Y????*????!??*???ƶ̷???+?C*???<*??*?%?(?.?/Y??Y??*??*?%?????*???ƶ̷???+?N*???G*?9?-*???0?4?/?/Y??Y??6??*?9??8??*???ƶ̷??*?9?D?<L+?A?a+?D?
M?+?N*??,?G?J?<,???
???-?/Y??Y??L??,?G?߶?N?ö̷????????QOQ?uv??QOP??%? ?@?H?P?a?f?q?{?????????!2	I
\d
????&4L^?!?$%(o+?-?.?/?1?; /?D*)?B6?b?d@J?.?E?P?>?c?
??A,*?????V?c+?Z?c?f?j?lN-?o?
-?r?s??*A AuwAxz/{|? A!AuvAxy?"8;<=>!?&9/@?
?=lB??0}?=	?*+-???+?)s?? ?/Y??Y????????̷??*,?}*?-*?5*???*??Y-??`???9*?9,?
Ys????W*??Y????*??*???+?*????/Y?3???4?uv???????????6
QR2S7T<UAVHWYXqY|Z?[?\?]??2????h?#?Q?+?*?-??/Y?3?*????uv?
ef?"#?k9?'Y*??*?9?D?J???c?????????F????9uv?jk8j!???r(*?9*?}???
L?+?+??/Y?3?+????(uv???tu#v??#
!????Q?+?*????/Y?3??+?*?-??/Y?3?**?}*-???̲+?*????/Y?3??? QuvQ?Q????*?;?P??%!????c?+?*?-??/Y?3??+?*?5??/Y?3??+?*????/Y?3?*+ *+ ???̲+?*????/Y?3??? cuvc?c????*???M?b??"????O*?9+???
:?+?*?}+????/Y?3?? ???????? ????4OuvO?O?O??@?????-?<?H?N??	?-
 !???]?+?*????/Y?3??+?*?-??/Y?3??+?u*?9*?}???3*?9*?}???
???*?9*?}???
??s??5?/Y??Y????*?}????*?9???ö̷???+?????/Y?3?*?-**?}*?9*?}???
??W*??+?*????/Y?3????uv???.??*?^?p??????????????
?E17!???.	b?+?*????/Y?3?*????1?+?G*?-?@-?J*?????,?/Y??Y?????-?????*?9?ƶ̷?????????
???????F:*?9?--??6*?-???<:?A???D??:	*?9	??o-	?J6
?+?+
?&?/Y??Y????	???ö̷??	?J?	?s77
*?9	?
Y

????W??p???<:?A?Q?D??:	*?}	??6	?J?	?s77*?9	?
Y????W???-?<:?A?h?D??:	*?}	??*?9*?}???
???6	?J?	?s77*?9	?
Y????W???*??*??**?%??*?-??*??+?*????/Y?3?????b?
.?2?
?z	????p?	
???V 	??!#??"buvb#b$#bb%#? ??!$b$$b%$??#???h?w??????????????.?2?K?Q?p?|???????????????
??&?)?.?4?<?H?L?a??N?R?RF>?[?B???>?3?B???>?8?B???"??!&'??]?+?*????/Y?3??+?*?-??/Y?3?*?9+???
M,??)Y+?-??+?*????/Y?3??? ]uv]?8%???*	8
<G\??
!.?????+?*????/Y?3??+?*?-??/Y?3??+?*?5??/Y?3?*?9+???
:??)Y??Y??2??+?ö̷-??+?1 ???)?/Y??Y??4??+??6?? ???̷???+?2*??+?J?%?/Y??Y??L??+??8?ö̷??*+ ??W?+?O???G??*??:?/Y??Y??L??+??:?????????/
34?ZMG?0???(??+?<,????1!??)?/Y??Y??U??+??W??!???̷???+?-!s??%?/Y??Y??Y??+???ö̷??!,?ᔞ"*?K[+,??a!?a?d,!???*?Kf+,??a!?a?d??*?uv????????*
C?GoIxJ?K?L?N?O?N?P??/'!????Ͳ+?*????/Y?3??+?*?-??/Y?3??+?*?5??/Y?3?*?9+???
:??*+ ??6*??+?J6?=??*??0*??+?EW6??**?%??*?KM+?S*?i??*??+?*????/Y?3???>?uv????N??^ojjck?N\]*^?_N`SbTd^ejf|g?h?i?j?k?l?n?o?q?r??
?T

???6|l7*??? ?+?n:?A?C?D?
:???,??s?? ?????????s7????+?l???/Y?3???4.1??|"#|tv|wwx?|"$|tu?2z{|~.6?B?D?S?_?b?y????>?+
????"?1???+?*?-??/Y?3?*?9*?}???
L+??A*??*?9??*???7?+?7 ??0?/Y??Y??z????|?? ???ö̷?? ??*?K~?a?S+????*?uv&t??+o?AY?&	??&?+?A?{?????????e
!???|?+?*????/Y?3??+?*?-??/Y?3??+?*?5??/Y?3??+?.*????"?/Y??Y?????*??ƶ̷??*?5??Y??L*?9?D?<M,?A?),?D?
N+-?G-???
????W??Բ+?*????/Y?3??Y*??+*?????? ?OQ?uv}d? ??OP}d?!?.??*???p?u?}??????????0?>?.!?1??Z?+?*????/Y?3??+?*?-??/Y?3??+?*?5??/Y?3?*?5?+?*????/Y?3???Zuv???*???D?Y??!?1??x?+?*????/Y?3??+?*?-??/Y?3??+?*?5??/Y?3?*?-*?5*?9?D?J*???t?+?*????/Y?3???xuv?"??*???D?I?b?w??7!???b??+?*????/Y?3??+?*?-??/Y?3?*??M*?-*+????*?9??+???D?<N-?A?/-?D?
:*?9?G???
????W???*+????**?%??*??,???+?*????/Y?3???*hOQ?uv???/????hOP?>??*?/?4?<?E?h?????????????????)?>?4.????T?+?*?-??/Y?3?*??@??Y??N??Y??:*?9?D-????*??:*-????4Tuv:?"2$#+)%#G
??"2$$+)%$????"?+?AG?!"{?a'?+?*?-??/Y?3?*???????'uv?

?@!???d#?+?*?-??/Y?3?*?9+???
??#uv#??
?"g1?3*?α?uv?
???s?"@1?3*?ұ?uv?
&'?0???s????]*-?Ա?4uv?$#?%#?
????=,???
???*,?G??W,???
???+,?G??W?? =$#=%#=OQ????/?<??k??X+???
M,??s??,????
,s??+?G??*?}?? ,??s??,????
,s???? XuvX?Q
N????
? ?'?:?P?W??	?'
/
?c*,?J?+,?J???? $#!#????@???e&*?9+??*?9+???
??????&uv& ???$@???k*?K?+?a ?a?d??*uv?????
??????_*?K??a?a-?d??*uv?????
?U?7
*???
????
?Q?k
][?K??s?????????@
R??/*???????=
???R*??s??*????????????@?U?X+?G??*?}?????uv?Q???@
???R*??s??*????????????@
fg?N*+?G+???
????X??wy?Q??
TU?7
*???
????
?Q???1?4????+??:?@??QSXYQejlQS??QS?YQ???QS??Q?Q?QSU?Q\`\QS?YQ???Q???Q???QS??Q?Q?	QS?Qe?lQe?lQ?????"	
	
	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy