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

com.groupbyinc.flux.common.util.IndexFolderUpgrader.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????43com/groupbyinc/flux/common/util/IndexFolderUpgraderjava/lang/ObjectIndexFolderUpgrader.java0com/groupbyinc/flux/env/NodeEnvironment$NodePath'com/groupbyinc/flux/env/NodeEnvironmentNodePath%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles
LookupnodeEnv)Lcom/groupbyinc/flux/env/NodeEnvironment;settings.Lcom/groupbyinc/flux/common/settings/Settings;logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Z(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;)V()V
*com/groupbyinc/flux/common/logging/Loggers	getLoggerK(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
	!	#	%this5Lcom/groupbyinc/flux/common/util/IndexFolderUpgrader;upgradeL(Lcom/groupbyinc/flux/index/Index;Ljava/nio/file/Path;Ljava/nio/file/Path;)Vjava/io/IOException+!java/nio/file/NoSuchFileException-java/io/FileNotFoundException/java/nio/file/CopyOption1 java/nio/file/StandardCopyOption3ATOMIC_MOVE"Ljava/nio/file/StandardCopyOption;56	47java/nio/file/Files9moveY(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;;<
:={} moved from [{}] to [{}]?6com/groupbyinc/flux/common/apache/logging/log4j/LoggerAinfoK(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)VCDBE{} syncing directory [{}]Gtrace9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VIJBK5com/groupbyinc/flux/common/apache/lucene/util/IOUtilsMfsync(Ljava/nio/file/Path;Z)VOP
NQcom/groupbyinc/flux/index/IndexSjava/nio/file/PathU"java/lang/invoke/LambdaMetafactoryWmetafactory?(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;YZ
X[\()Ljava/lang/Object;^lambda$upgrade$0((Ljava/nio/file/Path;)Ljava/lang/Object;`a
bcgetU(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;efgerrorW(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)VijBkjava/lang/Throwablem	exceptionLjava/io/IOException;index!Lcom/groupbyinc/flux/index/Index;sourceLjava/nio/file/Path;targetsuccessZ(Ljava/lang/String;)V	nodePaths5()[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;yz
	{3[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;}indicesPatht	?resolve((Ljava/lang/String;)Ljava/nio/file/Path;??V?2com/groupbyinc/flux/cluster/metadata/IndexMetaData?FORMAT1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;??	??9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry?EMPTY;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;??	??/com/groupbyinc/flux/gateway/MetaDataStateFormat?loadLatestState?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)Ljava/lang/Object;??
??getIndex#()Lcom/groupbyinc/flux/index/Index;??
??needsUpgrade6(Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;)Z??
?*{} upgrading [{}] to new naming convention?CJB?'com/groupbyinc/flux/index/IndexSettings?e(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/common/settings/Settings;)V?
??hasCustomDataPath()Z??
??resolveBaseCustomLocation?(Lcom/groupbyinc/flux/index/IndexSettings;)Ljava/nio/file/Path;??
	?getUUID()Ljava/lang/String;??
T?resolveSibling??V?java/nio/file/LinkOption?exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z??
:?)*
?java/lang/String?)[{}] no upgrade needed - already upgraded?'(Ljava/lang/String;Ljava/lang/Object;)VC?B?debug??B?$[{}] no index state found - ignoring?warn??B?customLocationSourcecustomLocationTarget
indexSettings)Lcom/groupbyinc/flux/index/IndexSettings;indexFolderPath
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;nodePath2Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;indexFolderNameLjava/lang/String;upgradeIndicesIfNeeded
?availableIndexFolders()Ljava/util/Set;??
	?
java/util/Set?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext????next?^??)x
?upgraderequals(Ljava/lang/Object;)Z??
??Lcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessage?Smultiple nodes trying to upgrade [{}] in parallel, retry upgrading with single node??
??CodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsBootstrapMethods
SourceFileInnerClasses!?f*?*? ?"*+?$*,?&?? '(?6/
789)*?`6,-?2Y?8S?>W6?f*?"@+,-?F*?"H+-?L-?R?C:*?"-?h?l?:?#*?"@+,-?F*?"H+-?L-?R??>.>0T>VT?>@op'(qrstut|vw?>?ABJK)L6M>C@FQHTJ[KiLvM~P?'?>TVV,Un?&n?,)x?"	*?&?|M,?>6??,2:??+??:??*?"???VYS????:????:+????*?"?????Y*?$??:		???T*?&	??+??:

????:
??????????*
???*?"???*???????*?"????*?"??????	??\	?@?t
?2?tum??	N?qr'??tB??????	'(	???^XY'ZB[G\N]W^f_u`}d?e?f?i?j?k?m?p?q?r?t?uXx?A?~???~V?T?VV?????,	???2?Y*+??M+???N-???-????:,?????*(??22
(?(?~
(?.?1?????,???P+*????????qr?????@
`a?5??Y?*????ut?F]_d_	
	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy