com.groupbyinc.flux.cluster.metadata.MetaDataMappingService.class Maven / Gradle / Ivy
???? 4? ;com/groupbyinc/flux/cluster/metadata/MetaDataMappingService 6com/groupbyinc/flux/common/component/AbstractComponent MetaDataMappingService.java Ncom/groupbyinc/flux/cluster/metadata/MetaDataMappingService$PutMappingExecutor PutMappingExecutor Ocom/groupbyinc/flux/cluster/metadata/MetaDataMappingService$RefreshTaskExecutor RefreshTaskExecutor Gcom/groupbyinc/flux/cluster/metadata/MetaDataMappingService$RefreshTask RefreshTask =com/groupbyinc/flux/cluster/metadata/MetaDataMappingService$1 :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder 2com/groupbyinc/flux/cluster/metadata/IndexMetaData Builder java/util/Map$Entry
java/util/Map Entry 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder -com/groupbyinc/flux/cluster/metadata/MetaData :com/groupbyinc/flux/index/mapper/MapperService$MergeReason .com/groupbyinc/flux/index/mapper/MapperService ! MergeReason Ocom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices $ >com/groupbyinc/flux/indices/cluster/IndicesClusterStateService & AllocatedIndices bcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason ) IndexRemovalReason 0com/groupbyinc/flux/cluster/ClusterState$Builder , (com/groupbyinc/flux/cluster/ClusterState . %java/lang/invoke/MethodHandles$Lookup 0 java/lang/invoke/MethodHandles 2 Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; refreshExecutor QLcom/groupbyinc/flux/cluster/metadata/MetaDataMappingService$RefreshTaskExecutor; putMappingExecutor PLcom/groupbyinc/flux/cluster/metadata/MetaDataMappingService$PutMappingExecutor; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V = @
A @(Lcom/groupbyinc/flux/cluster/metadata/MetaDataMappingService;)V = C
D 9 : F
D ; < I 5 6 K 7 8 M this =Lcom/groupbyinc/flux/cluster/metadata/MetaDataMappingService; settings .Lcom/groupbyinc/flux/common/settings/Settings; executeRefresh f(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/ClusterState; java/lang/Exception U java/util/HashMap W ()V = Y
X Z java/util/List \ iterator ()Ljava/util/Iterator; ^ _ ] ` java/util/Iterator b hasNext ()Z d e c f next ()Ljava/lang/Object; h i c j index Ljava/lang/String; l m
n logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; p q r 7ignoring a mapping task of type [{}] with a null index. t 6com/groupbyinc/flux/common/apache/logging/log4j/Logger v debug '(Ljava/lang/String;Ljava/lang/Object;)V x y w z "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$executeRefresh$0 $(Ljava/lang/String;)Ljava/util/List; ? ?
? ? ? apply ()Ljava/util/function/Function; ? ? ? computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object; ? ? ? add (Ljava/lang/Object;)Z ? ? ] ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
/ ? builder h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? ` getKey ? i ? java/lang/String ? get H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? 3[{}] ignoring tasks - index meta data doesn't exist ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? getValue ? i ? com/groupbyinc/flux/index/Index ? indexUUID ? m
?
isSameUUID (Ljava/lang/String;)Z ? ?
? ?{} ignoring task [{}] - index meta data doesn't match task uuid ? 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V x ? w ? *com/groupbyinc/flux/indices/IndicesService ? indexService K(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/index/IndexService; ? ?
? ? java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? 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_RECOVERY