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

com.groupbyinc.flux.gateway.PrimaryShardAllocator.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????31com/groupbyinc/flux/gateway/PrimaryShardAllocator6com/groupbyinc/flux/common/component/AbstractComponentPrimaryShardAllocator.javaAcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesToAllocateNodesToAllocateBcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesAndVersions	NodesAndVersions3com/groupbyinc/flux/gateway/PrimaryShardAllocator$17com/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult+com/groupbyinc/flux/gateway/AsyncShardFetchFetchResultAcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards0com/groupbyinc/flux/cluster/routing/RoutingNodesUnassignedShardsTcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIteratorUnassignedIterator[com/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeGatewayStartedShardsBcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShardsNodeGatewayStartedShardsDcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision"TypeINDEX_RECOVERY_INITIAL_SHARDSLjava/lang/String;index.recovery.initial_shards'
initialShards1(Lcom/groupbyinc/flux/common/settings/Settings;)V*+
,gateway.initial_shards.gateway.local.initial_shards0quorum2,com/groupbyinc/flux/common/settings/Settings4get8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;67
58)&	:logger-Lcom/groupbyinc/flux/common/logging/ESLogger;<=	>using initial_shards [{}]@java/lang/ObjectB+com/groupbyinc/flux/common/logging/ESLoggerDdebug((Ljava/lang/String;[Ljava/lang/Object;)VFGEHthis3Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator;settings.Lcom/groupbyinc/flux/common/settings/Settings;allocateUnassignedE(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Z@com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocationProutingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;RS
QTmetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;VW
X
unassignedE()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards;Z[
\iteratorX()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIterator;^_
`-com/groupbyinc/flux/cluster/metadata/MetaDatabhasNext()Zde
fnext4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;hi
jneedToFindPrimaryCopy5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Zlm
n0com/groupbyinc/flux/cluster/routing/ShardRoutingp	fetchData?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;rs
thasDatave
w;{}: ignoring allocation, still fetching shard started stateytrace{GE|setHasPendingAsyncFetch()V~
Q?removeAndIgnore?
?getIndex()Ljava/lang/String;??
q?indexH(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
c?2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getSettings0()Lcom/groupbyinc/flux/common/settings/Settings;??
??recoverOnAnyNode1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
?shardId+()Lcom/groupbyinc/flux/index/shard/ShardId;??
q?getIgnoreNodes:(Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/util/Set;??
Q?buildNodesAndVersions?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;ZLjava/util/Set;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;)Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesAndVersions;??
?:[{}][{}] found {} allocations of {}, highest version: [{}]???
q?id()I??
q?java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??allocationsFoundI??	
?highestVersionJ??	
?java/lang/Long?(J)Ljava/lang/Long;??
??isEnoughAllocationsFound?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesAndVersions;)Z??
?
restoreSource5()Lcom/groupbyinc/flux/cluster/routing/RestoreSource;??
q??[{}][{}]: not allocating, number_of_allocated_shards_found [{}]?4[{}][{}]: missing local data, will restore from [{}]?buildNodesToAllocate?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesAndVersions;)Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesToAllocate;??
?yesNodesLjava/util/List;??	?java/util/List?isEmpty?e??(I)Ljava/lang/Object;6???.com/groupbyinc/flux/cluster/node/DiscoveryNode?7[{}][{}]: allocating [{}] to [{}] on primary allocation???
??????????
initialize(Ljava/lang/String;JJ)V??
?
throttleNodes??	?noNodes??	??[{}][{}]: forcing allocating [{}] to [{}] on primary allocation?B[{}][{}]: throttling allocation [{}] to [{}] on primary allocation?node0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;shard2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
shardState?Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;9Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;nodesAndVersionsDLcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesAndVersions;nodesToAllocateCLcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesToAllocate;
allocationBLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;changedZ2Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;/Lcom/groupbyinc/flux/cluster/metadata/MetaData;unassignedIteratorVLcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIterator;primarye
qallocatedPostIndexCreatee
q	java/lang/ExceptionLM	
java/lang/Stringequals(Ljava/lang/Object;)Z
getNumberOfReplicas?
?quorum-1halfonefullall full-1"all-1$parseInt(Ljava/lang/String;)I&'
?(Q[{}][{}] failed to derived initial_shards from value {}, ignore allocation for {}*warn,GE-eLjava/lang/Exception;requiredAllocationjava/util/ArrayList2*
34nodes6?	
7()Ljava/util/Iterator;^9?:java/util/Iterator<=f()Ljava/lang/Object;h?=@E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode;?B
C/com/groupbyinc/flux/cluster/routing/RoutingNodeEdecidersM()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders;GH
QIIcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecidersKcanAllocate?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;MN
LOtypeH()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type;QR
#STHROTTLEFLcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type;UV	!WaddY?ZNO\V	!]java/util/Collections_unmodifiableList"(Ljava/util/List;)Ljava/util/List;ab
`c3(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V*e
f1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;decisionALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;	discoNodeBLjava/util/List;throttledNodes5com/groupbyinc/flux/common/google/common/collect/Mapsn
newHashMap()Ljava/util/HashMap;pq
orgetData()Ljava/util/Map;tu
v
java/util/Mapxvalues()Ljava/util/Collection;z{y|java/util/Collection~:
java/util/Set?version()J??
?getNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
?contains???storeException()Ljava/lang/Throwable;??
?+[{}] on node [{}] has version [{}] of shard?Z[{}] on node [{}] has version [{}] but the store can not be opened, treating as version -1?=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V{?E?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??y?clear?y?keySet()Ljava/util/Set;??y?addAll(Ljava/util/Collection;)Z????E(Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator;Ljava/util/Map;)V*?

? ?&(Ljava/lang/Object;)Ljava/lang/Object;6?y?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??, ? {} candidates for allocation: {}?toString??
??(Ljava/util/List;IJ)V*?

?nodeShardState]Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeGatewayStartedShards;nsbLjava/lang/StringBuilder;recoveryOnAnyNodeignoreNodes#Ljava/util/Set;Ljava/util/Set;nodesWithVersionQLjava/util/Map;Ljava/util/Map;numberOfAllocationsFoundnodesWithHighestVersionisOnSharedFilesystem??
??+index.shared_filesystem.recover_on_any_node?java/lang/Boolean?(Z)Ljava/lang/Boolean;??
??getAsBoolean:(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;??
5?booleanValue?e
??idxSettings
ConstantValueCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable	Signature4(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;ZLjava/util/Set;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;)Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator$NodesAndVersions;(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;
SourceFileInnerClasses!%&?()&*+?n.*+?-*+/+13?9?9?;*??A?CY*?;S?I??.JK.LM?567-8NO??P=+?UN-?Y:-?]?a:?g?3?k:*?o????*+?u:?x?#*??z?CYS?}+???????????:**????+??????:	*????CY??SY????SY	????SYSY	????S?I*	???m???8??*????CY??SY????SY	????S?I??*????CY??SY????SY??S?I???*+	??:

?ѹ??V
??????:*????CY??SY????SYSYS?I=??	?????
????c
????V
??????:*????CY??SY????SYSYS?I=??	????7*????CY??SY????SYSY
??S?I????????
f@???@??%&??:??n???????	I??
PJKP??N?IR
CV:?:????';<=
?@A%C.D1G:HBIVJZK_LbOnQ?R?T?V?X?Y[;]>`IaVbfc?d?e?f?g?hijkmFnKpNq?P	?Qc?q?0???
,?j?m?3Qclm?b+???+?
????JK???xy	}~??	????6+????,??(*?(*?;?9?9:3??,???,?`l`6??????,??p,?`l6?c??	6?R??!??,?`6?1#??%??,??,?6?
?)6?1:*??+?CY+??SY+????SY*?;SY+S?.-?????
???H"?)&?,/0JK??????1??V??
?"?,?4?C?Y?a?n?y?????????????????????
?C
?B-@??????3Y?5:?3Y?5:?3Y?5:-?8?;:?>?o?A??:,?U?߶D:		????,?J+	,?P:

?T?X??[W?%
?T?^??[W?
?[W????Y?d?d?d?g??f
JO?h	_:ij
<]k??JK?????????	????m????? 	??l?ml??l?>?	???<?J?O?R?_?j?w??????????7?&qQ
???=?+?F?$#?	??????s:6?7?w?}??:		?>??	?A?:

??7
??:
-
?߹?????
???**????CY+SY
??SY??S?}?1*???
???CY+SY
??SY??S???7?$???7
????W?K???B??? 7??
????W???
????W???3Y?5:		????W	?
Y*????*????????Y???:
????:?>?A?A??:
????¶?Ķ?ƶ?????ζ?W???
Ķ?W*????CY+SY
??S?}?
Y	?d?ְ??;???B???
4???
?/??_{??
?JK?????????????????
???)???	?*?????????)??l	??%???
?4?;?B?P?S?[?????????????????????????????? ?)?8?G?S?_??????????z?	q?y=?4?.-0???Lq?y??=?G
q?y???$?????a+??+?????????JK?M?
?@rs??B

		!#$@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy