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

com.groupbyinc.flux.cluster.metadata.MetaDataCreateIndexService.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4??com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService6com/groupbyinc/flux/common/component/AbstractComponentMetaDataCreateIndexService.javaQcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$IndexCreationTaskIndexCreationTaskNcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$IndexValidator	IndexValidator4com/groupbyinc/flux/common/settings/Settings$Builder,com/groupbyinc/flux/common/settings/SettingsBuilderjava/util/Map$Entry
java/util/MapEntry8com/groupbyinc/flux/common/settings/Setting$AffixSetting+com/groupbyinc/flux/common/settings/SettingAffixSetting4com/groupbyinc/flux/common/settings/Setting$PropertyProperty%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles LookupdeprecationLogger6Lcom/groupbyinc/flux/common/logging/DeprecationLogger;MAX_INDEX_NAME_BYTESI?clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;indicesService,Lcom/groupbyinc/flux/indices/IndicesService;allocationServiceBLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;aliasValidator5Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;env%Lcom/groupbyinc/flux/env/Environment;indexScopedSettings9Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;activeShardsObserver9Lcom/groupbyinc/flux/action/support/ActiveShardsObserver;xContentRegistry;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;$assertionsDisabledZ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V:=
>()	@*+	B,-	D./	F01	H23	J7com/groupbyinc/flux/action/support/ActiveShardsObserverL?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V:N
MO45	Q67	SthisALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;settings.Lcom/groupbyinc/flux/common/settings/Settings;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;validateIndexName?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)V"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;_`
^ab8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;d5com/groupbyinc/flux/indices/InvalidIndexNameExceptionf'(Ljava/lang/String;Ljava/lang/String;)V:h
gijB(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/RuntimeException;lapply!()Ljava/util/function/BiFunction;nopvalidateIndexOrAliasName4(Ljava/lang/String;Ljava/util/function/BiFunction;)Vrs
tjava/util/LocalevROOTLjava/util/Locale;xy	wzjava/lang/String|toLowerCase&(Ljava/util/Locale;)Ljava/lang/String;~
}?equals(Ljava/lang/Object;)Z??
}?must be lowercase?(com/groupbyinc/flux/cluster/ClusterState?routingTable4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable;??
??0com/groupbyinc/flux/cluster/routing/RoutingTable?hasIndex(Ljava/lang/String;)Z??
??2com/groupbyinc/flux/ResourceAlreadyExistsException?indexK(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;??
??5com/groupbyinc/flux/cluster/routing/IndexRoutingTable?getIndex#()Lcom/groupbyinc/flux/index/Index;??
??$(Lcom/groupbyinc/flux/index/Index;)V:?
??metaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
??-com/groupbyinc/flux/cluster/metadata/MetaData?
??H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
??2com/groupbyinc/flux/cluster/metadata/IndexMetaData?
??hasAlias??
??already exists as alias?Ljava/lang/String;state*Lcom/groupbyinc/flux/cluster/ClusterState;$java/io/UnsupportedEncodingException?"com/groupbyinc/flux/common/Strings?
validFileName??
??java/lang/StringBuilder?()V:?
??*must not contain the following characters ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??INVALID_FILENAME_CHARSLjava/util/Set;??	??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??java/util/function/BiFunction?nd??java/lang/RuntimeException?#?contains(Ljava/lang/CharSequence;)Z??
}?must not contain '#'?:?#$	?index or alias name [?N] containing ':' is deprecated and will not be supported in Elasticsearch 7.0+?java/lang/Object?4com/groupbyinc/flux/common/logging/DeprecationLogger?
deprecated((Ljava/lang/String;[Ljava/lang/Object;)V??
??charAt(I)C??
}?$must not start with '_', '-', or '+'?UTF-8?getBytes(Ljava/lang/String;)[B??
}?*com/groupbyinc/flux/ElasticsearchException?(Unable to determine length of index name=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V:
index name is too long, ((I)Ljava/lang/StringBuilder;?
?	 > )
...must not be '.' or '..'e&Ljava/io/UnsupportedEncodingException;
exceptionCtorbLjava/util/function/BiFunction;Ljava/util/function/BiFunction;	byteCountcreateIndex?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V(Ljava/lang/Object;)Vlambda$createIndex$1?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse;)V 
!"?(Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse;)V$accept?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;&'(java/util/Objects*requireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;,-
+.)com/groupbyinc/flux/action/ActionListener0	onFailure(Ljava/lang/Exception;)V2314	53J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer;&89wrapv(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;;<1=onlyCreateIndex?
@requestVLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;listenertLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;builder8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;GH
ITcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequestK0()Lcom/groupbyinc/flux/common/settings/Settings;WM
LNputf(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;PQ

Rindex.TnormalizePrefixJ(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;VW

XbuildZM

[7com/groupbyinc/flux/common/settings/IndexScopedSettings]validate2(Lcom/groupbyinc/flux/common/settings/Settings;Z)V_`
^a?(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Wc
Ldcreate-index [f??
Lh
], cause [jcausel?
Lm]ologger!Lorg/apache/logging/log4j/Logger;qr	sWX	u?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Vw_w
yz?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$IndexValidator;_|}:(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$IndexValidator;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;)V:
?2com/groupbyinc/flux/cluster/service/ClusterService?submitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V??
??iLcom/groupbyinc/flux/action/ActionListener;updatedSettingsBuilder6Lcom/groupbyinc/flux/common/settings/Settings$Builder;[\
?validateIndexSettingsC(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V??
?2com/groupbyinc/flux/indices/IndexCreationException? getIndexSettingsValidationErrors@(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;??
?java/util/List?isEmpty()Z????.com/groupbyinc/flux/common/ValidationException?
??addValidationErrors(Ljava/lang/Iterable;)V??
??*(Ljava/lang/String;Ljava/lang/Throwable;)V:?
??validationException0Lcom/groupbyinc/flux/common/ValidationException;	indexNamevalidationErrors$Ljava/util/List;Ljava/util/List;INDEX_DATA_PATH_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;??	??getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;??
?java/util/ArrayList?
????
??#com/groupbyinc/flux/env/Environment?sharedDataFile()Ljava/nio/file/Path;??
??>path.shared_data must be set in order to use custom data paths?add????java/nio/file/Path?'com/groupbyinc/flux/common/io/PathUtils?=([Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;??
??
custom path [?)] is not a sub-path of path.shared_data [?resolvedPathLjava/nio/file/Path;
customPathvalidateShrinkIndex?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;validateResize?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
?89	?INDEX_NUMBER_OF_SHARDS_SETTING??	??exists1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
?java/lang/AssertionError?
??java/lang/Integer?intValue()I??
??selectShrinkShardsG(ILcom/groupbyinc/flux/cluster/metadata/IndexMetaData;I)Ljava/util/Set;??
??getNumberOfShards??
??"java/lang/IllegalArgumentException?)can't shrink an index with only one shard?(Ljava/lang/String;)V:?
??java/util/HashMap?
??5com/groupbyinc/flux/cluster/routing/ShardRoutingState?STARTED7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;??	?shardsWithStateI(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;
?iterator()Ljava/util/Iterator;?
java/util/Set
java/util/IteratorhasNext?
next()Ljava/lang/Object;
0com/groupbyinc/flux/cluster/routing/ShardRouting
currentNodeId?
-lambda$validateShrinkIndex$2?(Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicInteger;
()Ljava/util/function/Function;n!"computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;$%&)java/util/concurrent/atomic/AtomicInteger(incrementAndGet*?
)+entrySet()Ljava/util/Set;-./getValue23??
)5wait what? 7 is > than num shards 9:
?;getKey=>java/lang/IllegalStateException@index B@ must have all shards allocated on the same node to shrink indexD
A?routing2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;numAllocationsentriesTLjava/util/Map$Entry;Ljava/util/Map$Entry;sourceIndextargetIndexMappingsTypes#Ljava/util/Set;targetIndexNametargetIndexSettingssourceMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;table7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;nodesToNumRoutingNLjava/util/Map;Ljava/util/Map;	numShardsnodesToAllocateOnvalidateSplitIndex?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)VselectSplitSharda(ILcom/groupbyinc/flux/cluster/metadata/IndexMetaData;I)Lcom/groupbyinc/flux/index/shard/ShardId;]^
?_getCreationVersion()Lcom/groupbyinc/flux/Version;ab
?ccom/groupbyinc/flux/VersioneV_6_0_0_alpha1Lcom/groupbyinc/flux/Version;gh	fibefore (Lcom/groupbyinc/flux/Version;)Zkl
fmBsource index created version is too old to apply a split operationo0com/groupbyinc/flux/index/IndexNotFoundExceptionq
r?blocks3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;tu
?v3com/groupbyinc/flux/cluster/block/ClusterBlockLevelxWRITE5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;z{	y|/com/groupbyinc/flux/cluster/block/ClusterBlocks~indexBlockedJ(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Z??
?A must be read-only to resize index. use "index.blocks.write=true"?size????	_default_????]mappings are not allowed when resizing indices, all mappings are copied from the source index?getRoutingFactor(II)I??
??prepareResizeIndexSettings(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;Lcom/groupbyinc/flux/action/admin/indices/shrink/ResizeType;ZLcom/groupbyinc/flux/common/settings/IndexScopedSettings;)Vcom/groupbyinc/flux/index/Index?getName??
??:com/groupbyinc/flux/action/admin/indices/shrink/ResizeType?SHRINK;keysourceSettingsPredicate2Ljava/util/function/Predicate;Ljava/util/function/Predicate;currentStatemappingKeysindexSettingsBuilderresizeSourceIndex!Lcom/groupbyinc/flux/index/Index;resizeIntoNametypecopySettingsindex.similarity.
startsWith?
}index.analysis.!index.sort.#index.mapping.single_type%s(I)V:(
))java/lang/Exception+:com/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse-isAcknowledged/?
.0waitForActiveShards7()Lcom/groupbyinc/flux/action/support/ActiveShardCount;23
L4
ackTimeout-()Lcom/groupbyinc/flux/common/unit/TimeValue;67
L8lambda$createIndex$0?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse;Ljava/lang/Boolean;)V:;
<=(Ljava/lang/Boolean;)V?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse;)Ljava/util/function/Consumer;&AB?([Ljava/lang/String;Lcom/groupbyinc/flux/action/support/ActiveShardCount;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V2D
MEEcom/groupbyinc/flux/cluster/ack/CreateIndexClusterStateUpdateResponseG(ZZ)V:I
HJ
onResponseL1Mresponsejava/lang/ClasscdesiredAssertionStatuse?
df*com/groupbyinc/flux/common/logging/Loggersh	getLogger4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;jk
il$(Lorg/apache/logging/log4j/Logger;)V:n
?o
ConstantValueCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations
StackMapTableLocalVariableTypeTable	Signaturew(Ljava/lang/String;Ljava/util/function/BiFunction;)V?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
ExceptionsT(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;/(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;Lcom/groupbyinc/flux/action/admin/indices/shrink/ResizeType;ZLcom/groupbyinc/flux/common/settings/IndexScopedSettings;)VBootstrapMethods
SourceFileInnerClasses!#$%&q'()*+,-./0123456789:;r?
=*+??*,?A*-?C*?E*?G*?I*?K*?MY+,?P?R*	?T?sf
=UV=WX=()=*+=,-=./=01=23=YZ=67	t*
}~
???!?'?6?<?u<	[\r?u*?q?u*?{??*????gY*??j?+??*?????Y+??*???????+??*?????Y+??*???????+??*????gY*??j??su??u??t*
?	??"?-?@?K?^?i?t?v"	rsr?*???#+*??Y??ŶɲͶжԹ??ڿ*ܶ??+*???ڿ*???%???Y????*???ɶ????*??_?*??-?
*??+?+*????ڿ=*????=?N?Y-?????4+*??Y?????
????
?ɶԹ??ڿ*???
*???+*???ڿ?????s*????w&wtJ??'?0?=?F?h??????????????????????v
'*?}??7
xyrx*+*+,?),Y?/W?:?>?A?s UVBCDFwDEt????xz?r??JN-+?O?SU?Y?\:*?K?b+?eW*?A??Y??g??+?i??k??+?n??p?ɶԻY*?t*?E+,*?C*?G*?T*?v*?~*?K?????s4?UV?BC?DF???nZXw?D?t"???!?(?:?????x{_wr[+?i,??*+?i+?O???s UVBC??tHIJ??r?**,??N-?????Y??:-????Y+????s4??*UV*??*WX$??w$??tMNOPQ)Sv?)?|???r???+???}M??Y??N,???*?I???-???W?T,???M??Y*?I??S,??:?4-??Y??Ͷ?,??϶?*?I????p?ɶԹ?W-?s4L6???UV?WXy??q??wq??t&	VWX$Y1Z8[L\Q]?`v?1}??Px}??r?
c*+,-??:?ښ??????Y??????????W?????Y????*??+??:??Y??:??6???	:		??*	??:

??#?'?)?,W??һ?Y??:	?0?1:

??o
??:?4?)?66?ښ2?+??Y??Y??8???
:???
?Է?`?vF	?$?(?(
?}}??
?0??
?Y??+x~[\r?:*+,-??:???????`W?d?j?n??AYp?F??s>:??:M?:N?:P?:QX/RSw:NOt?? ?.?9?v?9?x??rz?*??-?????Y*??-???????*??+??:??rY+?s?*?w?}+???%?AY??Y??C??+????ɶԷF?,??? ,???,????????Y?????????????????W?s>????M??N??P??QX(?RSw?NOt>???(?-?6?D?f?q?????????????v	??/@
!x???r(
?*??-????:???`*-??+,?\??:	,??Y?ò???????ɶ?	?????????????-????????-?Ķ?W?:?Ǧ*-??+,?\?ɧ ?AY??Y??˶??жԷF??J:	???ζѹ1:

??i
??}:??:??ښ(?ך??Y?@??:

			@!"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy