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

com.groupbyinc.flux.cluster.routing.IndexRoutingTable.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?5com/groupbyinc/flux/cluster/routing/IndexRoutingTable?Lcom/groupbyinc/flux/cluster/AbstractDiffable;Ljava/lang/Iterable;,com/groupbyinc/flux/cluster/AbstractDiffablejava/lang/IterableIndexRoutingTable.java=com/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder	Builder7com/groupbyinc/flux/cluster/routing/RecoverySource$Type2com/groupbyinc/flux/cluster/routing/RecoverySourceTypeBcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$Builder:com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable5com/groupbyinc/flux/common/io/stream/Writeable$Reader.com/groupbyinc/flux/common/io/stream/WriteableReader%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupindex!Lcom/groupbyinc/flux/index/Index;shuffler3Lcom/groupbyinc/flux/cluster/routing/ShardShuffler;shards8Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;vLcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;allActiveShardsLjava/util/List;DLjava/util/List;\(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;)V()V)+
, 	.9com/groupbyinc/flux/cluster/routing/RotationShardShuffler0%com/groupbyinc/flux/common/Randomness2get()Ljava/util/Random;45
36java/util/Random8nextInt()I:;
9<(I)V)>
1?!"	A#$	Cjava/util/ArrayListE
F,6com/groupbyinc/flux/common/collect/ImmutableOpenIntMapHiterator()Ljava/util/Iterator;JK
ILcom/groupbyinc/flux/index/IndexNjava/util/ListPjava/util/IteratorRhasNext()ZTUSVnext()Ljava/lang/Object;XYSZDcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor\valueLjava/lang/Object;^_	]`
L0com/groupbyinc/flux/cluster/routing/ShardRoutingcactiveeU
dfadd(Ljava/lang/Object;)ZhiQjjava/util/CollectionslunmodifiableList"(Ljava/util/List;)Ljava/util/List;no
mp&'	rshardRouting2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;cursor?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor;FLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor;this7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;getIndex#()Lcom/groupbyinc/flux/index/Index;validate2(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)ZgetName()Ljava/lang/String;?
O?-com/groupbyinc/flux/cluster/metadata/MetaData?hasIndex(Ljava/lang/String;)Z??
??java/lang/IllegalStateException?java/lang/StringBuilder?
?,append-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??. exists in routing does not exists in metadata?-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??toString??
??(Ljava/lang/String;)V)?
??H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;?
??2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getIndexUUID??
??getUUID??
O?java/lang/String?equals?i
??A exists in routing does not exists in metadata with the same uuid?getNumberOfShards?;
??:()Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;#?
?size?;
I?java/util/HashSet?
?,
java/util/Set?java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
???j
LshardId+()Lcom/groupbyinc/flux/index/shard/ShardId;??
?'com/groupbyinc/flux/index/shard/ShardId?id?;
??remove?i??2Wrong number of shards in routing table, missing: ?
?getNumberOfReplicas?;
??Shard [?(I)Ljava/lang/StringBuilder;??
??8] routing table has wrong number of replicas, expected [?], got [?]?|
d?
O?shard routing has an index [?*] that is different from the routing table?
d?inSyncAllocationIds(I)Ljava/util/Set;??
??allocationId4()Lcom/groupbyinc/flux/cluster/routing/AllocationId;??
d?0com/groupbyinc/flux/cluster/routing/AllocationId?getId??
??contains?i??active shard routing ?: has no corresponding entry in the in-sync allocation set ?primary?U
d?initializingU
drecoverySource6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource;
dgetType;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type;	

EXISTING_STORE9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type;
	
a primary shard routing y is a primary that is recovering from a known allocation id but has no corresponding entry in the in-sync allocation set iIindexShardRoutingTable;Ljava/util/Set;#Ljava/util/Set;routingNumberOfReplicasmetaData/Lcom/groupbyinc/flux/cluster/metadata/MetaData;
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;valuesIt!K
I"!numberOfNodesShardsAreAllocatedOn([Ljava/lang/String;)IassignedToNode&U
d'
currentNodeId)?
d*[Ljava/lang/String;,??excludedNodeLjava/lang/String;excludedZshardRoutingTable
excludedNodesnodes	getShardsshard?(I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;(I)Ljava/lang/Object;49
I:allPrimaryShardsActiveprimaryShardsActive=;
>primaryShard4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;@A
BcounterallPrimaryShardsUnassignedprimaryShardsUnassignedF;
G
unassignedIU
dJshardsWithStateI(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;LM
NaddAll(Ljava/util/Collection;)ZPQQRstate7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;randomAllActiveShardsIt6()Lcom/groupbyinc/flux/cluster/routing/ShardsIterator;7com/groupbyinc/flux/cluster/routing/PlainShardsIteratorX1com/groupbyinc/flux/cluster/routing/ShardShufflerZshuffle\o
[](Ljava/util/List;)V)_
Y`java/lang/ObjectbgetClass()Ljava/lang/Class;de
cf
I?othathashCodek;
Ol
IlresultreadFromk(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;java/io/IOExceptionr5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V)t
Ou$(Lcom/groupbyinc/flux/index/Index;)V)w

x0com/groupbyinc/flux/common/io/stream/StreamInputzreadVInt|;
{}readFromThin?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;?
?
addIndexShard}(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;??

?build9()Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;??

?in2Lcom/groupbyinc/flux/common/io/stream/StreamInput;builder?Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;readDiffFromV(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff;"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;??
???F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;?pq
??qread9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;????(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff;??
?writeTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V??
O?1com/groupbyinc/flux/common/io/stream/StreamOutput?	writeVInt?>
??writeToThinr(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V??
?
indexShardout3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;b(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;prettyPrint
-- index [?]
?
??'(Ljava/lang/Object;Ljava/lang/Object;)I?lambda$prettyPrint$0{(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)I??
???compare()Ljava/util/Comparator;???;	compareTo(Ljava/lang/String;)I??
??(II)I??
??o1o2v	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable?(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;)VT()Ljava/util/Iterator;x()Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;}(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;
Exceptions?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff;BootstrapMethods
SourceFileInnerClasses! !"#$?%&'?()*?f?*?-*+?/*?1Y?7?=?@?B*,?D?FY?GN,?M:?W?I?[?]:?a??b:?W?#?[?d:?g?-?kW??٧??*-?q?s??>ftuC7vx?yz? ?#$'_&'? C7vw?#%'_&(?6
KL	MNO'PCQfRnSwUzV}W?X?(?-OIQS?"]S&????{|?/*?/??yz?`}~??	M+*?/?????!??Y??Y??*?/??????????+*?/????M,??*?/?????$??Y??Y??*?/????????????,??*?????u??Y??N6,???-?¹?W????*??:?W?$?[?:-?ȶ͸¹?W??ػ?Y??Y??Ҷ?-???????*??N-?W?V-?[?:??d6,?֟@??Y??Y??ض??ȶͶ?ݶ?,?ֶ?߶???????????b:?W???[?d:??*?/??'??Y??Y??????????????,???:?g?;??????)??Y??Y???????????????????S??K????=??????+??Y??Y??????????????????????f
???j???o?tu<EMyzM8 ??j?????!ef,h8iIjjnxo?p?q?p?s?t?u?v?z{|}6~R?o?~???????????????E?H?K??G,?=?????S?*??S?b?S?Hd?J??W??JK?2*?D?#??yz?????$%??
???Y??M*??N-?W??-?[?:?b:?W?e?[?d:?(?N?+:6+?2+:		?6
6
? 	2:???	6?	?????,??W?????y,?.??Rm/0MD)0PA12>Stu!s3?yz?4,?5??5?F??!?>?F?M?P?T?m?w?z?}????????????F?
?S?S?6-?SSd?-??
??#??/*?D??yz????6??/*????yz????78?@*?D?;???yz???<U?I*??*????????yz???@=;??,<*??M,?W?,?[?N-?C?g??????? 
3,yz*D????$?'?*??
?S?EU?I*?H*?D??????yz???@F;??,<*??M,?W?,?[?N-?C?K??????? 
3,yz*D????$?'?*??
?S?LM??3?FY?GM*??N-?W?-?[?:,+?O?SW???,??*!
33yz3TU+#'?+#(???!?.1??
QS?#??VW?=?YY*?B*?s?^?a??yz??i???*+??+?*?g+?g??+?M*?/,?/???*?D,?D?h???? ?yz?i_"jz?
-=??k;?S*?/?m<h*?D?n`<??yzo?	pq??5?OY*?vL?
Y+?yM*?~>6?,*+????W????,????45??	, #???? 	!#$ %*$0(??{O
??s	???4
??*????
???,?s??????4*?/+??+*?D????*??M,?W?,?[?N-+?????? +?4yz4???123+40536??S??s	???3	?
Y*?y??	 ?9??????Y??Y?????*?/?????????L?FY?GM*??N-?W?-?[?:,?kW???,????,??N-?W?t-?[?:+ж??ȶҶ???Զ??ȶͶ????W?b:?W?(?[?d:+ֶ??ٶ?۶?W??ԧ??+????>F	??7uvc??yz%???-??'?-????6
?%?-?F?O?R[v?
?????&?2?QS??S?GS?.?
????0*?ȶҶ?+?ȶҶ???=?*?ȶ?+?ȶ͸?=?? 0?0???"$*.??.????????????*
	
@		




© 2015 - 2024 Weber Informatics LLC | Privacy Policy