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

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

There is a newer version: 59
Show newest version
????31com/groupbyinc/flux/gateway/ReplicaShardAllocator6com/groupbyinc/flux/common/component/AbstractComponentReplicaShardAllocator.java?com/groupbyinc/flux/gateway/ReplicaShardAllocator$MatchingNodes
MatchingNodes7com/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult	+com/groupbyinc/flux/gateway/AsyncShardFetchFetchResultYcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaDataFcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaDataStoreFilesMetaDataDcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodeIterator0com/groupbyinc/flux/cluster/routing/RoutingNodesRoutingNodeIteratorEcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodesIteratorRoutingNodesIterator]com/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$NodeStoreFilesMetaDataNodeStoreFilesMetaDataAcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShardsUnassignedShardsTcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIterator!UnassignedIteratorjava/util/Map$Entry$
java/util/Map&Entry9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason)2com/groupbyinc/flux/cluster/routing/UnassignedInfo+ReasonDcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type.?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision0Type$assertionsDisabledZ1(Lcom/groupbyinc/flux/common/settings/Settings;)V56
7this3Lcom/groupbyinc/flux/gateway/ReplicaShardAllocator;settings.Lcom/groupbyinc/flux/common/settings/Settings;processExistingRecoveriesE(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Z@com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation?routingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;AB
@CnodesI()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodesIterator;EF
GhasNext()ZIJ
Knext3()Lcom/groupbyinc/flux/cluster/routing/RoutingNode;MN
O
nodeShardsH()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodeIterator;QR
S
K4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;MV
W0com/groupbyinc/flux/cluster/routing/ShardRoutingYprimary[J
Z\initializing^J
Z_relocatingNodeId()Ljava/lang/String;ab
ZcallocatedPostIndexCreateeJ
Zf	fetchData?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;hi
jhasDatalJ

mlogger-Lcom/groupbyinc/flux/common/logging/ESLogger;op	q.{}: fetching new stores for initializing shardsjava/lang/Objectu+com/groupbyinc/flux/common/logging/ESLoggerwtrace((Ljava/lang/String;[Ljava/lang/Object;)Vyzx{
activePrimaryf(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;}~
34	?java/lang/AssertionError?[the replica shard can be allocated on at least one node, so there must be an active primary?(Ljava/lang/Object;)V5?
??	findStore
(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;)Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaData;??
?	allocated?J
?V{}: no primary shard store found or allocated, letting actual allocation figure it out?findMatchingNodesK(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaData;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;)Lcom/groupbyinc/flux/gateway/ReplicaShardAllocator$MatchingNodes;??
?getNodeWithHighestMatch2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
?3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;E?
@?
currentNodeId?b
Z?/com/groupbyinc/flux/cluster/node/DiscoveryNodes?getD(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??.com/groupbyinc/flux/cluster/node/DiscoveryNode?equals(Ljava/lang/Object;)Z??
??isNodeMatchBySyncID3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Z??
?Jcancelling allocation of replica on [{}], sync id match found on node [{}]?debug?zx?REALLOCATED_REPLICA;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;??	*?java/lang/StringBuilder?()V5?
??#existing allocation of replica to [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??*] cancelled, sync id match found on node [?]?toString?b
??getCurrentNanoTime()J??
@?java/lang/System?currentTimeMillis??
??g(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;Ljava/lang/Throwable;JJ)V5?
,?moveToUnassigned7(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)V??
?currentNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;nodeWithHighestMatchshard2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;shardStores?Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;9Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;primaryShardprimaryStore[Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaData;
matchingNodesALcom/groupbyinc/flux/gateway/ReplicaShardAllocator$MatchingNodes;itFLcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodeIterator;GLcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodesIterator;
allocationBLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;changedallocateUnassigned
unassignedE()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards;??
?iteratorX()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIterator;??
?
"K
"WcanBeAllocatedToAtLeastOneNodew(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Z??
?7{}: ignoring allocation, can't be allocated on any noderemoveAndIgnore?
"4{}: ignoring allocation, still fetching shard storessetHasPendingAsyncFetch?
@	idb
?nodeE(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
decidersM()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders;
@Icom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciderscanAllocate?(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;
typeH()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type;
1THROTTLEFLcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type; !	/"_[{}][{}]: throttling allocation [{}] to [{}] in order to reuse its unallocated persistent store$index&b
Z'()I)
Z*java/lang/Integer,valueOf(I)Ljava/lang/Integer;./
-0/com/groupbyinc/flux/cluster/routing/RoutingNode2?
34T[{}][{}]: allocating [{}] to [{}] in order to reuse its unallocated persistent store6nodeId8b
39version;?
Z<clusterInfo+()Lcom/groupbyinc/flux/cluster/ClusterInfo;>?
@@????????'com/groupbyinc/flux/cluster/ClusterInfoDgetShardSize6(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;J)JFG
EH
initialize(Ljava/lang/String;JJ)VJK
"L
hasAnyDataNJ
OignoreUnassignedIfDelayed?(Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIterator;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)ZQR
S1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;decisionALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;2Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;unassignedIteratorVLcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards$UnassignedIterator;unassignedInfo6()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;[\
Z]getLastComputedLeftDelayNanos_?
,`.[{}][{}]: delaying allocation of [{}] for [{}]b)com/groupbyinc/flux/common/unit/TimeValuedtimeValueNanos.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;fg
ehdelayJ	dataNodes7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;lm
?n3com/groupbyinc/flux/common/collect/ImmutableOpenMappvalues@()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;rs
qt;CLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor;
??getData()Ljava/util/Map;??

?&(Ljava/lang/Object;)Ljava/lang/Object;??'?storeFilesMetaData]()Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaData;??
?dataprimaryNodeprimaryNodeFilesStore_Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$NodeStoreFilesMetaData;>com/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongHashMap?
??entrySet()Ljava/util/Set;??'?
java/util/Set??y:com/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap?getKey?~%?getValue?~%?NO?!	/?
ysyncId?b
?java/lang/String?
??,{}: node [{}] has same sync id {} as primary?name?b
?????????put(Ljava/lang/Object;J)J????1com/groupbyinc/flux/index/store/StoreFileMetaData?
??
fileExists(Ljava/lang/String;)Z??
?fileG(Ljava/lang/String;)Lcom/groupbyinc/flux/index/store/StoreFileMetaData;??
?isSame6(Lcom/groupbyinc/flux/index/store/StoreFileMetaData;)Z??
??length??
??1{}: node [{}] has [{}/{}] bytes of re-usable data?-com/groupbyinc/flux/common/unit/ByteSizeValue?(J)V5?
??java/lang/Long?(J)Ljava/lang/Long;.?
???(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;)V5?
?metaDataFileNameLjava/lang/String;storeFileMetaData3Lcom/groupbyinc/flux/index/store/StoreFileMetaData;sizeMatched	discoNode
primarySyncId
replicaSyncIdnodeStoreEntry?Ljava/util/Map$Entry;Ljava/util/Map$Entry;nodesToSizenLcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap;java/lang/Class?desiredAssertionStatus?J
??CodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable	Signaturek(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;)Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaData;?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$StoreFilesMetaData;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;)Lcom/groupbyinc/flux/gateway/ReplicaShardAllocator$MatchingNodes;(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;
SourceFileInnerClasses!34	56?>*+?8??9:;<?
12=>??
u=+?D?HN-?L?e-?PW-?T:?U?O?X:?]?????`?????d?????g????*+?k:?n?*?rt?vYS?|???+?D??:????
??Y????*+??:????*?r??vYS?|??P*+??:		????+??????:
	??:
???m	
???c	???X*?r??vY
SYS???,Y????Y?????
??ɶ???˶Ķ?+?Ҹ׷ڶ?=????????z?{??
?t??+B??a??????????????	T??
iE?u9:u??s?4?a????%:;<=$>+?4@7B?CBEJFMIUJXMaNiO}P?S?T?U?V?Y?Z?]?^?_?`?abcf1h_jhhkkmnsp?E
?
??Z


?'
?Z???@???>?M?=+?DN-????:??????:?]?????g????*+?? *?r?vYS?|????*+?k:?n?$*?r?vYS?|+?
????-??:????
??Y????*+??:????*?r??vYS?|??9*+??:		????+?D	???
?:
+?
+?:??#?;*?r%?vY?(SY?+?1SYSY
?5S????P*?r7?vY?(SY?+?1SYSY
?5S??=
?:?=+?AB?I?M?	?P?*?T?=??\??z??U
?VW???eO?????????????	?9:?????4?AX?YZ?eO????'tuvwxy'z*~25???T?Y?\?e?m????????????????????????????I?Q??????????????L
?"?Z
&?1
?Z??v31?L?@"QR??B,?^?aB!	??5*?rc?vY,?(SY,?+?1SY,SY!?iS??+????*B9:BYZB??:jk????:?>?@???@???
_,???o?u?zN-?}?G-????:,?D?????
?:????,?+,?:??????????>8"UM
VW$6??_9:_??_???$6???&	?$?8?=?@?M?X?Z?]???|?/?3??????F???+?????Y???,??+????:??-?????:??????>F9:F??F??F??"$??9
???F???"??"?'?)?9?>?@??????????D	???Y??:??????:?}?U???%:????:?????:		????,?D?
?:

????,?+
,?:???????	??????	???}???~-??:	??:

?>
???4*?r??vY+SY??SY
S?|???X??	7	??:?}?:????:??:-?ʙ-???ҙ
??a7???*?r??vY+SY??SY??Y??SY??S?|??X????Y????!??(?????k<7??K(??	aU
v?VW????????
0C???9:????????????	w??? 0C?????	w????!?	?0?<?K?P?S?afiv?	?
?????????? *!4#7$J%b$g&s(v*?X??|?8%??3?1
?L???	|=??;Z@
?|??hi????4????????.?@Z

			 "#%'(	*,-@/12@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy