com.groupbyinc.flux.cluster.metadata.MetaDataCreateIndexService$1.class Maven / Gradle / Ivy
???? 4? Acom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$1 wLcom/groupbyinc/flux/cluster/AckedClusterStateUpdateTask; 7com/groupbyinc/flux/cluster/AckedClusterStateUpdateTask MetaDataCreateIndexService.java ?com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService onlyCreateIndex ?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
java/util/Map$Entry
java/util/Map Entry 9com/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom 2com/groupbyinc/flux/cluster/metadata/IndexMetaData Custom 8com/groupbyinc/flux/cluster/routing/RoutingTable$Builder 0com/groupbyinc/flux/cluster/routing/RoutingTable Builder 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder ! /com/groupbyinc/flux/cluster/block/ClusterBlocks # Ocom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices % >com/groupbyinc/flux/indices/cluster/IndicesClusterStateService ' AllocatedIndices bcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason * IndexRemovalReason :com/groupbyinc/flux/index/mapper/MapperService$MergeReason - .com/groupbyinc/flux/index/mapper/MapperService / MergeReason :com/groupbyinc/flux/cluster/metadata/AliasMetaData$Builder 2 2com/groupbyinc/flux/cluster/metadata/AliasMetaData 4 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 6 State 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder 9 -com/groupbyinc/flux/cluster/metadata/MetaData ; 0com/groupbyinc/flux/cluster/ClusterState$Builder = (com/groupbyinc/flux/cluster/ClusterState ? %java/lang/invoke/MethodHandles$Lookup A java/lang/invoke/MethodHandles C Lookup val$request VLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest; this$0 ALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService; (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 H I L F G N ?(Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;)V J P
Q this CLcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$1; priority %Lcom/groupbyinc/flux/common/Priority; request .Lcom/groupbyinc/flux/cluster/ack/AckedRequest; listener iLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; newResponse ?(Z)Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse; :com/groupbyinc/flux/cluster/ack/ClusterStateUpdateResponse ^ (Z)V J `
_ a acknowledged Z execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; java/lang/Exception g FAILURE dLcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason; i j + k
access$000 ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)V m n
o Tcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest q aliases ()Ljava/util/Set; s t
r u
java/util/Set w iterator ()Ljava/util/Iterator; y z x { com/groupbyinc/flux/index/Index } java/lang/String java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? 4com/groupbyinc/flux/action/admin/indices/alias/Alias ?
access$100 x(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/cluster/metadata/AliasValidator; ? ?
? index ()Ljava/lang/String; ? ?
r ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
@ ? 3com/groupbyinc/flux/cluster/metadata/AliasValidator ?
validateAlias z(Lcom/groupbyinc/flux/action/admin/indices/alias/Alias;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V ? ?
? ?
access$200 ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/List; ? ?
? java/util/HashMap ? ()V J ?
? ? java/util/ArrayList ?
? ? mappings ()Ljava/util/Map; ? ?
r ? entrySet ? t ? java/util/List ? getKey ? ?
?
access$300 ~(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; ? ?
? getValue ? ?
? parseMapping ^(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/lang/String;)Ljava/util/Map; ? ?
0 ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? customs ? ?
r ?
shrinkFrom #()Lcom/groupbyinc/flux/index/Index; ? ?
r ? ? { :com/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData ? getName ? ?
? ? add (Ljava/lang/Object;)Z ? ? ? ? 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; ? ?
? ? 3com/groupbyinc/flux/common/collect/ImmutableOpenMap ?
? { Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor ? value Ljava/lang/Object; ? ? ? ? 6com/groupbyinc/flux/common/compress/CompressedXContent ? string ? ?
? ? key ? ? ? ? containsKey ? ? ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? 2com/groupbyinc/flux/common/xcontent/XContentHelper ?
mergeDefaults !(Ljava/util/Map;Ljava/util/Map;)V ? ?
? ? ? ?
? ? mergeWith x(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom; ? ? ? s ?
? ? alias ?
5 (Ljava/lang/String;)V J
? contains ? x {index} (Ljava/lang/CharSequence;)Z
? replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
? newAliasMetaData |(Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;
5 validateAliasMetaData x(Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V
? builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;
size ()I ? (I)Ljava/lang/Object; ?" ?# settings 0()Lcom/groupbyinc/flux/common/settings/Settings;%&
?' f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?)
*
r' index.number_of_shards- &(Ljava/lang/String;)Ljava/lang/String; ?/
0
access$400 q(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/common/settings/Settings;23
4 java/lang/Integer6 valueOf (I)Ljava/lang/Integer;89
7: getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;<=
> intValue@
7A K(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?C
D index.number_of_replicasF
access$500H3
I
access$600K3
L index.auto_expand_replicasN
0
access$700Q3
R \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?T
U index.version.createdW nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;YZ
@[ com/groupbyinc/flux/Version] CURRENT Lcom/groupbyinc/flux/Version;_` ^a /com/groupbyinc/flux/cluster/node/DiscoveryNodesc getSmallestNonClientNodeVersion ()Lcom/groupbyinc/flux/Version;ef
dg min Y(Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/Version;ij
^k g(Ljava/lang/String;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?m
n index.creation_datep -com/groupbyinc/flux/common/joda/time/DateTimer 1com/groupbyinc/flux/common/joda/time/DateTimeZonet UTC 3Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;vw ux 6(Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;)V Jz
s{ getMillis ()J}~
s K(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ??
? index.provided_name? getProvidedName? ?
r?
index.uuid? com/groupbyinc/flux/common/UUIDs? randomBase64UUID? ?
?? P(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;?
? INDEX_NUMBER_OF_SHARDS_SETTING -Lcom/groupbyinc/flux/common/settings/Setting;?? ? build?&
? +com/groupbyinc/flux/common/settings/Setting? B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ??
?? getIndexSafe W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
<? getRoutingNumShards?
? setRoutingNumShards ?(I)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;??
? keySet? t ? prepareShrinkIndexSettings ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;)V??
? l(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;%?
? getNumberOfShards?
? java/util/stream/IntStream? range (II)Ljava/util/stream/IntStream;???? java/lang/Object? getClass ()Ljava/lang/Class;??
?? "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;??
??? (I)J? primaryTerm??
?? applyAsLong \(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Ljava/util/function/IntToLongFunction;?? ? mapToLong E(Ljava/util/function/IntToLongFunction;)Ljava/util/stream/LongStream;???? java/util/stream/LongStream? max ()Ljava/util/OptionalLong;???? java/util/OptionalLong? getAsLong?~
?? numberOfShards?
? @(IJ)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;??
? 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
? waitForActiveShards 7()Lcom/groupbyinc/flux/action/support/ActiveShardCount;??
r? 3com/groupbyinc/flux/action/support/ActiveShardCount? DEFAULT 5Lcom/groupbyinc/flux/action/support/ActiveShardCount;?? ?? getWaitForActiveShards??
? getNumberOfReplicas?
? validate (I)Z??
?? "java/lang/IllegalArgumentException java/lang/StringBuilder
? invalid wait_for_active_shards[ append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2]: cannot be greater than number of shard copies [ (I)Ljava/lang/StringBuilder;
] toString ?
access$800 o(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/indices/IndicesService;
java/util/Collections emptyList ()Ljava/util/List;
! *com/groupbyinc/flux/indices/IndicesService# createIndex n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/util/List;)Lcom/groupbyinc/flux/index/IndexService;%&
$' &com/groupbyinc/flux/index/IndexService) ? ?
*+
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService;-.
*/ MAPPING_UPDATE