com.groupbyinc.flux.cluster.metadata.MetaDataIndexUpgradeService.class Maven / Gradle / Ivy
???? 4? @com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService 6com/groupbyinc/flux/common/component/AbstractComponent MetaDataIndexUpgradeService.java Bcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService$2 Bcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService$1 java/util/Map$Entry
java/util/Map Entry 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 2com/groupbyinc/flux/cluster/metadata/IndexMetaData State :com/groupbyinc/flux/index/mapper/MapperService$MergeReason .com/groupbyinc/flux/index/mapper/MapperService MergeReason 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles " Lookup xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; mapperRegistry 3Lcom/groupbyinc/flux/indices/mapper/MapperRegistry; indexScopedSettings 9Lcom/groupbyinc/flux/common/settings/IndexScopedSettings; upgraders "Ljava/util/function/UnaryOperator; XLjava/util/function/UnaryOperator; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;Ljava/util/Collection;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 0 3
4 % & 6 ' ( 8 ) * : "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; > ?
= @ A &(Ljava/lang/Object;)Ljava/lang/Object; C lambda$new$0 ?(Ljava/util/Collection;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; E F
G H j(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; J apply :(Ljava/util/Collection;)Ljava/util/function/UnaryOperator; L M N + , P this BLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService; settings .Lcom/groupbyinc/flux/common/settings/Settings; indexMetaDataUpgraders pLjava/util/Collection;>; Ljava/util/Collection; upgradeIndexMetaData ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
isUpgraded 7(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Z [ \
] . / _ archiveBrokenIndexSettings a J
b java/lang/AssertionError d +all settings must have been upgraded before f (Ljava/lang/Object;)V 0 h
e i checkSupportedVersion T(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/Version;)V k l
m checkMappingsCompatibility 7(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)V o p
q java/util/function/UnaryOperator s L C t u markAsUpgraded w J
x
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; minimumIndexCompatibilityVersion Lcom/groupbyinc/flux/Version; newMetaData getUpgradedVersion ()Lcom/groupbyinc/flux/Version; ?
? com/groupbyinc/flux/Version ? CURRENT ? } ? ? onOrAfter (Lcom/groupbyinc/flux/Version;)Z ? ?
? ? getState <()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; ? ?
? OPEN :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; ? ? ? isSupportedVersion T(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/Version;)Z ? ?
? java/lang/IllegalStateException ? java/lang/StringBuilder ? ()V 0 ?
? ? The index [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] was created with version [ ? getCreationVersion ? ?
? )] but the minimum compatible version is [ ? ,]. It should be re-indexed in Elasticsearch ? major B ? ? ? ? (I)Ljava/lang/StringBuilder; ? ?
? ? .x before upgrading to ? . ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V 0 ?
? ? java/lang/Throwable ? java/lang/Exception ? 'com/groupbyinc/flux/index/IndexSettings ? T U ? e(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/common/settings/Settings;)V 0 ?
? ? 6com/groupbyinc/flux/index/similarity/SimilarityService ? java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? ;(Lcom/groupbyinc/flux/index/IndexSettings;Ljava/util/Map;)V 0 ?
? ? 0com/groupbyinc/flux/index/analysis/NamedAnalyzer ? fake_default ? 0com/groupbyinc/flux/index/analysis/AnalyzerScope ? INDEX 2Lcom/groupbyinc/flux/index/analysis/AnalyzerScope; ? ? ? ? E(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;)V 0 ?
? ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/analysis/AnalyzerScope;Lcom/groupbyinc/flux/common/apache/lucene/analysis/Analyzer;)V 0 ?
? ? w(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/index/analysis/NamedAnalyzer;)V 0 ?
? 1com/groupbyinc/flux/index/analysis/IndexAnalyzers ? ?(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/index/analysis/NamedAnalyzer;Lcom/groupbyinc/flux/index/analysis/NamedAnalyzer;Lcom/groupbyinc/flux/index/analysis/NamedAnalyzer;Ljava/util/Map;Ljava/util/Map;)V 0 ?
? ? ()Ljava/lang/Object; ? #lambda$checkMappingsCompatibility$1 5()Lcom/groupbyinc/flux/index/query/QueryShardContext; ? ?
? ? ? get ()Ljava/util/function/Supplier; ? ? ?"(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/index/analysis/IndexAnalyzers;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/index/similarity/SimilarityService;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;Ljava/util/function/Supplier;)V 0
MAPPING_RECOVERY