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: 198
Show newest version
????4?,com/groupbyinc/flux/gateway/GatewayMetaState6com/groupbyinc/flux/common/component/AbstractComponent/com/groupbyinc/flux/cluster/ClusterStateApplierGatewayMetaState.java?com/groupbyinc/flux/gateway/GatewayMetaState$IndexMetaWriteInfoIndexMetaWriteInfo5com/groupbyinc/flux/cluster/metadata/MetaData$Builder-com/groupbyinc/flux/cluster/metadata/MetaData
Builderjava/util/Map$Entry
java/util/MapEntry8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State2com/groupbyinc/flux/cluster/metadata/IndexMetaDataState4com/groupbyinc/flux/cluster/metadata/MetaData$CustomCustom%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupnodeEnv)Lcom/groupbyinc/flux/env/NodeEnvironment;metaStateService.Lcom/groupbyinc/flux/gateway/MetaStateService;previousMetaData/Lcom/groupbyinc/flux/cluster/metadata/MetaData;%Lcom/groupbyinc/flux/common/Nullable;previouslyWrittenIndicesLjava/util/Set;2Ljava/util/Set;8(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/gateway/MetaStateService;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;)Vjava/lang/Exception.*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V,1
2java/util/Collections4emptySet()Ljava/util/Set;67
58)*	:"#	<$%	>>com/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState@initp(Lcom/groupbyinc/flux/gateway/GatewayMetaState;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;BC
AD.com/groupbyinc/flux/cluster/node/DiscoveryNodeF
isDataNode1(Lcom/groupbyinc/flux/common/settings/Settings;)ZHI
GJensureNoPre019ShardState,(Lcom/groupbyinc/flux/env/NodeEnvironment;)VLM
N,com/groupbyinc/flux/common/settings/SettingsP'com/groupbyinc/flux/env/NodeEnvironmentR,com/groupbyinc/flux/gateway/MetaStateServiceT@com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeServiceV,com/groupbyinc/flux/plugins/MetaDataUpgraderXisMasterNodeZI
G[ensureAtomicMoveSupported()V]^
S_ensureNoPre019Statea^
b3com/groupbyinc/flux/common/util/IndexFolderUpgraderdupgradeIndicesIfNeededZ(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;)Vfg
eh
loadFullState1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;jk
UlupgradeMetaData?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;)Lcom/groupbyinc/flux/cluster/metadata/MetaData;no
pisGlobalStateEqualsa(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Zrs
tupgradevwriteGlobalStateD(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Vxy
Uziterator()Ljava/util/Iterator;|}
~java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????hasIndexMetaData7(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Z??
?
writeIndexI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)V??
U?java/lang/System?nanoTime()J??
??logger!Lorg/apache/logging/log4j/Logger;??	?took {} to load state?)com/groupbyinc/flux/common/unit/TimeValue?
nsecToMSec(J)J??
??timeValueMillis.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
??org/apache/logging/log4j/Logger?debug'(Ljava/lang/String;Ljava/lang/Object;)V????&failed to read local state, exiting...?error*(Ljava/lang/String;Ljava/lang/Throwable;)V????
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;metaDataupgradedMetaDatastartNSJeLjava/lang/Exception;this.Lcom/groupbyinc/flux/gateway/GatewayMetaState;settings.Lcom/groupbyinc/flux/common/settings/Settings;nodesListGatewayMetaState@Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;metaDataIndexUpgradeServiceBLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;metaDataUpgrader.Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;
loadMetaStatejava/io/IOException?applyClusterState4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/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??
??&'	??k
??nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??/com/groupbyinc/flux/cluster/node/DiscoveryNodes?getLocalNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??Z?
G?H?
G?
java/util/Set?isDataOnlyNode-(Lcom/groupbyinc/flux/cluster/ClusterState;)Z??
?java/util/HashSet?size()I????(I)V,?
??getState<()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;??
?CLOSE:Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;	equals(Ljava/lang/Object;)Z
getIndex#()Lcom/groupbyinc/flux/index/Index;	

loadIndexStateW(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;

Uadd?addAll(Ljava/util/Collection;)Z?unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;
5changed
previousState?
?getRelevantIndicest(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)Ljava/util/Set;!"
#resolveStatesToBeWritten?(Ljava/util/Set;Ljava/util/Set;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Ljava/lang/Iterable;%&
'java/lang/Iterable)*~reasonLjava/lang/String;,-		.newMetaData0?		1indexMetaDataOnDisknewPreviouslyWrittenIndicesindexMetaWriteALcom/groupbyinc/flux/gateway/GatewayMetaState$IndexMetaWriteInfo;	writeInfoWLjava/lang/Iterable;Ljava/lang/Iterable;event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;*Lcom/groupbyinc/flux/cluster/ClusterState;relevantIndicessuccessZ getRelevantIndicesOnDataOnlyNode@"
A'getRelevantIndicesForMasterEligibleNode;(Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/Set;CD
Ejava/lang/ThrowableG
nodeDataPaths()[Ljava/nio/file/Path;IJ
SK[Ljava/nio/file/Path;M_stateOjava/nio/file/PathQresolve((Ljava/lang/String;)Ljava/nio/file/Path;STRUjava/nio/file/LinkOptionWjava/nio/file/FilesYexists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z[\
Z]newDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;_`
Zajava/nio/file/DirectoryStreamcd~isTraceEnabledf??g[upgrade]: processing [{}]igetFileName()Ljava/nio/file/Path;klRmtraceo??ptoString()Ljava/lang/String;rsRt	metadata-vjava/lang/Stringx
startsWith(Ljava/lang/String;)Zz{
y|java/lang/IllegalStateException~java/lang/StringBuilder?,^
??CDetected pre 0.19 metadata file please upgrade to a version before ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??com/groupbyinc/flux/Version?CURRENTLcom/groupbyinc/flux/Version;??	?? minimumIndexCompatibilityVersion()Lcom/groupbyinc/flux/Version;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??6 first to upgrade state structures - metadata found: [?	getParent?lR?toAbsolutePath?lR?
?t(Ljava/lang/String;)V,?
?close?^d?
addSuppressed(Ljava/lang/Throwable;)V??
H?name	stateFileLjava/nio/file/Path;stream5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;
stateLocationdataLocationbuilderh(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
?upgradeIndexMetaData?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
W?putn(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Z)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
?
getCustoms7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
?customMetaDataUpgraders"Ljava/util/function/UnaryOperator;??	Y?java/lang/Object?getClass()Ljava/lang/Class;??
??"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?removeCustomK(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
???acceptV(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;)Ljava/util/function/Consumer;???'(Ljava/lang/Object;Ljava/lang/Object;)V?	putCustom?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData$Custom;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
??K(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData$Custom;)V?X(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;)Ljava/util/function/BiConsumer;???applyPluginUpgraders?(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Ljava/util/function/UnaryOperator;Ljava/util/function/Consumer;Ljava/util/function/BiConsumer;)Z??
?getTemplates??
?indexTemplateMetaDataUpgraders??	Y?removeTemplate??
???lambda$upgradeMetaData$0?(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)V??
??Q(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)V??buildk
7Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;java/util/HashMap
?3com/groupbyinc/flux/common/collect/ImmutableOpenMap	

~Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursorkeyLjava/lang/Object;	
value	
8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;? java/util/function/UnaryOperatorapply&(Ljava/lang/Object;)Ljava/lang/Object;keySet7 forEach (Ljava/util/function/Consumer;)V"#?$entrySet&7'?~getKey*?+getValue-?.java/util/function/BiConsumer0??12customCursorcLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;upgradedCustomEntry/Ljava/util/Map$Entry;Ljava/util/Map$Entry;existingDataOLcom/groupbyinc/flux/common/collect/ImmutableOpenMap;5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;upgraderMLjava/util/function/UnaryOperator;>;
removeData1Ljava/util/function/Consumer;Ljava/util/function/Consumer;putData9Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;existingMap)Ljava/util/Map;Ljava/util/Map;upgradedCustomsshards-*IG(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;_K
ZLFDetected pre 0.19 shard state file please upgrade to a version before N9 first to upgrade state structures - shard state found: [Pjava/util/ArrayListR
S?java/util/ListUcom/groupbyinc/flux/index/IndexWgetIndexSafeY
Zindex\
]contains_?`freshly createdb
getVersiond?
eversion changed from [g(J)Ljava/lang/StringBuilder;?i
?j] to [l]n}(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;)V,p
	qVnewIndexMetaDatapreviousIndexMetaDatawriteReason!Lcom/groupbyinc/flux/index/Index;potentiallyUnwrittenIndicesindicesToWriteSLjava/util/List;Ljava/util/List;getRoutingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;|}
?~getLocalNodeId?s
??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?\

??routing2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
isOrWasClosednewRoutingNode1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;indicesu(Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
?sindexTemplateMetaData;)Ljava/util/Set;"(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Ljava/util/function/UnaryOperator;>;Ljava/util/function/Consumer;Ljava/util/function/BiConsumer;)Z(Ljava/util/Set;Ljava/util/Set;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Ljava/lang/Iterable;^(Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/Set;BootstrapMethods
SourceFileInnerClasses!"#$%B&'?(B)*?+
,-?O?*+?3*?9?;*,?=*-??*?EW+?K?*,?O+?\?
+?K?,?`+?\?
+?K??*?c+,?i-?m:?q:?G?u?-w?{?:		???$	???:

???-w
????ظ?7	-?mW*?????	e???????:*???????I??/?z???
Xw?'cl?'???	??????????"#?$%??????????vMFNOPR$S)V7W;YI[M\R]X^cbjctd|f?g?h?j?l?m?n?r?o?p?q?t?T
?)QSUAWY

?2??'??#QSUAWY/?/?0?k?2*???m?????w?????f
k+??M,?ֶۙ*??*?9?;?,??N?9:6,????,????*????,??z??Y*?;????:-?:???C???::	????*????:		?	??W???*?;?W*??;?:6*???*??-?u?*??-?{?:6+??+? *?;?$:*?;*??+?ж߸(:?+:???+???	:*???/?2???:	6????*-??*??;?J??/???/;LO/???.3?	1??ce4*??????Q??	;56;79k??k:;f?<!J0'&E=*)B>?? ce4+;78&E=+??)}~????!?&?)?C?J?Q?c????????????????????????????????????;?L?O?Q?T?W?\?a?j??k???&??%???4???B/M/?/*??)	???*?	/??	!"??,*??
*+,?BN?*????*?FN??9N-??>=*#=*,?<,<,)**=*?*=+#=+,)+*=+?????&?*??
???????U *????*??????? ?<???@a^??
2*?=?LL+?=>?"+2:P?V:?X?^????b::?e:???????R:	*???h?*??j	?n?q	?n?u:

w?}?9?Y??Y??????????????	?????????????|?]????N:???B???8::?:?%????:???
??????߱???H<??H<??H???>?A?-
[n??	9???#????2???9????N??#?/?2?<?[?g?z?????????????????+?1??p?
N?$RR?dH??4R?N?SHIHHH?NRRdHHH?N??/no???>*??:*?:???8???:+??????:???>??W???*??,??Y??W??Y??W????>*??,??Y??W?????>???*??H20?$&????'???????????:???$?*?-?2?A?J?Msu??	?S???/WY??WY??
'"@?/
??????Y?:*?:???$???
:???W???+??:??M?!,?%?(?):???&???:-?,?/?3??????R%46?79?:<?=???A?BD	?EGGXHG?R%45?78?:;?=>??@?BC	?EFGXHF?2	%7:GS`????????*?3??,??LM?;
?+?LM,?>6??,2:P?V:?X?^??J?M::?e:		???E	???R:
?Y??Y??O????????Q??
????????????]????N:		???B???8:		:	?:?%????:???
??????????H<??H<?????H????>[6??
9???#??????????"#?9????6
$%#&/'<([)o*}+?-?'?-?$?0?x?N?9
SNRRdH??KSHIHHH?SNRRdHHH?SN??/	%&??
??SY?T:+?):???????X:-?[:,??	,?^::	*?a??c:	???f?f??1??Y??h???f?km???f?ko????:		??	Y	?r?sW??a??\	/?t??qu?Bnv-	'?\w?)*?x*?&'?0'	?y{? ?)+?x+	?yz?6
>	?'@/A?BBCRDZEhF?H?I?K?L???V??%XE?y;???V????	@"??	?*?*?????N-??Y??????Y??:-??:???????:???W???*?߶:???l???:???6+????^:???????6,??a????W?????\	C
??M????&?rZ????<?<?)*???'??*??)+'??+?BPQRT'UCVPWSYrZ]?^?_?a?b?d?e?.
??????%???H@????	CD??3??Y??L*?߶M,???,???N+-??W???+?? #??3?<+=*?+=+?jl#m.n1o????? ??
???E*,??W?? ??-????*?????????????????2	
			@	 !




© 2015 - 2024 Weber Informatics LLC | Privacy Policy