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

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

????4yQcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDeciderHcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciderAwarenessAllocationDecider.javajava/util/Map$Entry
java/util/MapEntry4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/Setting
Property%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupNAMELjava/lang/String;	awareness6CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTE_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;SLcom/groupbyinc/flux/common/settings/Setting;>;8CLUSTER_ROUTING_ALLOCATION_AWARENESS_FORCE_GROUP_SETTING]Lcom/groupbyinc/flux/common/settings/Setting;awarenessAttributesLjava/util/List;$Ljava/util/List;forcedAwarenessAttributesLjava/util/Map;GLjava/util/Map;>;f(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V$&
'	)getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;+,
-java/util/List/	1"java/lang/invoke/LambdaMetafactory3metafactory?(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;56
478(Ljava/lang/Object;)V:setAwarenessAttributes(Ljava/util/List;)V<=
>?=acceptr(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;)Ljava/util/function/Consumer;BCD3com/groupbyinc/flux/common/settings/ClusterSettingsFaddSettingsUpdateConsumerM(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)VHI
GJ	L,com/groupbyinc/flux/common/settings/SettingsNsetForcedAwarenessAttributesP&
QR&DthisSLcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;settings.Lcom/groupbyinc/flux/common/settings/Settings;clusterSettings5Lcom/groupbyinc/flux/common/settings/ClusterSettings;java/util/HashMap\()V$^
]_getAsGroups()Ljava/util/Map;ab
OcentrySet()Ljava/util/Set;ef	g
java/util/Setiiterator()Ljava/util/Iterator;kljmjava/util/IteratorohasNext()Zqrpsnext()Ljava/lang/Object;uvpwgetValueyvzvalues|	getAsList$(Ljava/lang/String;)Ljava/util/List;~
O?size()I??0?getKey?v?java/lang/String?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??	?!"	?aValuesentryWLjava/util/Map$Entry;Ljava/util/Map$Entry;
forceSettingsforceGroupsQLjava/util/Map;canAllocate?(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;
underCapacity?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Z)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;??
?shardRouting2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;node1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocationBLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;	canRemainisEmpty?r0??com/groupbyinc/flux/cluster/routing/allocation/decider/Decision?YESALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;??	??Jallocation awareness is not enabled, set cluster setting [%s] to enable it?java/lang/Object?()Ljava/lang/String;??
?@com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation?decision?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;??
??metaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
??0com/groupbyinc/flux/cluster/routing/ShardRouting?index#()Lcom/groupbyinc/flux/index/Index;??
??-com/groupbyinc/flux/cluster/metadata/MetaData?getIndexSafeW(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
??2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getNumberOfReplicas??
??0m/com/groupbyinc/flux/cluster/routing/RoutingNode?2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??.com/groupbyinc/flux/cluster/node/DiscoveryNode?
getAttributes?b
??containsKey(Ljava/lang/Object;)Z??	?NO??	??_node does not contain the awareness attribute [%s]; required attributes cluster setting [%s=%s]?
debugDecision?r
??"com/groupbyinc/flux/common/Strings? collectionToCommaDelimitedString((Ljava/lang/Iterable;)Ljava/lang/String;??
??[Ljava/lang/Object;?routingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;??
??0com/groupbyinc/flux/cluster/routing/RoutingNodes?nodesPerAttributesCountsS(Ljava/lang/String;)Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap;??
??=com/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap?
?_shardId+()Lcom/groupbyinc/flux/index/shard/ShardId;??
??assignedShards;(Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/util/List;
?startedr
?initializingr
?
currentNodeId
?
?E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode;?
?&(Ljava/lang/Object;)Ljava/lang/Object;+	addTo(Ljava/lang/Object;I)I
?assignedToNoder
?
relocatingr
?relocatingNodeId?
?nodeId ?
?!equals#?
?$putOrAdd(Ljava/lang/Object;II)I&'
?(
??
??(Ljava/lang/Object;)I+,
?-Dthere are too many copies of the shard allocated to nodes with attribute [%s], there are [%d] total configured shard copies for this shard id and [%d] total attribute values, expected the allocated shard count per attribute [%d] to be less than or equal to the upper bound of the required number of shards per attribute [%d]/java/lang/Integer1valueOf(I)Ljava/lang/Integer;34
25/node meets all awareness attribute requirements7routingNode
assignedShard	fullValuerequiredCountPerAttributeInodesPerAttributeSLcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap;?Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap;shardPerAttributenumberOfAttributes
fullValuesaveragePerAttribute
totalLeftoverleftoverPerAttributecurrentNodeCountawarenessAttribute
moveToNodeZ
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
shardCount/cluster.routing.allocation.awareness.attributesOjava/util/CollectionsQ	emptyList()Ljava/util/List;ST
RUjava/util/function/FunctionWidentity()Ljava/util/function/Function;YZX[Dynamic6Lcom/groupbyinc/flux/common/settings/Setting$Property;]^	_	NodeScopea^	blistSetting?(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;de
f+cluster.routing.allocation.awareness.force.hgroupSettingx(Ljava/lang/String;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;jk
l
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable'(Ljava/util/List;)VBootstrapMethods
SourceFileInnerClasses!nooBo B!"o#$%p?<*+?(*?*+?.?0?2,?**?E?K*?M+?.?O?R,?M*?U?K?q <VW<XY<Z[r_`a b.c;eP&p-g?]Y?`M+?dN-?h?n:?t?@?x?:?{?O}??:???,??????W???*,???q>A?0.??gVWg?Y_!"
Z?"s*A? 0.??_!#
Z??r&	hi
j0kAlKm^oapfqt?		p?C?<=pP*+?2?qVWs r
tuou??pQ	*+,-???q*	VW	??	??	??ry??pQ	*+,-???q*	VW	??	??	??r~??pP	?*?2???-?????Y?*??S???-??+?Ķ?:??`6*?2??:?t?(?x??:,?ն????6-?????YSY?*??SY-??
*?2??S???-????:	??Y??:
-??+?????:?t?I?x??:???	?*-????:


?ն?????W????~+??_+??
+??+?:,?"?%?<
-????ն?????)W
,?ն?????W?
,?ն?????W	?*6*????0:?2??:

?t?
?x??:
?+?????l6
p6
?66?
6??6
,?ն?????.6`?<-??0??YSY?6SY?6SY?6SY`?6S??????ק??-??8?????q??9?
?7:?6E ?
;?<=??>@	??A@
??B=??C??D=
??E=q<=
eF=%MG=\H?VW??????????IJ2TKL;KM=s ??>?	??A?
??C r?5???!?%?2?;?\?m??????????????????????"?6?B?c?{?~????????????????????????????
?%?/?E?M?U?`?d?h?o?r?u?t?%? ?p?S	????p????????	????p?????????%??p?%??&?C??F?$0p"???@?\?	????p?N^pa9P?V?\?Y?`SY?cS?g?*i?Y?`SY?cS?m?M?rTUW2X8Wv9;@A9;STwx	
	@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy