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

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

There is a newer version: 198
Show newest version
????4+com/groupbyinc/flux/gateway/AsyncShardFetch~Ljava/lang/Object;Lcom/groupbyinc/flux/common/lease/Releasable;java/lang/Object+com/groupbyinc/flux/common/lease/ReleasableAsyncShardFetch.java5com/groupbyinc/flux/gateway/AsyncShardFetch$NodeEntry		NodeEntry7com/groupbyinc/flux/gateway/AsyncShardFetch$FetchResultFetchResult2com/groupbyinc/flux/gateway/AsyncShardFetch$ListerLister-com/groupbyinc/flux/gateway/AsyncShardFetch$1java/util/Map$Entry
java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookuplogger!Lorg/apache/logging/log4j/Logger;typeLjava/lang/String;shardId)Lcom/groupbyinc/flux/index/shard/ShardId;action4Lcom/groupbyinc/flux/gateway/AsyncShardFetch$Lister;zLcom/groupbyinc/flux/gateway/AsyncShardFetch$Lister;TT;>;cacheLjava/util/Map;_Ljava/util/Map;>;
nodesToIgnoreLjava/util/Set;#Ljava/util/Set;round(Ljava/util/concurrent/atomic/AtomicLong;closedZ$assertionsDisabled?(Lorg/apache/logging/log4j/Logger;Ljava/lang/String;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$Lister;)V()V24
5java/util/HashMap7
85'(	:java/util/HashSet<
=5*+	?&java/util/concurrent/atomic/AtomicLongA
B5-.	D	F !	H"#	J$%	Lthis2Lcom/groupbyinc/flux/gateway/AsyncShardFetch;-Lcom/groupbyinc/flux/gateway/AsyncShardFetch;{Lcom/groupbyinc/flux/gateway/AsyncShardFetch$Lister<+Lcom/groupbyinc/flux/action/support/nodes/BaseNodesResponse;TT;>;close/0	SgetNumberOfInFlightFetches()Ivalues()Ljava/util/Collection;WXYjava/util/Collection[iterator()Ljava/util/Iterator;]^\_java/util/IteratorahasNext()Zcdbenext()Ljava/lang/Object;ghbi
isFetchingkd

l	nodeEntry;7Lcom/groupbyinc/flux/gateway/AsyncShardFetch$NodeEntry;countI	fetchData{(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/util/Set;)Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;java/lang/IllegalStateExceptionujava/lang/StringBuilderw
x5append-(Ljava/lang/Object;)Ljava/lang/StringBuilder;z{
x|(: can't fetch data on closed async fetch~-(Ljava/lang/String;)Ljava/lang/StringBuilder;z?
x?toString()Ljava/lang/String;??
x?(Ljava/lang/String;)V2?
v?
java/util/Set?addAll(Ljava/util/Collection;)Z????fillShardCacheWithDataNodesC(Ljava/util/Map;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)V??
?findNodesToFetch!(Ljava/util/Map;)Ljava/util/List;??
?java/util/List?isEmpty?d??incrementAndGet()J??
B??_markAsFetching(J)V??

?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;?	getNodeId??

??K(Lcom/groupbyinc/flux/gateway/AsyncShardFetch$NodeEntry;)Ljava/lang/String;?apply()Ljava/util/function/Function;???java/util/stream/Stream?map8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????getClass()Ljava/lang/Class;??
?/com/groupbyinc/flux/cluster/node/DiscoveryNodes?getD(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
????P(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Ljava/util/function/Function;???(I)Ljava/lang/Object;?lambda$fetchData$04(I)[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
???"()Ljava/util/function/IntFunction;???toArray5(Ljava/util/function/IntFunction;)[Ljava/lang/Object;????1[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;?
asyncFetch5([Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;J)V??
?hasAnyNodeFetching(Ljava/util/Map;)Z??
?java/util/Collections?emptySet()Ljava/util/Set;??
??J(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/Map;Ljava/util/Set;)V2?

?entrySet????_getKey?h?java/lang/String?getValue?h?isFailedd

remove4badd(Ljava/lang/Object;)Z?.com/groupbyinc/flux/cluster/node/DiscoveryNode


?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
(Ljava/util/Collection;)V2
=unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;
?clear4???nodes failed [sizeV?(I)Ljava/lang/StringBuilder;z!
x"], ignored [$]&reroute>(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)V()
*
fetchingRoundJdiscoNodesToFetchentryeLjava/util/Map$Entry;>;Ljava/util/Map$Entry;nodeIdnode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;it{Ljava/util/Iterator;>;>;Ljava/util/Iterator;DLjava/util/Map;failedNodesallIgnoreNodesnodes1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;ignoreNodesnodesToFetchNLjava/util/List;>;Ljava/util/List;processAsyncFetch$(Ljava/util/List;Ljava/util/List;J)V0{} ignoring fetched [{}] results, already closedCorg/apache/logging/log4j/LoggerEtrace9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VGHFI"{} processing fetched [{}] resultsK9com/groupbyinc/flux/action/support/nodes/BaseNodeResponseMgetNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;OP
NQgetIdS?
T??VgetFetchingRoundX?

Y10	[java/lang/AssertionError]*node entries only replaced by newer rounds_(Ljava/lang/Object;)V2a
^ba{} received response for [{}] from node {} for an older fetching round (expected: {} but was: {})djava/lang/LongfvalueOf(J)Ljava/lang/Long;hi
gjo(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VGlFm-{} node {} has failed for [{}] (failure [{}])o
getFailure()Ljava/lang/Throwable;qr

s](Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VGuFv.{} marking {} as done for [{}], result is [{}]xdoneFetchingza

{.com/groupbyinc/flux/action/FailedNodeException}!{} processing failure {} for [{}]K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VG?F?2?
~?`{} received failure for [{}] from node {} for an older fetching round (expected: {} but was: {})?getCause?r
~?$com/groupbyinc/flux/ExceptionsHelper?unwrapCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;??
??Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException?>com/groupbyinc/flux/transport/ReceiveTimeoutTransportException?1com/groupbyinc/flux/ElasticsearchTimeoutException?java/lang/Throwable?restartFetching?4

?hlambda$processAsyncFetch$1D(Lcom/groupbyinc/flux/action/FailedNodeException;)Ljava/lang/Object;??
???(Lcom/groupbyinc/flux/gateway/AsyncShardFetch;Lcom/groupbyinc/flux/action/FailedNodeException;)Lorg/apache/logging/log4j/util/Supplier;???warn@(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V??F?(Ljava/lang/Throwable;)Vz?

?
post_response?responseTT;;Lcom/groupbyinc/flux/action/support/nodes/BaseNodeResponse;unwrappedCauseLjava/lang/Throwable;failure0Lcom/groupbyinc/flux/action/FailedNodeException;	responsesLjava/util/List;failuresBLjava/util/List;getDataNodes7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
??3com/groupbyinc/flux/common/collect/ImmutableOpenMap?
?_Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor?valueLjava/lang/Object;??	??containsKey??

?keySet???
nodeExists(Ljava/lang/String;)Z??
??cursor?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;(Ljava/util/Iterator;
shardCachejava/util/ArrayList?
?5hasData?d

??{} fetching [{}] from {}?b(Lcom/groupbyinc/flux/gateway/AsyncShardFetch;J[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V2?
?list?(Lcom/groupbyinc/flux/index/shard/ShardId;[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionListener;)V???5org/apache/logging/log4j/message/ParameterizedMessage?,{}: failed to list shard for {} on node [{}]?((Ljava/lang/String;[Ljava/lang/Object;)V2?
??x$0java/lang/Class?desiredAssertionStatus?d
??	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable?(Lorg/apache/logging/log4j/Logger;Ljava/lang/String;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$Lister<+Lcom/groupbyinc/flux/action/support/nodes/BaseNodesResponse;TT;>;)V
StackMapTable?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/util/Set;)Lcom/groupbyinc/flux/gateway/AsyncShardFetch$FetchResult;[(Ljava/util/List;Ljava/util/List;J)V?(Ljava/util/Map;>;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)V?(Ljava/util/Map;>;)Ljava/util/List;>;b(Ljava/util/Map;>;)ZBootstrapMethods
SourceFileInnerClasses!	 !"#$%?&'(?)*+?,-./010
23??;*?6*?8Y?9?;*?=Y?>?@*?BY?C?E*+?G*,?I*-?K*?M??4;NP;; !;"#;$%?;NO;$Q?&	OIJK%P*Q/R4S:T??!R4?F*?T??NP?NO?
XY!UV??3<*?;?Z?`M,?f?,?j?
N-?m??????? $
np3NP1qr?$
no3NO?_`$a+b.d1e?
?b?!st???*?T?!?vY?xY?y*?K?}???????*?@,??W**?;+??**?;??N-???k*?E??7-??:?f??j?
:?????-??????+Y??W??????????:*??**?;???
Y*?K???8Y?9:?=Y?>:*?;????:?f?m?j?:????:???
:	+??:

?9	???	???	W?	??
	??W????=Y*?@??:*?@???
??;**?K?xY?y??? ?#%??? ?#'?????+?
Y*?K????rnpT_,-?.?[/1O2!Cnp	&;34
?t57?s(??9+te:+?NP?;<?=+B?>@?f
rno[/0Cno	?t56?s8??9,te:,?NO?=,B?>???"pq%s0t9uBvKyTzr{y||}?~????????????????&?+?3?:?J?R?a?d?t?}??????n%?6?b??6?!?b?Y????b?
?????b??,?7??$AB??	*?T?*?GD*?K*?I?J?*?GL*?K*?I?J+??+??:?f???j?N:*?;?R?U?W?
:???Z!??F?\??Z!???^Y`?c?*?Ge*?K??*?I?Z?k!?k?n?N??$*?Gp*?K??*?I?t?w?%*?Gy*?K??*?I?w?|??7,??,??:?f???j?~:*?G?*?K*?I??*?;???W?
:???Z!??F?\??Z!???^Y`?c?*?G?*?K??*?I?Z?k!?k?n?R??J????:???????????? *?G*?????????? **?K??+??\	h?npR????=??S?np*???NP?@?@,-?>h?noR???S?noNO??????'????0?4?R?h?m?w??????????????????????*?@?S?X?b?}???????????????????????7?b?UN
'(?!??b?h~
'?)?????()???^?,????N-?f?A-?j??:???:+?U???+?U?
Y?U?ɹW???+????N-?f? -?j??:,?К	-???ݱ?H&&340??o2![&57?NP??(?;<?*0??[&5??NO??)?.??&?4?L?O?d?o?x?~?????b?C??b"???????F??Y??M+?Z?`N-?f?*-?j?
:?ۚ?m?,??W???,??*(npFNPF?(>>@?*(noFNOF?)>>??(8	AD???b,???????-+?Z?`M,?f?,?j?
N-?m??????? 	np-NP-?(? 	no-NO-?)?&(+??b???????	.*?G?*?K*?I+??*?M*?K+?Y* +????? .NP.;?.,-?.NO? !-0???r$??Y??Y*?KSY*?ISY+??S???$NP$???$NO???#?
???/????r?~?4?4????\??<?@*?????????????????2

			




© 2015 - 2024 Weber Informatics LLC | Privacy Policy