com.groupbyinc.flux.common.util.IndexFolderUpgrader.class Maven / Gradle / Ivy
???? 4 3com/groupbyinc/flux/common/util/IndexFolderUpgrader java/lang/Object IndexFolderUpgrader.java 0com/groupbyinc/flux/env/NodeEnvironment$NodePath 'com/groupbyinc/flux/env/NodeEnvironment NodePath %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup nodeEnv )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 getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;
! # % this 5Lcom/groupbyinc/flux/common/util/IndexFolderUpgrader; upgrade L(Lcom/groupbyinc/flux/index/Index;Ljava/nio/file/Path;Ljava/nio/file/Path;)V java/io/IOException + !java/nio/file/NoSuchFileException - java/io/FileNotFoundException / java/nio/file/CopyOption 1 java/nio/file/StandardCopyOption 3 ATOMIC_MOVE "Ljava/nio/file/StandardCopyOption; 5 6 4 7 java/nio/file/Files 9 move Y(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path; ; <
: = {} moved from [{}] to [{}] ? org/apache/logging/log4j/Logger A info K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V C D B E {} syncing directory [{}] G trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V I J B K ,com/groupbyinc/flux/core/internal/io/IOUtils M fsync (Ljava/nio/file/Path;Z)V O P
N Q com/groupbyinc/flux/index/Index S java/nio/file/Path U "java/lang/invoke/LambdaMetafactory W 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; Y Z
X [ \ ,()Lorg/apache/logging/log4j/message/Message; ^ lambda$upgrade$0 @(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/message/Message; ` a
b c get E(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/util/MessageSupplier; e f g error G(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V i j B k java/lang/Throwable m exception Ljava/io/IOException; index !Lcom/groupbyinc/flux/index/Index; source Ljava/nio/file/Path; target success Z (Ljava/lang/String;)V nodePaths 5()[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath; y z
{ 3[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath; } indicesPath t ? resolve ((Ljava/lang/String;)Ljava/nio/file/Path; ? ? V ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? FORMAT 1Lcom/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; ? ?
? ? needsUpgrade 6(Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;)Z ? ?
? *{} upgrading [{}] to new naming convention ? C J B ? '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 ? exists 2(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 ? customLocationSource customLocationTarget
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; indexFolderPath
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; nodePath 2Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath; indexFolderName Ljava/lang/String; upgradeIndicesIfNeeded
? availableIndexFolders ()Ljava/util/Set; ? ?
?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? ) x
? upgrader equals (Ljava/lang/Object;)Z ? ?
? ? 5org/apache/logging/log4j/message/ParameterizedMessage ? Smultiple nodes trying to upgrade [{}] in parallel, retry upgrading with single node ? ?
? ? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions BootstrapMethods
SourceFile InnerClasses ! ? f *? *? ? "*+? $*,? &? ? ' ( ? 5 .
6 7 8 ) * ? d 6,-? 2Y? 8S? >W6? f*? "@+,-? F *? "H+-? L -? R? C:*? "-? h ? l ?:? #*? "@+,-? F *? "H+-? L -? R?? > . > 0 T > V T ? > @ o p ' ( q r s t u t | v w ? B > @ A I J ) K 6 L > B @ E Q G T I [ J i K v L { N ~ O ' ? > T V V ,U n? &