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: 59
Show newest version
????3?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'SubmitReschedulingClusterInfoUpdatedJobDcom/groupbyinc/flux/cluster/InternalClusterInfoService$ApplySettings
ApplySettings8com/groupbyinc/flux/cluster/InternalClusterInfoService$48com/groupbyinc/flux/cluster/InternalClusterInfoService$38com/groupbyinc/flux/cluster/InternalClusterInfoService$28com/groupbyinc/flux/cluster/InternalClusterInfoService$17com/groupbyinc/flux/cluster/ClusterInfoService$ListenerListener*com/groupbyinc/flux/monitor/fs/FsInfo$Path%com/groupbyinc/flux/monitor/fs/FsInfoPath/com/groupbyinc/flux/threadpool/ThreadPool$Names")com/groupbyinc/flux/threadpool/ThreadPool$Names>com/groupbyinc/flux/node/settings/NodeSettingsService$Listener'5com/groupbyinc/flux/node/settings/NodeSettingsService)5com/groupbyinc/flux/cluster/node/DiscoveryNodes$Delta+/com/groupbyinc/flux/cluster/node/DiscoveryNodes-Delta%INTERNAL_CLUSTER_INFO_UPDATE_INTERVALLjava/lang/String;cluster.info.update.interval2INTERNAL_CLUSTER_INFO_TIMEOUTcluster.info.update.timeout5updateFrequency+Lcom/groupbyinc/flux/common/unit/TimeValue;leastAvailableSpaceUsagesLjava/util/Map;JLjava/util/Map;mostAvailableSpaceUsagesshardRoutingToDataPathULjava/util/Map;
shardSizes3Ljava/util/Map;isMasterZenabledfetchTimeouttransportNodesStatsActionOLcom/groupbyinc/flux/action/admin/cluster/node/stats/TransportNodesStatsAction;transportIndicesStatsActionLLcom/groupbyinc/flux/action/admin/indices/stats/TransportIndicesStatsAction;clusterService,Lcom/groupbyinc/flux/cluster/ClusterService;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;	listenersLjava/util/List;KLjava/util/List;$assertionsDisabledZ(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/node/settings/NodeSettingsService;Lcom/groupbyinc/flux/action/admin/cluster/node/stats/TransportNodesStatsAction;Lcom/groupbyinc/flux/action/admin/indices/stats/TransportIndicesStatsAction;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)VQT
UAB	W)java/util/concurrent/CopyOnWriteArrayListY()VQ[
Z\MN	^java/util/Collections`emptyMap()Ljava/util/Map;bc
ad9:	f<:	h=:	j?:	lEF	nGH	pIJ	rKL	t)com/groupbyinc/flux/common/unit/TimeValuextimeValueSeconds.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;z{
y|,com/groupbyinc/flux/common/settings/Settings~	getAsTimej(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue;??
?78	?D8	?1cluster.routing.allocation.disk.threshold_enabled?java/lang/Boolean?valueOf(Z)Ljava/lang/Boolean;??
??getAsBoolean:(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;??
?booleanValue()Z??
??CB	?;(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)VQ?
?addListenerC(Lcom/groupbyinc/flux/node/settings/NodeSettingsService$Listener;)V??
*?*com/groupbyinc/flux/cluster/ClusterService?add8(Lcom/groupbyinc/flux/cluster/LocalNodeMasterListener;)V????5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V????this8Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;settings.Lcom/groupbyinc/flux/common/settings/Settings;nodeSettingsService7Lcom/groupbyinc/flux/node/settings/NodeSettingsService;onMasterGcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException?logger-Lcom/groupbyinc/flux/common/logging/ESLogger;??	?+com/groupbyinc/flux/common/logging/ESLogger?isTraceEnabled????=I have been elected master, scheduling a ClusterInfoUpdateJob?java/lang/Object?trace((Ljava/lang/String;[Ljava/lang/Object;)V????executorName()Ljava/lang/String;??
?

?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;??
??getDataNodes7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
.?3com/groupbyinc/flux/common/collect/ImmutableOpenMap?size()I??
??executor3(Ljava/lang/String;)Ljava/util/concurrent/Executor;??
%?
?java/util/concurrent/Executor?execute(Ljava/lang/Runnable;)V????isDebugEnabled????HCouldn't schedule cluster info update task - node might be shutting down?debug=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V????exILcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException;	offMaster
management?clusterChanged4(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/DiscoveryNodedataNode?
0data node was added, retrieving new cluster info???
?nodesRemoved!?
?"removedNodes$
,%#Removing node from cluster info: {}'getId)?
*
java/util/Map,containsKey(Ljava/lang/Object;)Z./-0java/util/HashMap2(Ljava/util/Map;)VQ4
35remove&(Ljava/lang/Object;)Ljava/lang/Object;78-9unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;;<
a=	addedNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;newMaxUsagesnewMinUsagesremovedNodeevent1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;
dataNodeAddedgetClusterInfo+()Lcom/groupbyinc/flux/cluster/ClusterInfo;'com/groupbyinc/flux/cluster/ClusterInfoI?(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)VQK
JL<(Lcom/groupbyinc/flux/cluster/ClusterInfoService$Listener;)V?/	Olistener9Lcom/groupbyinc/flux/cluster/ClusterInfoService$Listener;updateNodeStatsR(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/concurrent/CountDownLatch;#java/util/concurrent/CountDownLatchU(I)VQW
VXEcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequestZjava/lang/String\	data:true^([Ljava/lang/String;)VQ`
[aclearI()Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;cd
[efsJ(Z)Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;gh
[itimeouth(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/nodes/BaseNodesRequest;kl
[m0com/groupbyinc/flux/action/LatchedActionListeneroS(Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/concurrent/CountDownLatch;)VQq
prMcom/groupbyinc/flux/action/admin/cluster/node/stats/TransportNodesStatsActiontw(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task;?v
uwuLcom/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?
?\F()Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;c?
??storeG(Z)Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;??
??Jcom/groupbyinc/flux/action/admin/indices/stats/TransportIndicesStatsAction?
?wrLcom/groupbyinc/flux/action/ActionListener;indicesStatsRequestDLcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequest;maybeRefreshrefresh?H
?3Skipping ClusterInfoUpdatedJob since it is disabled?java/lang/InterruptedException?java/lang/Exception?Performing ClusterInfoUpdateJob?
?ST
?
?T
?	getMillis()J??
y?java/util/concurrent/TimeUnit?MILLISECONDSLjava/util/concurrent/TimeUnit;??	??await#(JLjava/util/concurrent/TimeUnit;)Z??
V?java/lang/Thread?
currentThread()Ljava/lang/Thread;??
??	interrupt?[
??LFailed to update node information for ClusterInfoUpdateJob within {} timeout?warn????MFailed to update shard information for ClusterInfoUpdateJob within {} timeout?GH
?	onNewInfo,(Lcom/groupbyinc/flux/cluster/ClusterInfo;)V???,Failed executing ClusterInfoService listener?info????e Ljava/lang/InterruptedException;Ljava/lang/Exception;l	nodeLatchindicesLatchclusterInfo)Lcom/groupbyinc/flux/cluster/ClusterInfo;buildShardLevelInfo?(Lcom/groupbyinc/flux/common/logging/ESLogger;[Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;Ljava/util/HashMap;Ljava/util/HashMap;Lcom/groupbyinc/flux/cluster/ClusterState;)VgetMetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
??<[Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;?-com/groupbyinc/flux/cluster/metadata/MetaData?9com/groupbyinc/flux/action/admin/indices/stats/ShardStats?getShardRouting4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;??
??0com/groupbyinc/flux/cluster/routing/ShardRouting?index??
??H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
??2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getSettings0()Lcom/groupbyinc/flux/common/settings/Settings;??
??getDataPath??
??put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??
3?getStats>()Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStats;??
??:com/groupbyinc/flux/action/admin/indices/stats/CommonStats?getStore.()Lcom/groupbyinc/flux/index/store/StoreStats;??
?*com/groupbyinc/flux/index/store/StoreStatssizeInBytes?
shardIdentifierFromRoutingF(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Ljava/lang/String;
J	shard: {} size: {}java/lang/Long
(J)Ljava/lang/Long;?
isIndexUsingShadowReplicas1(Lcom/groupbyinc/flux/common/settings/Settings;)Z
?@shard: {} is using shadow replicas and will be treated as size 0	indexMeta4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
indexSettingsJsids;Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;stats
newShardSizes7Ljava/util/HashMap;Ljava/util/HashMap;newShardRoutingToDataPathYLjava/util/HashMap;*Lcom/groupbyinc/flux/cluster/ClusterState;meta/Lcom/groupbyinc/flux/cluster/metadata/MetaData;fillDiskUsagePerNode?(Lcom/groupbyinc/flux/common/logging/ESLogger;[Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats;Ljava/util/Map;Ljava/util/Map;)V@[Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats;*=com/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats,getFs)()Lcom/groupbyinc/flux/monitor/fs/FsInfo;./
-0'Unable to retrieve node FS stats for {}2getNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;45
-6name8?
9
 PB	<java/lang/AssertionError>
?\getAvailable1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;AB
C-com/groupbyinc/flux/common/unit/ByteSizeValueEbytesG?
FHidJ?
KgetNameM?
Ntnode: [{}], most available: total disk: {}, available disk: {} / least available: total disk: {}, available disk: {}PgetTotalRB
SRnode: [{}] least available path has less than 0 total bytes of disk [{}], skippingU%com/groupbyinc/flux/cluster/DiskUsageWgetPathY?
Z;(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)VQ\
X]-?Qnode: [{}] most available path has less than 0 total bytes of disk [{}], skipping`,Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path;leastAvailablePathmostAvailablePathnodeIdnodeName	nodeStats?Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats;nodeStatsArraynewLeastAvaiableUsagesnewMostAvaiableUsages
access$000g(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/common/logging/ESLogger;x0
access$100e(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/common/unit/TimeValue;
access$200
access$102?(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue;x1
access$300
access$400
access$302
access$502<(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;Z)Z
access$600?[
{
access$700
access$800
access$900;(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Zaccess$1000access$1100access$1200e(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/threadpool/ThreadPool;access$1300access$1400access$1500access$1600access$1702X(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;Ljava/util/Map;)Ljava/util/Map;access$1802access$1900access$2000access$2100access$2200access$2300access$2400f(Lcom/groupbyinc/flux/cluster/InternalClusterInfoService;)Lcom/groupbyinc/flux/cluster/ClusterService;access$2502access$2602access$2700access$2800access$2900access$3000java/lang/Class?desiredAssertionStatus??
??
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations
StackMapTableLocalVariableTypeTable?(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/concurrent/CountDownLatch;?(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/concurrent/CountDownLatch;&(Lcom/groupbyinc/flux/common/logging/ESLogger;[Lcom/groupbyinc/flux/action/admin/indices/stats/ShardStats;Ljava/util/HashMap;Ljava/util/HashMap;Lcom/groupbyinc/flux/cluster/ClusterState;)V(Lcom/groupbyinc/flux/common/logging/ESLogger;[Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats;Ljava/util/Map;Ljava/util/Map;)V
SourceFileInnerClasses!
01?341?6B78B9:?;B<:?;B=:?>B?:?@BABBCBBD8EFGHIJKLMN?OPB/QR?D?*+?V*?X*?ZY?]?_*?e?g*?e?i*?e?k*?e?m*-?o*?q*?s*?u*+3v?}????*+6??}????*+?????????,?Y*????*?s*??*?s*????H??????????EF?GH?IJ?KL?J^P
W_`#a*b1c6d<eBfHgXhhiyj?m?o?p?S?[???*?X*?????*???????*?u*??*?ɻ
Y*?ʶ?W*?s???ضܶ??*?u*?ɶ?Y*???? L*?????*???+????? fi??j??????.??? ?8?N?f?i?j?v???? ?EB??[?4*?X?????
?????-??????????jW*????=+???
N-??-??:??=????*?X?Q?M*?s???ضܶ??7*?????*?????*?u*?ɶ?Y*? ??*?X??+?#??+??&?
N-???-??:???*?????*??(??Y?+S??*?g?+?1?&?3Y*?g?6:?+?:W*?>?g*?i?+?1?&?3Y*?i?6:?+?:W*?>?i??X??H+
?@	A:=B:??C@W??WDE
MFB?	A;=B;?n???
?+?3?5?8?;?\?h?x???????????????	???0?=?J?S?V??#? ?<???3?3?GH?B?JY*?g*?i*?m*?k?M???????N?D*?_+?PW????QR?
??ST??C?VY?YM?[Y?]Y_S?bN-?fW-?jW-*???nW*?o-?pY+,?s?xW,??*C??CQz	:{|(}~?CQy?	 &/!A"??T??0?VY?YM??Y??N-??W-??W*?q-?pY+,?s??W,??*0??0Qz	'{|???0Q??*	+,-/.0???[?p,*???*??W?*?????*?????????,???5689+<??H?	?*?????*???????*?Y*????L*?Y*????M+*????????W?!N????*?????Y*??S??,*????????W?!N????*?????Y*??S??*??N*?_?
:??1??:-???:*??????????-?6EH?fux??????RI??y???????R???)??|6??|?E???ZBCE)b6?E?H?I?O?f?u?x?y???????????????????G	?+VV?Q??J? VVJ?????????:+:?66??2:		????:

??
??:-	??	???W	????7	??
:*???*??YSY?S???)??!*???*??YS??	7,???W???P??p/?
???[d?eZ1 ?	?????? "?#"??%?&'?? !?#$?B?? ?/???N?[?e?n????????????????R?	??33????%??D?J]'???33????()?S?+:?66??2:?1?*3??Y?7?:S????::	?1?;:

??g
??:? ?=?	???Y?@?Y::	?6?D?I?D?I??
:?	?D?I?D?I??:	????7?L:
?7?O:*???5*Q??Y
SY	?TSY?DSY?TSY?DS???T?I	??/*???O*V??Y
SY?T?I?S???,,
?XY
?[?T?I?D?I?^?_W	?T?I	??/*???O*a??Y
SY	?T?I?S???,-
?XY
	?[	?T?I	?D?I?^?_W???;??f
bU?b??cbB?db	?	e1
??f1?gh????i*?j:?k:??j;?k;??#??!?<???B?b?g?z????????????????????????	???0?:?B?k?x??????????????Q?+?0-??-	???N]]8(8?(?+--+???lm?/*????n??Eop?/*????n??Eqm?/*????n??Ers?;*+Z????n?t8?Eup?/*????n??Evm?/*????n??Ews?;*+Z????n?t8?Exy?;*Z????n?tB?Ez??/*?|??n??E}m?/*????n??E~m?/*????n??E??/*?X??n??E?m?/*????n??E?m?/*????n??E???/*?u??n??E?m?/*????n??E?m?/*????n??E?m?/*????n??E?m?/*????n??E???;*+Z?g??n?t:?E???;*+Z?i??n?t:?E?m?/*????n??E?m?/*????n??E?m?/*????n??E?m?/*????n??E?m?/*????n??E???/*?s??n??E???;*+Z?m??n?t:?E???;*+Z?k??n?t:?E?m?/*????n??E?m?/*????n??E?m?/*????n??E?m?/*????n??E?[?4?????=??E?@??Z
	 !	#%&	(*	,./	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy