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

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

There is a newer version: 59
Show newest version
????3,com/groupbyinc/flux/gateway/GatewayMetaState6com/groupbyinc/flux/common/component/AbstractComponent0com/groupbyinc/flux/cluster/ClusterStateListenerGatewayMetaState.java?com/groupbyinc/flux/gateway/GatewayMetaState$IndexMetaWriteInfoIndexMetaWriteInfoEcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder=com/groupbyinc/flux/common/google/common/collect/ImmutableSet
Builder8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State2com/groupbyinc/flux/cluster/metadata/IndexMetaDataStatenodeEnv)Lcom/groupbyinc/flux/env/NodeEnvironment;metaStateService.Lcom/groupbyinc/flux/gateway/MetaStateService;danglingIndicesState2Lcom/groupbyinc/flux/gateway/DanglingIndicesState;metaDataIndexUpgradeServiceBLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;previousMetaData/Lcom/groupbyinc/flux/cluster/metadata/MetaData;%Lcom/groupbyinc/flux/common/Nullable;previouslyWrittenIndices?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;SLcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;<(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/gateway/MetaStateService;Lcom/groupbyinc/flux/gateway/DanglingIndicesState;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;)Vjava/lang/Exception%*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V#(
)ofA()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;+,
- !	/	1	3	5	7>com/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState9initp(Lcom/groupbyinc/flux/gateway/GatewayMetaState;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;;<
:=.com/groupbyinc/flux/cluster/node/DiscoveryNode?dataNode1(Lcom/groupbyinc/flux/common/settings/Settings;)ZAB
@CensureNoPre019ShardState,(Lcom/groupbyinc/flux/env/NodeEnvironment;)VEF
Glogger-Lcom/groupbyinc/flux/common/logging/ESLogger;IJ	K5com/groupbyinc/flux/common/util/MultiDataPathUpgraderMupgradeMultiDataPathY(Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/common/logging/ESLogger;)VOP
NQ,com/groupbyinc/flux/common/settings/SettingsS'com/groupbyinc/flux/env/NodeEnvironmentU,com/groupbyinc/flux/gateway/MetaStateServiceW0com/groupbyinc/flux/gateway/DanglingIndicesStateY@com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService[
masterNode]B
@^ensureAtomicMoveSupported()V`a
VbensureNoPre019Stateda
epre20Upgradega
hjava/lang/SystemjnanoTime()Jlm
kn
loadFullState1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;pq
Xrtook {} to load statetjava/lang/Objectv)com/groupbyinc/flux/common/unit/TimeValuex
nsecToMSec(J)Jz{
y|timeValueMillis.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;~
y?+com/groupbyinc/flux/common/logging/ESLogger?debug((Ljava/lang/String;[Ljava/lang/Object;)V????&failed to read local state, exiting...?error=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V????startNSJeLjava/lang/Exception;this.Lcom/groupbyinc/flux/gateway/GatewayMetaState;settings.Lcom/groupbyinc/flux/common/settings/Settings;nodesListGatewayMetaState@Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;
loadMetaStateclusterChanged4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)Vjava/lang/Throwable?java/util/HashSet?#a
??/com/groupbyinc/flux/cluster/ClusterChangedEvent?state,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??(com/groupbyinc/flux/cluster/ClusterState?blocks3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;??
??/com/groupbyinc/flux/cluster/block/ClusterBlocks?disableStatePersistence()Z??
??	?
java/util/Set?metaData?q
??nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??/com/groupbyinc/flux/cluster/node/DiscoveryNodes?	localNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??]?
@?A?
@?-com/groupbyinc/flux/cluster/metadata/MetaData?isDataOnlyNode-(Lcom/groupbyinc/flux/cluster/ClusterState;)Z??
?builderI()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;??
?iteratorI()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator;??
??java/util/Iterator?hasNext????next()Ljava/lang/Object;????getState<()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;??
?CLOSE:Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;??	?equals(Ljava/lang/Object;)Z??
?getIndex()Ljava/lang/String;??
?loadIndexStateH(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
X?add[(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;??
?addAll](Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;??
?build?,
?isGlobalStateEqualsa(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Z??
?changedwriteGlobalStateD(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V
X
previousState?
?	getRelevantIndices?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;)Ljava/util/Set;

resolveStatesToBeWritten?(Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;Ljava/util/Set;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Ljava/lang/Iterable;
java/lang/Iterable()Ljava/util/Iterator;?reasonLjava/lang/String;		newMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;				 
writeIndex}(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)V"#
X$processDanglingIndices2(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V&'
Z(indexMetaDataOnDisk
indexMetaDatapreviouslyWrittenIndicesBuilder[Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;GLcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;Ljava/lang/Throwable;indexMetaWriteALcom/groupbyinc/flux/gateway/GatewayMetaState$IndexMetaWriteInfo;	writeInfoWLjava/lang/Iterable;Ljava/lang/Iterable;event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;relevantIndices#Ljava/util/Set;Ljava/util/Set;*Lcom/groupbyinc/flux/cluster/ClusterState;successZ getRelevantIndicesOnDataOnlyNode=
>'getRelevantIndicesForMasterEligibleNode;(Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/Set;@A
Bjava/util/CollectionsDemptySet()Ljava/util/Set;FG
EH
nodeDataPaths()[Ljava/nio/file/Path;JK
VL[Ljava/nio/file/Path;N_statePjava/nio/file/PathRresolve((Ljava/lang/String;)Ljava/nio/file/Path;TUSVjava/nio/file/LinkOptionXjava/nio/file/FilesZexists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z\]
[^newDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;`a
[bjava/nio/file/DirectoryStreamdeisTraceEnabledg??hjava/lang/StringBuilderj
k?[upgrade]: processing [mappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;op
kqgetFileName()Ljava/nio/file/Path;stSu-(Ljava/lang/Object;)Ljava/lang/StringBuilder;ow
kx]ztoString|?
k}trace???S}	metadata-?java/lang/String?
startsWith(Ljava/lang/String;)Z??
??java/lang/IllegalStateException?CDetected pre 0.19 metadata file please upgrade to a version before ?com/groupbyinc/flux/Version?CURRENTLcom/groupbyinc/flux/Version;??	??minimumCompatibilityVersion()Lcom/groupbyinc/flux/Version;??
??6 first to upgrade state structures - metadata found: [?	getParent?tS?toAbsolutePath?tS?(Ljava/lang/String;)V#?
??close?ae?
addSuppressed(Ljava/lang/Throwable;)V??
??name	stateFileLjava/nio/file/Path;stream5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;
stateLocationdataLocation?q
?java/util/ArrayList?
??java/util/List?upgradeIndexMetaDataj(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
\??????upgrade?updateIndexMetaDataFLjava/util/List;Ljava/util/List;shards-*?G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;`?
[?FDetected pre 0.19 shard state file please upgrade to a version before ?9 first to upgrade state structures - shard state found: [??index??
??contains??
?freshly created?
getVersion?m
?version changed from [?(J)Ljava/lang/StringBuilder;o?
k?] to [?}(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;)V#?
	?newIndexMetaDatapreviousIndexMetaDatawriteReasonpotentiallyUnwrittenIndicesindicesToWriteSLjava/util/List;getRoutingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;??
??localNodeId??
??0com/groupbyinc/flux/cluster/routing/RoutingNodes?nodeE(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode;??
??Hcluster state does not contain this node - cannot write index meta state?/com/groupbyinc/flux/cluster/routing/RoutingNode?
?0com/groupbyinc/flux/cluster/routing/ShardRouting???
????
getIndices7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;
?3com/groupbyinc/flux/common/collect/ImmutableOpenMapget&(Ljava/lang/Object;)Ljava/lang/Object;	

routing2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
isOrWasClosednewRoutingNode1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;indicesRuntimeVisibleAnnotations	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;)Ljava/util/Set;-(Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;Ljava/util/Set;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Ljava/lang/Iterable;O(Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/Set;
SourceFileInnerClasses!BB !"#$?	
?*+?**?.?0*,?2*-?4*?6*?8*?>W+?D?*,?H,*?L?R+?_?
+?D?,?c+?_?
+?D?L*?f*?i?o7-?sW*?Lu?wY?oe?}??S???:	*?L?	?w??	??]??&\	j#?????	?????????????^E?FGHI"J)L0M5N=QKROT]VaWeXjYoZ?^?[?\?]?`&?=TVXZ:\

r&&'?q2*?4?s???c&???
t??Y??M+??N-?????*??*?.?0?-??:6-???öŚ-???öǙ	*???v-?͙g??:??:???A???::	????*?4???:		?	???W???**?0?????0?:6*???*????*?4??:6+??+?
*?0?M*?0,*??+?????:?:???0???	:*?4???!?%?:	6???*?6?)?*????:*,?????0?N???????,BE??z,*	w/+Z_,.??/??/G?/	,01
@24f
?.t??t56l79
g?:*J-G;<*Z_,-
@23f
?-l78?*ij
kmn#o$r*u-wGxN?U?Z?w?z???????????????????????????????
?,?B?E?G?J?M?V?[?a?f?s?k?$???"????4???B?N??-??.	?????	???%	?-*?͙
*+,??N?*???ö??*?CN??IN-?>79$79-?:-:- !+79*78$78- "+78????'?+?
????U *???öŚ*???öǙ?? ?:?@da?
L*?2?ML+?=>?<+2:Q?W:?Y?_???c::?f:???????S:	*?L?i?0*?L?kY?ln?r	?v?y{?r?~?w??	?v??:

????9??Y?kY?l??r?????y??r	?????y?~?????b?]????N:???B???8::?:?%????:???
??????ű????<??<?%,/?>?A?
[???	9??#"??.??L??9??N??#?/?2?<?[?g?????????????????E?K?p?
O?$SS?e???NS?N?S?I?H??OSSe????O?&ga'p*??L??Y??M+??N-???,-???:*?8??:?,??W???,??N-???-???:*?4??%??߱>1&+_
+p??k?
c??
c??.??
?&?1?8?A?D?_?l?o?????.????#&EF;
?+?MM,?>6??,2:Q?W:?Y?_??Ǹ?::?f:		???E	???S:
??Y?kY?l̶r?????yζr
?????y?~????]????N:		???B???8:		:	?:?%????:???
???????????<???<?????????>[6??
9???#??????????9???6
??#?/?<?[?o?}???????????x?O?9
VOSSe???KS?I?H??VOSSe????VO?&	?
???Y??:+??:????????:-??:,??	,??::	*?ՙ??:	?????ڔ?1?kY?lܶr?ڶ??r?ڶ?{?r?~:		??	Y	???W??c?\	/??o?Bl?	'??? !??9??	??? ? "??8	???6
	
'/?BPXf?????????%?E??;???????	=?	?*??*?????N-???Y??????Y??:-??:???????:??W???*????:???p???:????6+??????:???????6,??ՙ???W????\	C

Q<?=r^+??:?:? !?'?9? "'?8B "'#C$P%S'r(+?,?-?/?0?2?3.
??????%???N@??	@A?3??Y??L*????M,???,???N+-??W???+? #+3?:+79+788:#;.<1=???? 	
		@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy