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: 198
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;logger!Lorg/apache/logging/log4j/Logger;Z(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;)V()V
*com/groupbyinc/flux/common/logging/Loggers	getLogger4(Ljava/lang/Class;)Lorg/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 [{}]?org/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IJBK,com/groupbyinc/flux/core/internal/io/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[\,()Lorg/apache/logging/log4j/message/Message;^lambda$upgrade$0@(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/message/Message;`a
bcgetE(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/util/MessageSupplier;efgerrorG(Lorg/apache/logging/log4j/util/MessageSupplier;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?(Lorg/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()Ljava/lang/Object;????)x
?upgraderequals(Ljava/lang/Object;)Z??
??5org/apache/logging/log4j/message/ParameterizedMessage?Smultiple nodes trying to upgrade [{}] in parallel, retry upgrading with single node??
??CodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsBootstrapMethods
SourceFileInnerClasses!?f*?*? ?"*+?$*,?&?? '(?5.
678)*?d6,-?2Y?8S?>W6?f*?"@+,-?F*?"H+-?L-?R?C:*?"-?h?l?:?#*?"@+,-?F*?"H+-?L-?R??>.>0T>VT?>@op'(qrstut|vw?B>@AIJ)K6L>B@EQGTI[JiKvL{N~O'?>TVV,Un?&n?,)x?"	*?&?|M,?>6??,2:??+??:??*?"???VYS????:????:+????*?"?????Y*?$??:		???T*?&	??+??:

????:
??????????*
???*?"???*???????*?"????*?"??????	??\	?@?t
?2?tum??	N?qr'??tB??????	'(	???^WX'YBZG[N\W]f^u_}c?d?e?h?i?j?l?o?p?q?s?tWwA?~???~V?T?VV?????,	???2?Y*+??M+???N-???-????:,?????*(??22
(?(?}
~(.?1????,???P+*????????qr????@
`a?5??Y?*????ut?E]_d_	
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy