com.groupbyinc.flux.cluster.metadata.MetaDataDeleteIndexService.class Maven / Gradle / Ivy
???? 4? ?com/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService 6com/groupbyinc/flux/common/component/AbstractComponent MetaDataDeleteIndexService.java Acom/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService$1 ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 3com/groupbyinc/flux/common/collect/ImmutableOpenMap
Builder 8com/groupbyinc/flux/cluster/routing/RoutingTable$Builder
0com/groupbyinc/flux/cluster/routing/RoutingTable 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder -com/groupbyinc/flux/cluster/metadata/MetaData 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder /com/groupbyinc/flux/cluster/block/ClusterBlocks ;com/groupbyinc/flux/cluster/metadata/IndexGraveyard$Builder 3com/groupbyinc/flux/cluster/metadata/IndexGraveyard /com/groupbyinc/flux/cluster/ClusterState$Custom (com/groupbyinc/flux/cluster/ClusterState Custom 0com/groupbyinc/flux/cluster/ClusterState$Builder " %java/lang/invoke/MethodHandles$Lookup $ java/lang/invoke/MethodHandles & Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V - 0
1 ) * 3 + , 5 this ALcom/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService; settings .Lcom/groupbyinc/flux/common/settings/Settings;
deleteIndices ?(Lcom/groupbyinc/flux/action/admin/indices/delete/DeleteIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V Tcom/groupbyinc/flux/action/admin/indices/delete/DeleteIndexClusterStateUpdateRequest = indices $()[Lcom/groupbyinc/flux/index/Index; ? @
> A "java/lang/IllegalArgumentException C Index name is required E (Ljava/lang/String;)V - G
D H java/lang/StringBuilder J ()V - L
K M
delete-index O append -(Ljava/lang/String;)Ljava/lang/StringBuilder; Q R
K S java/util/Arrays U toString '([Ljava/lang/Object;)Ljava/lang/String; W X
V Y ()Ljava/lang/String; W [
K \ #com/groupbyinc/flux/common/Priority ^ URGENT %Lcom/groupbyinc/flux/common/Priority; ` a _ b(Lcom/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/delete/DeleteIndexClusterStateUpdateRequest;)V - d
e 2com/groupbyinc/flux/cluster/service/ClusterService g submitStateUpdateTask I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V i j
h k request VLcom/groupbyinc/flux/action/admin/indices/delete/DeleteIndexClusterStateUpdateRequest; listener iLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; e(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/ClusterState; metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; s t
u
java/util/Set w stream ()Ljava/util/stream/Stream; y z x { "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; ?
~ ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? lambda$deleteIndices$0 ?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? apply N(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Ljava/util/function/Function; ? ? ? java/util/stream/Stream ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ? ? ? ? java/util/stream/Collectors ? toSet ()Ljava/util/stream/Collector; ? ?
? ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? .com/groupbyinc/flux/snapshots/SnapshotsService ? checkIndexDeletion <(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)V ? ?
? ? routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ? ?
? builder n(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; ? ?
? h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
? ;()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
? blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
? l(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
? indexGraveyard 7()Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard; ? ?
? t(Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard;)Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard$Builder; ? ?
?
tombstones ()Ljava/util/List; ? ?
? java/util/List ? size ()I ? ? ? ? iterator ()Ljava/util/Iterator; ? ? x ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? com/groupbyinc/flux/index/Index ? getName ? [
? ? logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ? ? {} deleting index ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? info '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? remove N(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; ? ?
? removeIndexBlocks M(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
? K(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
?
addTombstones U(Ljava/util/Collection;)Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard$Builder; ? ?
? 9 : ? build e(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard; ? ?
? n(Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ?
e{} tombstones purged from the cluster state. Previous tombstone size: {}. Current tombstone size: {}. getNumPurged ?
java/lang/Integer valueOf (I)Ljava/lang/Integer;
getTombstones ?
trace K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? t
? ?
getCustoms 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;
restore custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; !
" -com/groupbyinc/flux/cluster/RestoreInProgress$ ,com/groupbyinc/flux/snapshots/RestoreService& $updateRestoreStateWithDeletedIndices o(Lcom/groupbyinc/flux/cluster/RestoreInProgress;Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/RestoreInProgress;()
'* t(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ?,
- put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;/0
1 ?
3 ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ?5
6 ? ?
8 f(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ?:
#; c(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; s=
#> e(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ?@
#A customs i(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder;CD
#E ,()Lcom/groupbyinc/flux/cluster/ClusterState; ?G
#H deleted indices [J -(Ljava/lang/Object;)Ljava/lang/StringBuilder; QL
KM ]O @com/groupbyinc/flux/cluster/routing/allocation/AllocationServiceQ reroute h(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState;ST
RU indexName Ljava/lang/String; index !Lcom/groupbyinc/flux/index/Index; ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; =Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; updatedRestoreInProgress /Lcom/groupbyinc/flux/cluster/RestoreInProgress; currentState *Lcom/groupbyinc/flux/cluster/ClusterState; 2Ljava/util/Set; Ljava/util/Set; meta /Lcom/groupbyinc/flux/cluster/metadata/MetaData; metaDatas ELjava/util/Set; routingTableBuilder :Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; metaDataBuilder 7Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; clusterBlocksBuilder 9Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; graveyardBuilder =Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard$Builder; previousGraveyardSize I currentGraveyard 5Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard; newMetaData 1Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; zLcom/groupbyinc/flux/common/collect/ImmutableOpenMap; 5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; restoreInProgress getIndexSafex ?
y i Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/action/admin/indices/delete/DeleteIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/ClusterState; BootstrapMethods
SourceFile InnerClasses ! ) * + , - . | d *+? 2*,? 4*-? 6? } * 7 8 9 : ) * + , ~ : ;
<