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;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/gateway/MetaStateService;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;)Vjava/io/IOException.java/lang/Exception01(Lcom/groupbyinc/flux/common/settings/Settings;)V,2
3java/util/Collections5emptySet()Ljava/util/Set;78
69)*	;"#	=$%	?.com/groupbyinc/flux/cluster/node/DiscoveryNodeA
isDataNode1(Lcom/groupbyinc/flux/common/settings/Settings;)ZCD
BEensureNoPre019ShardState,(Lcom/groupbyinc/flux/env/NodeEnvironment;)VGH
I,com/groupbyinc/flux/common/settings/SettingsK'com/groupbyinc/flux/env/NodeEnvironmentM,com/groupbyinc/flux/gateway/MetaStateServiceO@com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeServiceQ,com/groupbyinc/flux/plugins/MetaDataUpgraderSisMasterNodeUD
BVensureAtomicMoveSupported()VXY
NZensureNoPre019State\Y
]3com/groupbyinc/flux/common/util/IndexFolderUpgrader_upgradeIndicesIfNeededZ(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;)Vab
`c
loadFullState1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;ef
PgupgradeMetaData?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;)Lcom/groupbyinc/flux/cluster/metadata/MetaData;ij
kisGlobalStateEqualsa(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Zmn
oupgradeqwriteGlobalStateD(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Vst
Puiterator()Ljava/util/Iterator;wx
yjava/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??
P?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;metaDataIndexUpgradeServiceBLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;metaDataUpgrader.Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;
loadMetaStateapplyClusterState4(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?~
??&'	??f
??nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??/com/groupbyinc/flux/cluster/node/DiscoveryNodes?getLocalNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??U~
B?C~
B?
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;
Padd??	addAll(Ljava/util/Collection;)Z?
unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;
6changed
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 !yreasonLjava/lang/String;#$		%newMetaData'?		(indexMetaDataOnDisknewPreviouslyWrittenIndicesindexMetaWriteALcom/groupbyinc/flux/gateway/GatewayMetaState$IndexMetaWriteInfo;	writeInfoWLjava/lang/Iterable;Ljava/lang/Iterable;event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;*Lcom/groupbyinc/flux/cluster/ClusterState;relevantIndicessuccessZ getRelevantIndicesOnDataOnlyNode7
8'getRelevantIndicesForMasterEligibleNode;(Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/Set;:;
<java/lang/Throwable>
nodeDataPaths()[Ljava/nio/file/Path;@A
NB[Ljava/nio/file/Path;D_stateFjava/nio/file/PathHresolve((Ljava/lang/String;)Ljava/nio/file/Path;JKILjava/nio/file/LinkOptionNjava/nio/file/FilesPexists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)ZRS
QTnewDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;VW
QXjava/nio/file/DirectoryStreamZ[yisTraceEnabled]~?^[upgrade]: processing [{}]`getFileName()Ljava/nio/file/Path;bcIdtracef??gtoString()Ljava/lang/String;ijIk	metadata-mjava/lang/Stringo
startsWith(Ljava/lang/String;)Zqr
psjava/lang/IllegalStateExceptionujava/lang/StringBuilderw,Y
xyCDetected pre 0.19 metadata file please upgrade to a version before {append-(Ljava/lang/String;)Ljava/lang/StringBuilder;}~
xcom/groupbyinc/flux/Version?CURRENTLcom/groupbyinc/flux/Version;??	?? minimumIndexCompatibilityVersion()Lcom/groupbyinc/flux/Version;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;}?
x?6 first to upgrade state structures - metadata found: [?	getParent?cI?toAbsolutePath?cI?
xk(Ljava/lang/String;)V,?
v?$closeResource1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V??
?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;??
R?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;??	T?java/util/Objects?requireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;??
??"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??	T?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?f
?7Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;java/util/HashMap?
?y3com/groupbyinc/flux/common/collect/ImmutableOpenMap?
?yGcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursorkeyLjava/lang/Object;	value	8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?	
 java/util/function/UnaryOperatorapply?
?keySet8forEach (Ljava/util/function/Consumer;)V?entrySet8?ygetKey?getValue ?!java/util/function/BiConsumer#??$%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-*<G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;V>
Q?FDetected pre 0.19 shard state file please upgrade to a version before A9 first to upgrade state structures - shard state found: [Cjava/util/ArrayListE
Fyjava/util/ListHcom/groupbyinc/flux/index/IndexJgetIndexSafeL
MindexO
PcontainsR??Sfreshly createdU
getVersionW?
Xversion changed from [Z(J)Ljava/lang/StringBuilder;}\
x]] to [_]a}(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;)V,c
	dI	newIndexMetaDatapreviousIndexMetaDatawriteReason!Lcom/groupbyinc/flux/index/Index;potentiallyUnwrittenIndicesindicesToWriteSLjava/util/List;Ljava/util/List;getRoutingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;op
