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

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

????4??com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService6com/groupbyinc/flux/common/component/AbstractComponentMetaDataCreateIndexService.javaAcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$14com/groupbyinc/flux/common/settings/Settings$Builder,com/groupbyinc/flux/common/settings/Settings
Builderjava/util/Map$Entry

java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupdeprecationLogger6Lcom/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;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;$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03
4	6	8 !	:"#	<$%	>&'	@7com/groupbyinc/flux/action/support/ActiveShardsObserverB?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V0D
CE()	G,-	I*+	KthisALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;settings.Lcom/groupbyinc/flux/common/settings/Settings;validateIndexName?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)V"java/lang/invoke/LambdaMetafactorySmetafactory?(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;UV
TWX8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;Z5com/groupbyinc/flux/indices/InvalidIndexNameException\'(Ljava/lang/String;Ljava/lang/String;)V0^
]_`B(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/RuntimeException;bapply!()Ljava/util/function/BiFunction;defvalidateIndexOrAliasName4(Ljava/lang/String;Ljava/util/function/BiFunction;)Vhi
jjava/util/LocalelROOTLjava/util/Locale;no	mpjava/lang/StringrtoLowerCase&(Ljava/util/Locale;)Ljava/lang/String;tu
svequals(Ljava/lang/Object;)Zxy
szmust 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0?
??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0?
??*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?dZ??java/lang/RuntimeException?#?contains(Ljava/lang/CharSequence;)Z??
s?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??
s?$must not start with '_', '-', or '+'?UTF-8?getBytes(Ljava/lang/String;)[B??
s?*com/groupbyinc/flux/ElasticsearchException?(Unable to determine length of index name?=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V0?
??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;)Vaccept?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;getClass()Ljava/lang/Class; !
?")com/groupbyinc/flux/action/ActionListener$	onFailure(Ljava/lang/Exception;)V&'%(	)'J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer;,-wrapv(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;/0%1onlyCreateIndex3
4requestVLcom/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;;<
=Tcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest?0()Lcom/groupbyinc/flux/common/settings/Settings;OA
@Bputf(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;DE
	Findex.HnormalizePrefixJ(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;JK
	L7com/groupbyinc/flux/common/settings/IndexScopedSettingsNvalidate9(Lcom/groupbyinc/flux/common/settings/Settings$Builder;)VPQ
ORbuildTA
	U?(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;OW
@Xcreate-index [Z??
@\
], cause [^cause`?
@a]c#com/groupbyinc/flux/common/PriorityeURGENT%Lcom/groupbyinc/flux/common/Priority;gh	fi)com/groupbyinc/flux/threadpool/ThreadPoolkgetThreadContext<()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;mn
loBcom/groupbyinc/flux/action/support/ContextPreservingActionListenerqwrapPreservingContext?(Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)Lcom/groupbyinc/flux/action/support/ContextPreservingActionListener;st
ru(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;)V0w
x2com/groupbyinc/flux/cluster/service/ClusterServicezsubmitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V|}
{~iLcom/groupbyinc/flux/action/ActionListener;updatedSettingsBuilder6Lcom/groupbyinc/flux/common/settings/Settings$Builder;
findTemplates?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/List;java/io/IOException?java/util/ArrayList?
??	templates7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
??3com/groupbyinc/flux/common/collect/ImmutableOpenMap?values@()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;??
??;CLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor;templateMetadataNLjava/util/List;Ljava/util/List;?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)VQR
?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;??
?isEmpty????.com/groupbyinc/flux/common/ValidationException?
??addValidationErrors(Ljava/lang/Iterable;)V??
??*(Ljava/lang/String;Ljava/lang/Throwable;)V0?
??validationException0Lcom/groupbyinc/flux/common/ValidationException;	indexNamevalidationErrors$Ljava/util/List;INDEX_DATA_PATH_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;	?+com/groupbyinc/flux/common/settings/SettinggetB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;
	??
?#com/groupbyinc/flux/env/Environment
sharedDataFile()Ljava/nio/file/Path;
>path.shared_data must be set in order to use custom data pathsjava/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;0com/groupbyinc/flux/index/IndexNotFoundException%(Ljava/lang/String;)V0'
&(blocks3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;*+
,3com/groupbyinc/flux/cluster/block/ClusterBlockLevel.WRITE5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;01	/2/com/groupbyinc/flux/cluster/block/ClusterBlocks4indexBlockedJ(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Z67
58java/lang/IllegalStateException:index <A must be read-only to shrink index. use "index.blocks.write=true">
;(getNumberOfShardsA?
?B"java/lang/IllegalArgumentExceptionD)can't shrink an index with only one shardF
E(
java/util/SetIsizeK?JLJ?	_default_O?yJQ^mappings are not allowed when shrinking indices, all mappings are copied from the source indexSINDEX_NUMBER_OF_SHARDS_SETTINGU	?Vexists1(Lcom/groupbyinc/flux/common/settings/Settings;)ZXY
Zjava/lang/Integer\intValue^?
]_getRoutingFactor8(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;I)Iab
?cjava/util/HashMape
f?5com/groupbyinc/flux/cluster/routing/ShardRoutingStatehSTARTED7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;jk	ilshardsWithStateI(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;no
?p0com/groupbyinc/flux/cluster/routing/ShardRoutingr
currentNodeIdt?
su&(Ljava/lang/Object;)Ljava/lang/Object;wlambda$validateShrinkIndex$2?(Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicInteger;yz
{|z()Ljava/util/function/Function;d?computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;???)java/util/concurrent/atomic/AtomicInteger?incrementAndGet??
??entrySet()Ljava/util/Set;???J?getValue????
??./	?java/lang/AssertionError?wait what? ? is > than num shards ?0
??getKey???@ must have all shards allocated on the same node to shrink index?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;	numShardsnodesToAllocateOnprepareShrinkIndexSettings?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;)Vcom/groupbyinc/flux/index/Index?getName??
??#$
?y#lambda$prepareShrinkIndexSettings$3??
???test ()Ljava/util/function/Predicate;???,INDEX_ROUTING_INITIAL_RECOVERY_GROUP_SETTING?	????
?_id?toArray()[Ljava/lang/Object;????arrayToCommaDelimitedString'([Ljava/lang/Object;)Ljava/lang/String;??
??\(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;D?
	?index.allocation.max_retries?K(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/settings/Settings$Builder;D?
	?index.version.created?getCreationVersion()Lcom/groupbyinc/flux/Version;??
??g(Ljava/lang/String;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;D?
	?index.version.upgraded?getUpgradedVersion??
??getSettings?A
??filterN(Ljava/util/function/Predicate;)Lcom/groupbyinc/flux/common/settings/Settings;??
?index.routing_partition_size?getRoutingPartitionSize??
??INDEX_SHRINK_SOURCE_NAME?	??INDEX_SHRINK_SOURCE_UUID?	?getUUID?
?currentStatemappingKeysindexSettingsBuildershrinkFromIndex!Lcom/groupbyinc/flux/index/Index;shrinkIntoNamesourceSettingsPredicate2Ljava/util/function/Predicate;Ljava/util/function/Predicate;index.similarity.
startsWith?
sindex.analysis.index.sort.s(I)V0
?java/lang/Exception:com/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponseisAcknowledged?
 waitForActiveShards7()Lcom/groupbyinc/flux/action/support/ActiveShardCount;"#
@$
ackTimeout-()Lcom/groupbyinc/flux/common/unit/TimeValue;&'
@(
lambda$null$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;12?(Ljava/lang/String;Lcom/groupbyinc/flux/action/support/ActiveShardCount;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V"4
C5Ecom/groupbyinc/flux/cluster/ack/CreateIndexClusterStateUpdateResponse7(ZZ)V09
8:
onResponse<%=responsejava/lang/ClasssdesiredAssertionStatusu?
tv*com/groupbyinc/flux/common/logging/Loggersx	getLoggerK(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;z{
y|;(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V0~
?
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
Exceptions?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/List;T(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/util/Set;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;)VBootstrapMethods
SourceFileInnerClasses!? !"#$%&'()*+,-./01??
C*+?5*,?7*-?9*?;*?=*??*?A*?CY+,?F?H*?J*	?L??f
CMNCOPCCC !C"#C$%C&'C,-C*+	?.??
????!?'?6?<?B??2	QR??u*?g?k*?q?w*?{??]Y*}?`?+??*?????Y+??*???????+??*?????Y+??*???????+??*????]Y*??`???u??u???*
?	??"?-?@?K?^?i?t??"	hi??
*???#+*??Y??????öƶʹ??п*Ҷ֙+*ع??п*ڶ֙%?ܻ?Y??޶?*?????????*??_?*??-?
*??+?+*???п=*???=?N??Y?-??????3+*??Y?????????????ʹ??п*?{?
*?{?+*
???п??????*?
??

?u?

?J??'?0?=?F?h?????????????????????	??
'*?s??6
???p*+*+,?,Y?#W?.?2?5?? MN678:?89?
????3??	n?>N-+?C?GI?MW*?A-?S+-?V?YW*?7??Y??[??+?]??_??+?b??d???ʻY*?j+,*?J?p?v+?y???*nMNn67n8:j???n8??"????$?`?j?m?????Z	???Y??N,????????:???Y????:????:????:???*???s:+?]???-??W???ҧ??-???ι???-??H[??9=??/G???MN?67???????/G??????./9[gpsvy!?"?????+???-??????P??[+?],??*+?]+?C??? MN67???&'(????**,??N-?????Y??:-????Y+?????4??*MN*??*OP$???$??+,-./)1??)????????+?
?sM??Y??N,??*????-??W?T,??M?Y*???S,?:?4-??Y????,????*?????d???ʹ?W-??4L6 !?MN?OPy"?q???q??&	456$71889L:Q;?>??1s??P??#$?y
?*??-?????Y*??-???????*??+??:??&Y+?)?*?-?3+?9?%?;Y??Y??=??+??????ʷ@??C??EYG?H?,?M? ,?N?,P?R????EYT?H??W?[??W?
?]?`?dW*??+??:?fY?g:?C6?m?q??:		???*	???s:

?v????????W??һ?Y??:	????:

???l
???:??????6???2?+??Y??Y???????????ʷ???	????W???	???%?;Y??Y??=??+??????ʷ@?	???

??
aK?RZ????????????????P(????	????????.???	?*RZ????????.??	?zHIK(L-M6PDQfToUzY?Z?[?_?b?f?g?h?i
j"k%l.mRnao?p?q?s?t?u?x?O??/@
?(
sJs????0????Y??+?????s?*??-????:*-??+,?V??:??:,??Y???Ͷ϶?Ѷ??????ٶ?????????????????G????????-???ܲ??-???W??R???????	?
?
?????%x
? ???%x?F|
~~?%?0?A?I?P?X?c?k?{?????????
???b$*??*??
*?????$????#??@
yz?3	??Y???	??j??A-?!?-*?H+?]+?%+?)*+,-?3,Y?#W?.?6?,?8Y?;?>??*AMNA67A8:A?@???1?@??1?*+??/?E?*?IK+?]?Q,?8Y-?!?E?;?>??4/MN/67/8:/?@/RS??????.??TU?E*+,?W?? XNY7Z??m[\?/*?=??XN?m]^?E*+,?`?? XNY7Z??m??ab?/*?L??XN?mcd?/*?f??XN?mgd?/*?f??XN?mhd?/*?f??XN?mid?/*?f??XN?mjk?/*?9??XN?mlm?/*?I??XN?mno?/*?;??XN?mpm?/*?I??XN?mqm?/*?I??XN?mr??G ?w??????Y?}???ܱ?
mo?@?HY[acYY*+Y???Yx}~Y???Y.0??"			




© 2015 - 2025 Weber Informatics LLC | Privacy Policy