com.groupbyinc.flux.cluster.metadata.MetaDataUpdateSettingsService$1.class Maven / Gradle / Ivy
???? 4? Dcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService$1 wLcom/groupbyinc/flux/cluster/AckedClusterStateUpdateTask; 7com/groupbyinc/flux/cluster/AckedClusterStateUpdateTask "MetaDataUpdateSettingsService.java Bcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService updateSettings ?(Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings 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 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 2com/groupbyinc/flux/cluster/metadata/IndexMetaData State :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder " 0com/groupbyinc/flux/cluster/ClusterState$Builder $ (com/groupbyinc/flux/cluster/ClusterState & %java/lang/invoke/MethodHandles$Lookup ( java/lang/invoke/MethodHandles * Lookup val$request _Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest; val$skippedSettings Ljava/util/Set; val$openSettings .Lcom/groupbyinc/flux/common/settings/Settings; val$preserveExisting Z val$closedSettings this$0 DLcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService; ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest;Ljava/util/Set;Lcom/groupbyinc/flux/common/settings/Settings;ZLcom/groupbyinc/flux/common/settings/Settings;)V 6 7 : - . < / 0 > 1 2 @ 3 4 B 5 2 D ?(Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 8 F
G this FLcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService$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 T (Z)V 8 V
U W acknowledged execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; java/io/IOException \ routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ^ _
' ` builder n(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; b c
d metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; f g
' h h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; b j
k java/util/HashSet m ()V 8 o
n p ]com/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest r indices $()[Lcom/groupbyinc/flux/index/Index; t u
s v java/lang/String x
java/util/Set z [Ljava/lang/String; | com/groupbyinc/flux/index/Index ~ getName ()Ljava/lang/String; ? ?
? getIndexSafe W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? getState <()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; ? ?
? OPEN :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; ? ? ? add (Ljava/lang/Object;)Z ? ? { ? isEmpty ()Z ? ? { ? "java/lang/IllegalArgumentException ? java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? :Can't update non dynamic settings [%s] for open indices %s ? java/lang/Object ? format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
y ? (Ljava/lang/String;)V 8 ?
? ? index.number_of_replicas ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; ? ?
? intValue ()I ? ?
? ? updateNumberOfReplicas P(I[Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; ? ?
? M(I[Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
?
access$000 g(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lorg/apache/logging/log4j/Logger; ? ?
? 2updating number_of_replicas to [{}] for indices {} ? org/apache/logging/log4j/Logger ? info 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? ;()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; b ?
? blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
' ? l(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
? INDEX_READ_ONLY_BLOCK 0Lcom/groupbyinc/flux/cluster/block/ClusterBlock; ? ? ? INDEX_READ_ONLY_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ? ? ?
access$100 ?([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;Lcom/groupbyinc/flux/cluster/block/ClusterBlock;Lcom/groupbyinc/flux/common/settings/Setting;Lcom/groupbyinc/flux/common/settings/Settings;)V ? ?
? "INDEX_READ_ONLY_ALLOW_DELETE_BLOCK ? ? ? +INDEX_BLOCKS_READ_ONLY_ALLOW_DELETE_SETTING ? ? ? INDEX_METADATA_BLOCK ? ? ? INDEX_BLOCKS_METADATA_SETTING ? ? ? INDEX_WRITE_BLOCK ? ? ? INDEX_BLOCKS_WRITE_SETTING ? ? ? INDEX_READ_BLOCK ? ? ? INDEX_BLOCKS_READ_SETTING ? ? ? iterator ()Ljava/util/Iterator; ? ? { ? java/util/Iterator hasNext ? next ()Ljava/lang/Object; getSafe ?
8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; b
getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;
put f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;
access$200 (Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;
7com/groupbyinc/flux/common/settings/IndexScopedSettings updateDynamicSettings ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Ljava/lang/String;)Z
build!
" "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;&'
%() ? lambda$execute$0 (Ljava/lang/String;)Z,-
./- test f(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService$1;)Ljava/util/function/Predicate;23 4 filter N(Ljava/util/function/Predicate;)Lcom/groupbyinc/flux/common/settings/Settings;67
8 validate 2(Lcom/groupbyinc/flux/common/settings/Settings;Z)V:;
< r(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; b>
? settings l(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;AB
#C u(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;E
F
H lambda$execute$1J-
KL 4 ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; bO
'P k(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; fR
%S! _
U f(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ^W
%X m(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ?Z
%[ ,()Lcom/groupbyinc/flux/cluster/ClusterState;!]
%^
access$300 ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;`a
b settings updated @com/groupbyinc/flux/cluster/routing/allocation/AllocationServicef reroute h(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState;hi
gj getMetaDatal g
'm
access$400 r(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lcom/groupbyinc/flux/indices/IndicesService;op
q *com/groupbyinc/flux/indices/IndicesServices verifyIndexMetadata k(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Vuv
tw $com/groupbyinc/flux/ExceptionsHelpery convertToElastic C(Ljava/lang/Exception;)Lcom/groupbyinc/flux/ElasticsearchException;{|
z} index !Lcom/groupbyinc/flux/index/Index; 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; i I
finalSettings
indexMetaData updates 6Lcom/groupbyinc/flux/common/settings/Settings$Builder;
indexSettings currentMetaData updatedMetaData ex Ljava/io/IOException; currentState *Lcom/groupbyinc/flux/cluster/ClusterState; routingTableBuilder :Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; metaDataBuilder 7Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; openIndices 2Ljava/util/Set; closeIndices
actualIndices updatedNumberOfReplicas 9Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; updatedState (Z)Ljava/lang/Object; R S
? isPrivateSetting?-
? k Ljava/lang/String; Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable BootstrapMethods Signature
SourceFile EnclosingMethod InnerClasses - . / 0 1 2 3 4 5 2 6 7 8 9 ? ?
,*+? ;*? =*? ?*? A*? C* ? E*,-? H? ? 4 , I J , 6 7 , K L , M N , O Q ? , O P ? l R S ? = ? UY? X? ? I J Y 4 ? p Z [ ? ? u+? a? eM+? i? lN? nY? q:? nY? q:*? =? w?? y:6*? =? w?? L*? =? w2:? ?S+? i? ?: ? ?? ?? ? ? W?
? ? W????*? ?? ? ? -? ? ? #? ?Y? ??? ?Y*? ?SYS? ?? ??*? A?? ?? ?? ?6? 1*? C? *,? ?W-? ?W*? ;? ??? ?? ? ? ?+? Զ ?:? ۲ ?*? A? ?? ? ?*? A? ?? ? ?*? A? ?? ? ?*? A? ?? ?? ?*? A? ?? ? ? ?? ? : ? ? ? ? ? :
-
?:?:???:
*? ;?*? A
? ?? ? A*? C?
??W
?#:*? ;?*?5 ?9?=-?@?D?GW??x? ? ? ?? ? : ? ? ? ? ? :
-
?:?:???:
*? ;?*? E
? ??I? A*? C?
??W
?#:*? ;?*?N ?9?=-?@?D?GW??x+?Q-?T,?V?Y?\?_: *? ;?c e?k: ? ? :
? ? 7
? ? :+?n? ?: ? i? ?:
*? ;?r
?x???? ? :
? ? E
? ? :+?n? ?: ? i? ?:
*? ;?r
?x*? ;?r
?x???? :
?~? ? ?gj ] ? . K 7? ` " f? 2 V?? ? %? 2 ? j?? ? e?? ? X??
? r?
y %? 2 4 j?? 9 e?? F X??
, r?
? ?? ??
? %? <