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

com.groupbyinc.flux.cluster.InternalClusterInfoService.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4?6com/groupbyinc/flux/cluster/InternalClusterInfoService6com/groupbyinc/flux/common/component/AbstractComponent.com/groupbyinc/flux/cluster/ClusterInfoService3com/groupbyinc/flux/cluster/LocalNodeMasterListener0com/groupbyinc/flux/cluster/ClusterStateListener	InternalClusterInfoService.java^com/groupbyinc/flux/cluster/InternalClusterInfoService$SubmitReschedulingClusterInfoUpdatedJob'SubmitReschedulingClusterInfoUpdatedJob8com/groupbyinc/flux/cluster/InternalClusterInfoService$28com/groupbyinc/flux/cluster/InternalClusterInfoService$1;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder3com/groupbyinc/flux/common/collect/ImmutableOpenMapBuilder*com/groupbyinc/flux/monitor/fs/FsInfo$Path%com/groupbyinc/flux/monitor/fs/FsInfoPath/com/groupbyinc/flux/threadpool/ThreadPool$Names)com/groupbyinc/flux/threadpool/ThreadPoolNames4com/groupbyinc/flux/common/settings/Setting$Property"+com/groupbyinc/flux/common/settings/Setting$Property5com/groupbyinc/flux/cluster/node/DiscoveryNodes$Delta'/com/groupbyinc/flux/cluster/node/DiscoveryNodes)Delta%java/lang/invoke/MethodHandles$Lookup,java/lang/invoke/MethodHandles.Lookup-INTERNAL_CLUSTER_INFO_UPDATE_INTERVAL_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;ZLcom/groupbyinc/flux/common/settings/Setting;%INTERNAL_CLUSTER_INFO_TIMEOUT_SETTINGupdateFrequency+Lcom/groupbyinc/flux/common/unit/TimeValue;leastAvailableSpaceUsages5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;pLcom/groupbyinc/flux/common/collect/ImmutableOpenMap;mostAvailableSpaceUsagesshardRoutingToDataPath{Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;
shardSizesYLcom/groupbyinc/flux/common/collect/ImmutableOpenMap;isMasterZenabledfetchTimeoutclusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;client,Lcom/groupbyinc/flux/client/node/NodeClient;listenerLjava/util/function/Consumer;HLjava/util/function/Consumer;$assertionsDisabled?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/client/node/NodeClient;Ljava/util/function/Consumer;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)VMO
P?@	Rof7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;TU
V78	X:8	Z;8	\=8	^CD	`EF	bGH	d12	fgetB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;hi
%j)com/groupbyinc/flux/common/unit/TimeValuel56	n42	pB6	rDcom/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettingst9CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTINGv2	uwjava/lang/BooleanybooleanValue()Z{|
z}A@	2com/groupbyinc/flux/cluster/service/ClusterService?getClusterSettings7()Lcom/groupbyinc/flux/common/settings/ClusterSettings;??
??"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;)V?setFetchTimeout.(Lcom/groupbyinc/flux/common/unit/TimeValue;)V??
???acceptW(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Ljava/util/function/Consumer;???3com/groupbyinc/flux/common/settings/ClusterSettings?addSettingsUpdateConsumerM(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)V??
??setUpdateFrequency??
???
setEnabled(Z)V??
??(Ljava/lang/Boolean;)V??addLocalNodeMasterListener8(Lcom/groupbyinc/flux/cluster/LocalNodeMasterListener;)V??
??addListener5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V??
??IJ	?this8Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;settings.Lcom/groupbyinc/flux/common/settings/Settings;clusterSettings5Lcom/groupbyinc/flux/common/settings/ClusterSettings;onMaster()VGcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException?logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;??	?6com/groupbyinc/flux/common/apache/logging/log4j/Logger?isTraceEnabled?|??=I have been elected master, scheduling a ClusterInfoUpdateJob?trace(Ljava/lang/String;)V????executorName()Ljava/lang/String;??
?;(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)VM?

?scheduley(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;??
 ?state,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??(com/groupbyinc/flux/cluster/ClusterState?getNodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??getDataNodes?U
*?size()I??
?executor:(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;??
 ??lambda$onMaster$0??
??runN(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Ljava/lang/Runnable;???$java/util/concurrent/ExecutorService?execute(Ljava/lang/Runnable;)V????isDebugEnabled?|?HCouldn't schedule cluster info update task - node might be shutting downdebug*(Ljava/lang/String;Ljava/lang/Throwable;)V?exILcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException;	offMaster
managementclusterChanged4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEvent
nodesDelta9()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes$Delta;

addedNodes()Ljava/util/List;
(java/util/Listiterator()Ljava/util/Iterator;java/util/IteratorhasNext!| "next()Ljava/lang/Object;$% &.com/groupbyinc/flux/cluster/node/DiscoveryNode(
isDataNode*|
)+
?0data node was added, retrieving new cluster info.??0lambda$clusterChanged$12?
34?nodesRemoved7|
8removedNodes:
(;#Removing node from cluster info: {}=getId??
)@'(Ljava/lang/String;Ljava/lang/Object;)V?B?CcontainsKey(Ljava/lang/Object;)ZEF
Gbuildert(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;IJ
Kremove&(Ljava/lang/Object;)Ljava/lang/Object;MN
ObuildQU
R	addedNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;newMaxUsagesxLcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;=Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;newMinUsagesremovedNodeevent1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;
dataNodeAddedgetClusterInfo+()Lcom/groupbyinc/flux/cluster/ClusterInfo;'com/groupbyinc/flux/cluster/ClusterInfo`?(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)VMb
acupdateNodeStatsR(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/concurrent/CountDownLatch;#java/util/concurrent/CountDownLatchg(I)VMi
hjEcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequestljava/lang/Stringn	data:truep([Ljava/lang/String;)VMr
msclearI()Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;uv
mwfsJ(Z)Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;yz
m{timeouth(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/nodes/BaseNodesRequest;}~
m*com/groupbyinc/flux/client/node/NodeClient?admin*()Lcom/groupbyinc/flux/client/AdminClient;??
??&com/groupbyinc/flux/client/AdminClient?cluster1()Lcom/groupbyinc/flux/client/ClusterAdminClient;????0com/groupbyinc/flux/action/LatchedActionListener?S(Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/concurrent/CountDownLatch;)VM?
??-com/groupbyinc/flux/client/ClusterAdminClient?
nodesStatsu(Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;Lcom/groupbyinc/flux/action/ActionListener;)V????uLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;latch%Ljava/util/concurrent/CountDownLatch;nodesStatsRequestGLcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;updateIndicesStatsBcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest?M?
??F()Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;u?
??storeG(Z)Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;??
??indices1()Lcom/groupbyinc/flux/client/IndicesAdminClient;????-com/groupbyinc/flux/client/IndicesAdminClient?statsr(Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;Lcom/groupbyinc/flux/action/ActionListener;)V????rLcom/groupbyinc/flux/action/ActionListener;indicesStatsRequestDLcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;maybeRefreshrefresh?_
?3Skipping ClusterInfoUpdatedJob since it is disabled?java/lang/InterruptedException?java/lang/Exception?Performing ClusterInfoUpdateJob?
?ef
?
??f
?	getMillis()J??
m?java/util/concurrent/TimeUnit?MILLISECONDSLjava/util/concurrent/TimeUnit;??	??await#(JLjava/util/concurrent/TimeUnit;)Z??
h?java/lang/Thread?
currentThread()Ljava/lang/Thread;??
??	interrupt??
??LFailed to update node information for ClusterInfoUpdateJob within {} timeout?warn?B??MFailed to update shard information for ClusterInfoUpdateJob within {} timeout?^_
?java/util/function/Consumer?????,Failed executing ClusterInfoService listener?info???e Ljava/lang/InterruptedException;Ljava/lang/Exception;	nodeLatchindicesLatchclusterInfo)Lcom/groupbyinc/flux/cluster/ClusterInfo;buildShardLevelInfo(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;[Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;Lcom/groupbyinc/flux/cluster/ClusterState;)V<[Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;?9com/groupbyinc/flux/action/admin/indices/stats/ShardStats?getShardRouting4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;?
?getDataPath?
?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
getStats>()Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStats;

?:com/groupbyinc/flux/action/admin/indices/stats/CommonStatsgetStore.()Lcom/groupbyinc/flux/index/store/StoreStats;
*com/groupbyinc/flux/index/store/StoreStatssizeInBytes?
shardIdentifierFromRoutingF(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Ljava/lang/String;
ashard: {} size: {}java/lang/LongvalueOf(J)Ljava/lang/Long;!"
 #9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V?%?&JsidLjava/lang/String;s;Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;
newShardSizesaLcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;newShardRoutingToDataPath?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;*Lcom/groupbyinc/flux/cluster/ClusterState;fillDiskUsagePerNode?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/util/List;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;)V=com/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats4getFs)()Lcom/groupbyinc/flux/monitor/fs/FsInfo;67
58'Unable to retrieve node FS stats for {}:getNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;<=
5>getName@?
)A
L@	Djava/lang/AssertionErrorF
G?getAvailable1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;IJ
K-com/groupbyinc/flux/common/unit/ByteSizeValueMgetBytesO?
NPtnode: [{}], most available: total disk: {}, available disk: {} / least available: total disk: {}, available disk: {}RgetTotalTJ
Uo(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V?W?XRnode: [{}] least available path has less than 0 total bytes of disk [{}], skippingZ%com/groupbyinc/flux/cluster/DiskUsage\getPath^?
_;(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)VMa
]bQnode: [{}] most available path has less than 0 total bytes of disk [{}], skippingd,Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path;leastAvailablePathmostAvailablePathnodeIdnodeName	nodeStats?Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats;nodeStatsArrayQLjava/util/List;Ljava/util/List;newLeastAvaiableUsagesnewMostAvaiableUsages??
r
access$000r(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;x0
access$100
access$200e(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/threadpool/ThreadPool;
access$300
access$400
access$500
access$600;(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Z
access$700
access$800e(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/common/unit/TimeValue;
access$900access$1000access$1100access$1202?(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;x1access$1302access$1400access$1500access$1600access$1700access$1800access$1900n(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/cluster/service/ClusterService;access$2002access$2102access$2200access$2300access$2400access$2500java/lang/Class?desiredAssertionStatus?|
??cluster.info.update.interval?timeValueSeconds.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
m?
Dynamic6Lcom/groupbyinc/flux/common/settings/Setting$Property;??	#?	NodeScope??	#?timeSetting?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
%?cluster.info.update.timeout?positiveTimeSetting?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
%?	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/client/node/NodeClient;Ljava/util/function/Consumer;)V
StackMapTable?(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/concurrent/CountDownLatch;?(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/concurrent/CountDownLatch;?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;[Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;Lcom/groupbyinc/flux/cluster/ClusterState;)V|(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/util/List;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;)VBootstrapMethods
SourceFileInnerClasses!
12?342?3B56B78?9B:8?9B;8?<B=8?>B?@BA@BB6CDEFGHIJ?KL@,MN?n?*+?Q*?S*?W?Y*?W?[*?W?]*?W?_*,?a*-?c*?e*?g+?k?m?o*?q+?k?m?s*?x+?k?z?~??,??:?q*?????g*?????x*????*?a*??*?a*??*????H???????CD?EF?GH?IJiA????IK?R^T
_`ab&c+d0e6fDgRhciijwk?l?o?q?r?s?????>*??????A@?
vw???>*+?s????B6?
z{???>*+?o????56?
~????|*?S*?Ĺ??*??˹?*?c*?o*?ӻ
Y*?ֶ?W*?a?޶????*?c*?Ӷ?*?????L*?Ĺ?*??+??^a??b	|???.????4?H?^?a?b?n?{???AB?
??4*?S?????
?????.??????
?H5*????=+???N-?#?-?'?):?,?=????*?S?F?B+?-?????1*?Ĺ?*??/?1*?c*?Ӷ?*?6??*?S??+?9??+???A?D*?Y?A?H? *?Y?L:?A?PW*?S?Y*?[?A?H? *?[?L:?A?PW*?S?[??o??H+
TU?VXYX?}ZU5??5[\
+]@??VWYW?n???
?+?3?5?8?;?W?c?o??????????????????????(?1?4??#?  ?3? ?8)+?+?^_?B?aY*?Y*?[*?_*?]?d??????ef??L?hY?kM?mY?oYqS?tN-?xW-?|W-*?s??W*?e????-??Y+,????,??*L??LI?	C??1???LI???	?? ?&?/?J????f??9?hY?kM??Y??N-??W-??W*?e????-??Y+,????,??*9??9I?	0??(???9I??		
7
?????l(*???*??W?*?Ĺ??*???????(???'??_???*?Ĺ??*??¹?*?Y*?ö?L*?Y*?ƶ?M+*?s?̲Ҷ?W?N?ܶ?*???*?s??,*?s?̲Ҷ?W?N?ܶ?*???*?s??*??N*??-???:*?????-?2AD?[jm??????HE??n????????%???2v??????R "%?2^AbD_E`Ka[ejimfngth?j?l?o?m?n?p?3?+hh?Q??hha????Gk+:?66?[2:-???	W?
??7	??:*???*	?$?',	?$?	W??????R5/?(	?%)*K+,k??k??k-Xk/Xk?1?k-.k/0?&	uv(w5x?yHzX|duj~?*???L?o??????23?)
?+?:?#???'?5:?9?*;???B???i::?9?C:?#?g?'?:	? ?E???GY?H?	Y::?6?L?Q	?L?Q??
	:??L?Q	?L?Q??	:??????A:???B:	*???"*S?V?L?V?L?Y?V?Q	??%*???C*[?V?Q?$?'?*,?]Y	?`?V?Q?L?Q?c?	W?V?Q	??%*???C*e?V?Q?$?'?*-?]Y	?`?V?Q?L?Q?c?	W??h??f
`U?f	=cgf@`hf??i*??j*	?kl????mo?pX?qX? ?mn?pW?qW??#??&?:?=?@?`?e?x????????????????????????????
???#?J?W?`?h?q?y??????M? ?15? ?-	???;oo.&.?&? ???2??/*?s?????????/*?s??????tu?/*?İ?v??Dwu?/*?İ?v??Dxy?/*?c??v??Dzu?/*?İ?v??D{u?/*?İ?v??D|??/*?s??v??D}~?/*?S??v??Du?/*?İ?v??D???/*?o??v??D?u?/*?İ?v??D?u?/*?İ?v??D?u?/*?İ?v??D???;*+Z?Y??v??8?D???;*+Z?[??v??8?D?u?/*?İ?v??D?u?/*?İ?v??D?u?/*?İ?v??D?u?/*?İ?v??D?u?/*?İ?v??D???/*?a??v??D???;*+Z?_??v??8?D???;*+Z?]??v??8?D?u?/*?İ?v??D?u?/*?İ?v??D?u?/*?İ?v??D?u?/*?İ?v??D????U?????E????????#Y??SY??S???g?????#Y??SY??S???q??DGH5J;KTJ?@?4??????????????????5???J	
		 !	#%&@(*+	-/0




© 2015 - 2025 Weber Informatics LLC | Privacy Policy