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

com.groupbyinc.flux.cluster.routing.allocation.IndexMetaDataUpdater.class Maven / Gradle / Ivy

????4`Ccom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdaterYcom/groupbyinc/flux/cluster/routing/RoutingChangesObserver$AbstractRoutingChangesObserverIndexMetaDataUpdater.javaEcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$1Kcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$UpdatesUpdatesjava/util/Map$Entry
java/util/Map
Entry:com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder2com/groupbyinc/flux/cluster/metadata/IndexMetaDataBuilder5com/groupbyinc/flux/cluster/metadata/MetaData$Builder-com/groupbyinc/flux/cluster/metadata/MetaData7com/groupbyinc/flux/cluster/routing/RecoverySource$Type2com/groupbyinc/flux/cluster/routing/RecoverySourceType:com/groupbyinc/flux/cluster/routing/RoutingChangesObserverAbstractRoutingChangesObserver9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason!2com/groupbyinc/flux/cluster/routing/UnassignedInfo#Reason0com/groupbyinc/flux/cluster/ClusterState$Builder&(com/groupbyinc/flux/cluster/ClusterState(%java/lang/invoke/MethodHandles$Lookup*java/lang/invoke/MethodHandles,LookupshardChangesLjava/util/Map;?Ljava/util/Map;$assertionsDisabledZ()V45
6java/util/HashMap8
96/0	;thisELcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater;shardInitializedg(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V23	A0com/groupbyinc/flux/cluster/routing/ShardRoutingCisRelocationTarget()ZEF
DGjava/lang/AssertionErrorIjava/lang/StringBuilderK
L65shardInitialized is not called on relocation target: Nappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;PQ
LR-(Ljava/lang/Object;)Ljava/lang/StringBuilder;PT
LUtoString()Ljava/lang/String;WX
LY(Ljava/lang/Object;)V4[
J\primary^F
D_shardId+()Lcom/groupbyinc/flux/index/shard/ShardId;ab
DcincreasePrimaryTerm,(Lcom/groupbyinc/flux/index/shard/ShardId;)Vef
gchangesx(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;ij
k
access$000?(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;mn
	oRPrimary cannot be initialized more than once in same allocation round: (previous: q, next: s)u
access$002?(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;wx
	yupdatesMLcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;unassignedShard2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;initializedShardshardStartedaddAllocationId5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V??
?initializingShardstartedShardshardFailedi(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)Vactive?F
D?	getReason=()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;??
$?	NODE_LEFT;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;??	"?removeAllocationId??
?
access$100?n
	?
access$102?x
	?failedShardunassignedInfo4Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;relocationCompletedremovedRelocationSourceapplyChanges?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/metadata/MetaData;entrySet()Ljava/util/Set;???
java/util/Set?stream()Ljava/util/stream/Stream;????"java/lang/invoke/LambdaMetafactory?metafactory?(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;??
???&(Ljava/lang/Object;)Ljava/lang/Object;?lambda$applyChanges$08(Ljava/util/Map$Entry;)Lcom/groupbyinc/flux/index/Index;??
???apply()Ljava/util/function/Function;???java/util/stream/Collectors?
groupingBy;(Ljava/util/function/Function;)Ljava/util/stream/Collector;??
??java/util/stream/Stream?collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;????iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext?F??next()Ljava/lang/Object;????getKey???com/groupbyinc/flux/index/Index?getIndexSafeW(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
?getValue???java/util/List???0com/groupbyinc/flux/cluster/routing/RoutingTable?'com/groupbyinc/flux/index/shard/ShardId?updateInSyncAllocationsV(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;??
?updatePrimaryTerm$(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;??
?builderh(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
?putu(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
?build1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
?)Lcom/groupbyinc/flux/index/shard/ShardId;
shardEntry?Ljava/util/Map$Entry;Ljava/util/Map$Entry;index!Lcom/groupbyinc/flux/index/Index;oldIndexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;indexMetaDataBuilder;>;>;oldMetaData/Lcom/groupbyinc/flux/cluster/metadata/MetaData;newRoutingTable2Lcom/groupbyinc/flux/cluster/routing/RoutingTable;changesGroupedByIndex?Ljava/util/Map;>;>;metaDataBuilder7Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;
access$200^(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Ljava/util/Set;
	
access$300
	(com/groupbyinc/flux/common/util/set/SetshaveEmptyIntersection!(Ljava/util/Set;Ljava/util/Set;)Z
 Yallocation ids cannot be both added and removed in the same allocation round, added ids: ", removed ids: $id()I&'
?(inSyncAllocationIds(I)Ljava/util/Set;*+
,isEmpty.F?/allocationId4()Lcom/groupbyinc/flux/cluster/routing/AllocationId;12
D30com/groupbyinc/flux/cluster/routing/AllocationId5getId7X
68contains(Ljava/lang/Object;)Z:;?<recoverySource6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource;>?
D@getType;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type;BC
DEMPTY_STORE9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type;FG	HemptyJstaleLjava/lang/StringNS primary is not force-initialized in same allocation round where shards are startedPr(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;?R
Sjava/util/CollectionsUemptySetW?
VXputInSyncAllocationIdsN(ILjava/util/Set;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;Z[
\	singleton#(Ljava/lang/Object;)Ljava/util/Set;^_
V`java/util/HashSetb(Ljava/util/Collection;)V4d
ceaddAll(Ljava/util/Collection;)Zgh?i	removeAllkh?lgetNumberOfReplicasn'
oshardRoutingTableg(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;qr
?ssizeu'?v:com/groupbyinc/flux/cluster/routing/IndexShardRoutingTablexassignedShards()Ljava/util/List;z{
y|?v!cannot have more assigned shards % than maximum possible active shards ?(I)Ljava/lang/StringBuilder;P?
L??? lambda$updateInSyncAllocations$1F(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Ljava/lang/String;??
????map8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????toSet()Ljava/util/stream/Collector;??
??java/lang/Object?getClass()Ljava/lang/Class;??
??	='(Ljava/lang/Object;)Ljava/lang/Boolean;?.(Ljava/util/Set;)Ljava/util/function/Function;???java/util/Comparator?	comparing5(Ljava/util/function/Function;)Ljava/util/Comparator;????reversed()Ljava/util/Comparator;????sorted1(Ljava/util/Comparator;)Ljava/util/stream/Stream;????limit(J)Ljava/util/stream/Stream;????activeShards?{
y??/add?;??Hin-sync allocations cannot become empty after they have been non-empty: ?recoverySourceTypeemptyPrimaryDLjava/util/List;Ljava/util/List;assignedAllocations#Ljava/util/Set;Ljava/util/Set;maxActiveShardsInewShardRoutingTable;>;
indexEntry?Ljava/util/Map$Entry;>;clusterState*Lcom/groupbyinc/flux/cluster/ClusterState;staleShardsMLjava/util/List;oldRoutingTable
access$400P(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Z
	primaryTerm(I)J !
"@(IJ)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; $
%lambda$changes$6'j
()j?computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;-./shardRouting
access$402Q(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;Z)Z23
	4J(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$1;)V46
	7kgetByAllocationIdo(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;:;
?<Ljava/lang/String;9com/groupbyinc/flux/cluster/routing/allocation/StaleShard?getAllocationIdAX
@Be;Lcom/groupbyinc/flux/cluster/routing/allocation/StaleShard;
getShardIdFb
@G
staleShardgetIndex#()Lcom/groupbyinc/flux/index/Index;JK
?Lfssjava/lang/ClassQdesiredAssertionStatusSF
RT	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/ClusterState;BootstrapMethods
SourceFileInnerClasses!/0V12345W>*?7*?9Y?:?Y
45?@W???B?%,?H??JY?LY?MO?S,?V?Z?]?,?`?S*,?d?h*,?d?lN?B?6-?p?/?JY?LY?Mr?S-?p?Vt?S,?Vv?S?Z?]?-,?zW?X*@?{|?=>?}~?~Y"9(:/;7=@>^?y@BZ(?P	??@WH*,???X =>?~?~Y
FG??W?J+???/,?????%*+??+?`?*+?d?lN-???	-+??W+???+?`?*+?d?h?X*&
{|J=>J?~J??Y&	KLNO&P-R3WAXIZZ3??W>*+???X=>?~Y
^_??WN?*??
??0"?[ ?5E??YVkln"oEpQqYr\s?t?u?v?w?x?z?{?|?~????????ZW?/??=?????M????
??Wzm?B?A???!?1?JY?LY?M#?S??V%?S??V?Z?]?,?)?-:?p???0???p?4?9?=???p?A?E:?I??6?B?9??0?,?JY?LY?M?	K?M?SQ?S?Z?]?-?,?TN?-?)?Y?]W?-?)?p?4?9?a?]W?g?cY?f:??jW??mW,?p`6+?t:	?w?w???w??	?}:
?B?7
?~?+?JY?LY?M??S
?V??S???Z?]?
????????????:??Y??W?????????????????:	???????????4?9??W?B?4?0?*?0? ?JY?LY?M??S?V?Z?]??0?-?,?TN-?)?]W-?X????G?r?3`?z?
?5??Y*?47??</??	m=>mmm	
mam{|O??[*`?z?
?5??Y*?O??Y?%?)?D?O?e?v??????????????????????,?4?<?Y?`???????????????L?V?Z?_?k?Z??D?J?@?*	??	???L?	??	???LO?????	??y??R'6?	??W??*??M*??N:+?????ƹ??????:???y???:,???޶?::????????ƹ??????:		???
	???:

?????6?-:
???????????????:
?B?A
??-
?????*?JY?LY?M??S
?V??S-?V?Z?]?
?:?B?J?0?@?JY?LY?M?S
???V?S?V?S
?Vv?S?Z?]??0??
?T:?]W?????	,??:??W????*?	???*?X?
?????????
$m???
UWXT	
Eg????

?
?[>??????
$m???
Eg?Y?#??
?
???#?(?E?U?X?l?o?w?|??????????$?G?q?{???????????????????Z??/)????S
)??????)???????U??	
)???????V\??W?&??,?+?TM,-?)+-?)?#
a?&W,?X4&=>&&	
&a&{|Y$ZijWG*?<+?,?0?	?X=>aY??WQ*+?d?l?+?4?9??W?X=>1~Y
"#??WQ*+?d?l?+?4?9??W?X=>1~Y
)*efWC*+?l?5W?X=>aY
0
1
'jW3	?	Y?8?X	9Y
??W`*+????,?=???X &>Y?Z@
??W/*?C?XDEY?
??W/*?H?XIEY?
??W2*?H?M?XNEY?
??W2*?4?9?XO~Y?
??W7
*????M?X
DYlP5W4?U???B?Y4Z@]R??????????????????????????????*+^_R
	

			@ 	"$%@')	+-.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy