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

com.groupbyinc.flux.tasks.TaskManager.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4p%com/groupbyinc/flux/tasks/TaskManager6com/groupbyinc/flux/common/component/AbstractComponent/com/groupbyinc/flux/cluster/ClusterStateApplierTaskManager.java;com/groupbyinc/flux/tasks/TaskManager$CancellableTaskHolderCancellableTaskHolder'com/groupbyinc/flux/tasks/TaskManager$2'com/groupbyinc/flux/tasks/TaskManager$1
java/util/Map$Entry
java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupWAIT_FOR_COMPLETION_POLL+Lcom/groupbyinc/flux/common/unit/TimeValue;taskHeadersLjava/util/List;$Ljava/util/List;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;tasks>Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;`Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;cancellableTasks}Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;taskIdGenerator(Ljava/util/concurrent/atomic/AtomicLong;banedParentsLjava/util/Map;ELjava/util/Map;taskResultsService.Lcom/groupbyinc/flux/tasks/TaskResultsService;lastDiscoveryNodes1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
maxHeaderSize/Lcom/groupbyinc/flux/common/unit/ByteSizeValue;$assertionsDisabledZk(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Set;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V24
5@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections7-newConcurrentMapLongWithAggressiveConcurrency@()Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;9:
8; !	=#!	?&java/util/concurrent/atomic/AtomicLongA()V2C
BD%&	F&java/util/concurrent/ConcurrentHashMapH
ID'(	K/com/groupbyinc/flux/cluster/node/DiscoveryNodesMEMPTY_NODESO-	NP,-	R	Tjava/util/ArrayListV(Ljava/util/Collection;)V2X
WY	[.com/groupbyinc/flux/http/HttpTransportSettings]SETTING_HTTP_MAX_HEADER_SIZE-Lcom/groupbyinc/flux/common/settings/Setting;_`	^a+com/groupbyinc/flux/common/settings/SettingcgetB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;ef
dg-com/groupbyinc/flux/common/unit/ByteSizeValuei./	kthis'Lcom/groupbyinc/flux/tasks/TaskManager;settings.Lcom/groupbyinc/flux/common/settings/Settings;#Ljava/util/Set;Ljava/util/Set;setTaskResultsService1(Lcom/groupbyinc/flux/tasks/TaskResultsService;)V01	u*+	wjava/lang/AssertionErrory
zDregisterr(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskAwareRequest;)Lcom/groupbyinc/flux/tasks/Task;java/util/HashMap~
DgetBytes()J??
j?)com/groupbyinc/flux/threadpool/ThreadPool?getThreadContext<()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;??
??java/util/List?iterator()Ljava/util/Iterator;????java/lang/String?*com/groupbyinc/flux/tasks/TaskAwareRequest?8com/groupbyinc/flux/common/util/concurrent/ThreadContext?java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????	getHeader&(Ljava/lang/String;)Ljava/lang/String;??
??length()I??
??"java/lang/IllegalArgumentException?java/lang/StringBuilder?
?D2Request exceeded the maximum size of task headers ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??(Ljava/lang/String;)V2?
??put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???incrementAndGet??
B?
getParentTask$()Lcom/groupbyinc/flux/tasks/TaskId;????
createTaskx(JLjava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;Ljava/util/Map;)Lcom/groupbyinc/flux/tasks/Task;????com/groupbyinc/flux/tasks/Task?getParentTaskId??
?? com/groupbyinc/flux/tasks/TaskId?equals(Ljava/lang/Object;)Z??
??
Request [ ?!] didn't preserve it parentTaskId?(Ljava/lang/Object;)V2?
z?logger!Lorg/apache/logging/log4j/Logger;??	?org/apache/logging/log4j/Logger?isTraceEnabled????register {} [{}] [{}] [{}]?getId??
??java/lang/Long?valueOf(J)Ljava/lang/Long;??
??getDescription??
??trace](Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V????)com/groupbyinc/flux/tasks/CancellableTask?registerCancellableTask#(Lcom/groupbyinc/flux/tasks/Task;)V??
?;
headerSizeJmaxSize
threadContext:Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;task.(Lcom/groupbyinc/flux/tasks/CancellableTask;)V2
	isSet?
?isEmpty?&(Ljava/lang/Object;)Ljava/lang/Object;e cancel(Ljava/lang/String;)Z"#
	$java/lang/IllegalStateException&"Task cancelled before it started: (
