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;????java/util/Objects?requireNonNull??
??/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

?9com/groupbyinc/flux/action/support/nodes/BaseNodeResponseput8(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 closedForg/apache/logging/log4j/LoggerHtrace9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VJKIL"{} processing fetched [{}] resultsNgetNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;PQ
RgetIdT?
U??WgetFetchingRoundY?

Z10	\java/lang/AssertionError^*node entries only replaced by newer rounds`(Ljava/lang/Object;)V2b
_ca{} received response for [{}] from node {} for an older fetching round (expected: {} but was: {})ejava/lang/LonggvalueOf(J)Ljava/lang/Long;ij
hko(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VJmIn-{} node {} has failed for [{}] (failure [{}])p
getFailure()Ljava/lang/Throwable;rs

t](Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VJvIw.{} marking {} as done for [{}], result is [{}]ydoneFetching{b

|.com/groupbyinc/flux/action/FailedNodeException~!{} processing failure {} for [{}]?K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VJ?I?5?
?`{} received failure for [{}] from node {} for an older fetching round (expected: {} but was: {})?getCause?s
?$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

?,()Lorg/apache/logging/log4j/message/Message;?lambda$processAsyncFetch$1\(Lcom/groupbyinc/flux/action/FailedNodeException;)Lorg/apache/logging/log4j/message/Message;??
???(Lcom/groupbyinc/flux/gateway/AsyncShardFetch;Lcom/groupbyinc/flux/action/FailedNodeException;)Lorg/apache/logging/log4j/util/MessageSupplier;???warnG(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V??I?(Ljava/lang/Throwable;)V{?

?
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?&	NHIJ%O*P/Q4R:S??!R4?F*?T??NP?NO?
WX!UV??3<*?;?Z?`M,?f?,?j?
N-?m??????? $
np3NP1qr?$
no3NO?^_$`+a.c1d?
?b?!st???*?T?!?vY?xY?y*?K?}???????*?@,??W**?;+??**?;??N-???k*?E??7-??:?f??j?
:?????-??????+Y??W??????????:*??**?;???
Y*?K?????8Y?9:?=Y?>:*?;????:?f?p?j?:????:??
:	+??:

?<	???	???
W?	?
?
	?
??W????=Y*?@??:*?@???
??;**?K?xY?y ???#?&(???#?&*?????.?
Y*?K?????rnpT_/0?1?^24R5!Fnp	&>67
?w8:?s(??<+we=+?NP?>??@+B?AC?f
rno^23Fno	?w89?s;??<,we=,?NO?@,B?AB??"op%r0s9tBuKxTyrzy{||?}?~???????????????&?+?3?:?J?R?d?g?w????????n%?6?b??6?!?b?Y????b?
?????b??,?7??$DE??	*?T?*?GG*?K*?I?M?*?GO*?K*?I?M+??+??:?f???j?:*?;?S?V?X?
:???[!??F?]??[!???_Ya?d?*?Gf*?K??*?I?[?l!?l?o?N??$*?Gq*?K??*?I?u?x?%*?Gz*?K??*?I?x?}??7,??,??:?f???j?:*?G?*?K*?I??*?;???X?
:???[!??F?]??[!???_Ya?d?*?G?*?K??*?I?[?l!?l?o?R??J????:???????????? *?G*?????????? **?K??.??\	h?npR????=??S?np*???NP?C?C/0?>h?noR???S?noNO??????'????0?4?R?h?m?w??????????????????????*?@?S?X?b?}???????????????????????7?b?U
'(?!??b?h
'?)?????+,???^?,????N-?f?A-?j??:???:+?V???+?V?
Y?V?˹W???+????N-?f? -?j??:,?Қ	-???ݱ?H&&670??o5![&8:?NP??(?>??*0??[&8??NO??)?.??&?4?L?O?d?o?x?~?????b?C??b"???????F??Y??M+?Z?`N-?f?*-?j?
:?ݚ?m?,??W???,??*(npFNPF?(>AC?*(noFNOF?)>AB?(8A
D???b,??????-+?Z?`M,?f?,?j?
N-?m??????? 	np-NP-?(? 	no-NO-?)?&(+??b??????	.*?G?*?K*?I+??*?M*?K+?Y* +????? .NP.>?./0?.NO? -/???r$??Y??Y*?KSY*?ISY+??S???$NP$???$NO???#?
???/????r?}?4?4?????]??;?@*?????????????????2

			




© 2015 - 2024 Weber Informatics LLC | Privacy Policy