?qgetLocalNodeIdsj
?t0com/groupbyinc/flux/cluster/routing/RoutingNodesvnodeE(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode;xy
wzHcluster state does not contain this node - cannot write index meta state|/com/groupbyinc/flux/cluster/routing/RoutingNode~
?y
y0com/groupbyinc/flux/cluster/routing/ShardRouting?O
??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)*?+,-?4
?*+?4*?:?<*,?>*-?@+?F?*,?J+?W?
+?F?,?[+?W?
+?F??*?^+,?d-?h:?l:?G?p?-r?v?z:???$???:		???-r	????ظ?7-?hW*?????e???????:*???????B??1?p???	Qw?'\l?'?????????????"#?$%???????rIEJKMN"Q0R4TBVFWKXQY\]c^m_ua?b?c?e?g?h?i?m?j?k?l?o?N
?"LNPRT

?2?|'??#LNPRT1?/?f?2*?@?h?????r?/???f
k+??M,?Ͷҙ*??*?:?4*#4*,?3,3,)**4*?*4+#4+,)+*4+?????&?*??
???????U *?ڶ??*?ڶ????? ?3???@\Y?6?*?>?CL+?=>??+2:G?M:?O?U????Y::?\:???????I:	*???_?*??a	?e?h	?e?l:

n?t?9?vY?xY?z|???????????	?????????????|?'???::?:?
???????<???<??????>?A?$
[n??	9???#??????????9????N??#?/?2?<?[?g?z??????????????????????f?
E?$II?[?|?4I?N?N?H??
EII[???E??/ij???>*??:*?z:???8???:+??????:???>??W???*??,??Y??W??Y??W????>*??,??Y??W??????>????*??H2'?$&????'???????6????J???$?*?-?2?A?J?M?X?m?s?u?????S?|?/RT|?RT|?
'"@?/
???????Y??:*??:???'???:??p??W???+??:??P?,???:???)???:-??p?"?&??????R%')?*,?-/?0??24?57	?8:J[;:?R%'(?*+?-.?01?23?56	?89J[;9?2	
%:=JVc??????|?-?3|?/??GH???+?CM,?>6??,2:G?M:?O?U??=?@::?\:		???E	???I:
?vY?xY?zB????????D??
????????????'???:		:	?:?
??????N?<???<??????>[6??
9???#??????????"#?9????6
 #!/"<#[$o%}&?(?"?(??+?S?E?9
NEII[?|?KN?H??
??NE??/	??
??FY?G:+?:???????K:-?N:,??	,?Q::	*?T??V:	???Y?Y??1?xY?z[???Y?^`???Y?^b????:		??	Y	?e?fW??a??\	/?g??qh?Bni$	'?Oj?)*?k*?&'?''	?ln? ?)+?k+	?lm?6
9	:';/<?=B>R?Z@hA?C?D?F?G???I|?%KE?p;???I|???	7??	?*?r*?ڶu?{N-??vY}?????Y??:-??:???????:???
W???*?ֶz:???l???:??????6+????Q:??????????6,??T????
W?????\	C
??M?6??&?rZ????3?3?)*???'??*??)+'??+?BKLMO'PCQPRSTrUX?Y?Z?\?]?_?`?.
???|?%?|?H@????	:;??3??Y??L*?ֶzM,???,???N+-??
W???+?? #??3?3+4*?+4+?eg#h.i1j???|? ??
???E*,??W?? ???$???
???g*?+???M*,???	+???

?????????M??*??????????????????2	
			@	 !




© 2015 - 2024 Weber Informatics LLC | Privacy Policy