'?java/lang/Throwable+
unregisterB(Lcom/groupbyinc/flux/tasks/Task;)Lcom/groupbyinc/flux/tasks/Task;-.
/reasoncancellableTask+Lcom/groupbyinc/flux/tasks/CancellableTask;holder=Lcom/groupbyinc/flux/tasks/TaskManager$CancellableTaskHolder;	oldHolderT(Lcom/groupbyinc/flux/tasks/CancellableTask;Ljava/lang/String;Ljava/lang/Runnable;)Z
??(J)Ljava/lang/Object;e9:cancelling task with id {}<'(Ljava/lang/String;Ljava/lang/Object;)V?>??)(Ljava/lang/String;Ljava/lang/Runnable;)Z"A
	BlistenerLjava/lang/Runnable;unregister task for id: {}FremoveH9IfinishKC
	LgetTask-()Lcom/groupbyinc/flux/tasks/CancellableTask;NO
	PstoreResultc(Lcom/groupbyinc/flux/tasks/Task;Ljava/lang/Exception;Lcom/groupbyinc/flux/action/ActionListener;)Vjava/io/IOExceptionTgetLocalNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;VW
NX)com/groupbyinc/flux/action/ActionListenerZ	onFailure(Ljava/lang/Exception;)V\][^.com/groupbyinc/flux/cluster/node/DiscoveryNode`resultm(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Exception;)Lcom/groupbyinc/flux/tasks/TaskResult;bc
?d"java/lang/invoke/LambdaMetafactoryfmetafactory?(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;hi
gjk,()Lorg/apache/logging/log4j/message/Message;mlambda$storeResult$0A(Ljava/lang/Exception;)Lorg/apache/logging/log4j/message/Message;op
qrF(Ljava/lang/Exception;)Lorg/apache/logging/log4j/util/MessageSupplier;etuwarnG(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)Vwx?y$com/groupbyinc/flux/tasks/TaskResult{j(Lcom/groupbyinc/flux/tasks/TaskManager;Lcom/groupbyinc/flux/action/ActionListener;Ljava/lang/Exception;)V2}
~,com/groupbyinc/flux/tasks/TaskResultsService?T(Lcom/groupbyinc/flux/tasks/TaskResult;Lcom/groupbyinc/flux/action/ActionListener;)VR?
??
taskResult&Lcom/groupbyinc/flux/tasks/TaskResult;exLjava/io/IOException;errorLjava/lang/Exception;7Lcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;	localNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;y(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionResponse;Lcom/groupbyinc/flux/action/ActionListener;)V@couldn't store response {}, the node didn't join the cluster yet?w>??
onResponse??[??(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionResponse;)Lcom/groupbyinc/flux/tasks/TaskResult;b?
??lambda$storeResult$1W(Lcom/groupbyinc/flux/action/ActionResponse;)Lorg/apache/logging/log4j/message/Message;??
??\(Lcom/groupbyinc/flux/action/ActionResponse;)Lorg/apache/logging/log4j/util/MessageSupplier;e???(Lcom/groupbyinc/flux/tasks/TaskManager;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/ActionResponse;)V2?
?response
TResponse;+Lcom/groupbyinc/flux/action/ActionResponse;getTasks()Ljava/util/Map;(Ljava/util/Map;)V2?
?values()Ljava/util/Collection;???java/util/Collection???
?java/util/Collections?unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;??
??taskHashMapELjava/util/HashMap;Ljava/util/HashMap;getCancellableTasksPLjava/util/HashMap;#(J)Lcom/groupbyinc/flux/tasks/Task;getCancellableTask.(J)Lcom/groupbyinc/flux/tasks/CancellableTask;??
?idgetBanCountsize???setBan7(Lcom/groupbyinc/flux/tasks/TaskId;Ljava/lang/String;)V%setting ban for the parent task {} {}?9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V????	getNodeId??
??
nodeExists?#
N?java/lang/Object?entrySet()Ljava/util/Set;???
java/util/Set???getValue???	hasParent%(Lcom/groupbyinc/flux/tasks/TaskId;)Z??
	?	taskEntrydLjava/util/Map$Entry;Ljava/util/Map$Entry;parentTaskId"Lcom/groupbyinc/flux/tasks/TaskId;	removeBan%(Lcom/groupbyinc/flux/tasks/TaskId;)V#removing ban for the parent task {}?H?applyClusterState4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEvent?state,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??(com/groupbyinc/flux/cluster/ClusterState?getNodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??nodesRemoved?
?keySet?RRemoving ban for the parent [{}] on the node [{}], reason: the parent node is gonedebug??	HC?
??cancelOnParentLeaving?
?Coordinating node [] left the clustertaskIdbanIterator8Ljava/util/Iterator;Ljava/util/Iterator;event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;waitForTaskCompletion$(Lcom/groupbyinc/flux/tasks/Task;J)Vjava/lang/InterruptedExceptionjava/lang/SystemnanoTime!?
 "N?
$	&)com/groupbyinc/flux/common/unit/TimeValue(millis*?
)+java/lang/Thread-sleep(J)V/0
.1*com/groupbyinc/flux/ElasticsearchException3*Interrupted waiting for completion of [{}]5=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V27
481com/groupbyinc/flux/ElasticsearchTimeoutException:(Timed out waiting for completion of [{}]<((Ljava/lang/String;[Ljava/lang/Object;)V2>
;?e Ljava/lang/InterruptedException;untilInNanos5org/apache/logging/log4j/message/ParameterizedMessageDcouldn't store response {}F2>
EHcouldn't store error {}J$com/groupbyinc/flux/ExceptionsHelperLdetailedMessage)(Ljava/lang/Throwable;)Ljava/lang/String;NO
MP
access$000J(Lcom/groupbyinc/flux/tasks/TaskManager;)Lorg/apache/logging/log4j/Logger;x0
access$100java/lang/ClassWdesiredAssertionStatusY?
XZdtimeValueMillis.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;^_
)`	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Set;)V
StackMapTable?(Lcom/groupbyinc/flux/tasks/Task;Ljava/lang/Exception;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/tasks/Task;TResponse;Lcom/groupbyinc/flux/action/ActionListener;)VC()Ljava/util/Map;N()Ljava/util/Map;BootstrapMethods
SourceFileInnerClasses!b !b"#!b$%&'(b)*+,-./0123c?P*+?6*?*?
??
???:?v???zY?{?
?dzHL?U:	PmnP
PP
	G(D;2	??	
e	Gf^b	cdef?gHhMibjjk?m?o?p?q?r?t?u?vyz%|:}Mh9	?)	??????^??????6%'??cT?+??M?	Y,?N*?@+??-??	:?v???zY?{?+?Ѷ?U*?L??I*?L+?ѹ!??:?2-?%W?'Y??Y??)???????*?:*+?0W??a??d>\41?mn?	?23?45!p65f2???!?4?J?\?a?h???????h-?4?		?P??		?,?
"7c?4*?@+?8?;?	:?*??=+?8??@,-?C??d44mn43414DE"45f???*?2?h?2	-.c?K*??G+???@+???#*?@+??J?	M,?,?M,?Q??*?>+??J?ΰd +45KmnK	f"???+?/?3?8?:?h?8	?RSc R*?S?Y:?-,?_?+,?e:?:*??,?v?z-?_?*?x?Y*-,????"UdR??$??RmnR	R??RD?	I??>??eRD?f2?	?????"?$?5?=?>?Q?h?aKU?|biR?c;_*?S?Y:?*???,??-,???+,??:?:*??,???z-?_?*?x?Y*-,?????#,/UdR,??1??_mn_	_??_D?	V??K??e_??_D?f6
?	???"?#?,?/?1?B?J?K?^?h?#aKU?|bj??c?I?Y*?>??L*?@????M,???#,???	N+-?Q?8??-?Q??W???+???d .45Imn=??e=??f?.ADh???(bk??c?E?Y??L*?@????M,???#,???	N+-?Q?8??-?Q??W???+???d *45Emn=??e=??f*
=@h???(blN?cr*?>?;??N-?-?*?İd mn?	fh????cq*?@?;?	N-?-?Q??d mn?45f"#$&h?	??c4
*?L???d
mnf0??c9~*???+,??*?LYN?*?S+?Ӷ֙*?L+,??W-ç
:-??*?@????N-???--???:???	:+??
,?%W??б14484d4j45^??~mn~??~1e^??f.9<=#?/A;D^EjFsGzI}Jh?/?D,???/???cU*???+?@*?L+??W?dmn??fR
ST??c#*+?????S+???*?LYM?*+?????S*?L???N-???>-????:*?S?Ӷ֚!*??+?????Y?
-????,ç
:,??*?@????M,???l,???N-???	:?Q:?
:??>*?S?Ӷ֚/??'??Y?????Ӷ??????%W????y||?|dRG-?3D?Q45?J3?C???\??mne3D?\??f^XYZ[$]3^<_G`Va`bianctewf?h?i?j?k?l?m?nqsh$?3???@?D,????n?c?L?# e	??2*+??%???'?,?2???:?4Y6??Y+S?9??;Y=??Y+S?@?"d*$ABLmnL	LCf"y
z{~?"$?9?h	K
??c6?EYG*?I?d??f?
opc9?EYK*?Q?I?d??f?RSc/*??dTnf:USc/*??dTnf:VCcA?[???v\?a?'?f
:;h@mlnsnln?nno*	

	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy