com.groupbyinc.flux.cluster.routing.allocation.IndexMetaDataUpdater.class Maven / Gradle / Ivy
???? 4` Ccom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater Ycom/groupbyinc/flux/cluster/routing/RoutingChangesObserver$AbstractRoutingChangesObserver IndexMetaDataUpdater.java Ecom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$1 Kcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates Updates java/util/Map$Entry
java/util/Map
Entry :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder 2com/groupbyinc/flux/cluster/metadata/IndexMetaData Builder 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder -com/groupbyinc/flux/cluster/metadata/MetaData 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type 2com/groupbyinc/flux/cluster/routing/RecoverySource Type :com/groupbyinc/flux/cluster/routing/RoutingChangesObserver AbstractRoutingChangesObserver 9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason ! 2com/groupbyinc/flux/cluster/routing/UnassignedInfo # Reason 0com/groupbyinc/flux/cluster/ClusterState$Builder & (com/groupbyinc/flux/cluster/ClusterState ( %java/lang/invoke/MethodHandles$Lookup * java/lang/invoke/MethodHandles , Lookup shardChanges Ljava/util/Map; ?Ljava/util/Map; $assertionsDisabled Z ()V 4 5
6 java/util/HashMap 8
9 6 / 0 ; this ELcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater; shardInitialized g(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V 2 3 A 0com/groupbyinc/flux/cluster/routing/ShardRouting C isRelocationTarget ()Z E F
D G java/lang/AssertionError I java/lang/StringBuilder K
L 6 5shardInitialized is not called on relocation target: N append -(Ljava/lang/String;)Ljava/lang/StringBuilder; P Q
L R -(Ljava/lang/Object;)Ljava/lang/StringBuilder; P T
L U toString ()Ljava/lang/String; W X
L Y (Ljava/lang/Object;)V 4 [
J \ primary ^ F
D _ shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; a b
D c increasePrimaryTerm ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V e f
g changes x(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates; i j
k
access$000 ?(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; m n
o RPrimary cannot be initialized more than once in same allocation round: (previous: q , next: s ) u
access$002 ?(Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; w x
y updates MLcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates; unassignedShard 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; initializedShard shardStarted addAllocationId 5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V ? ?
? initializingShard startedShard shardFailed i(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)V active ? F
D ? getReason =()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ?
$ ? NODE_LEFT ;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ? " ? removeAllocationId ? ?
?
access$100 ? n
?
access$102 ? x
? failedShard unassignedInfo 4Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; relocationCompleted removedRelocationSource applyChanges ?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/metadata/MetaData; entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? stream ()Ljava/util/stream/Stream; ? ? ? ? "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$applyChanges$0 8(Ljava/util/Map$Entry;)Lcom/groupbyinc/flux/index/Index; ? ?
? ? ? apply ()Ljava/util/function/Function; ? ? ? java/util/stream/Collectors ?
groupingBy ;(Ljava/util/function/Function;)Ljava/util/stream/Collector; ? ?
? ? java/util/stream/Stream ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? F ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? com/groupbyinc/flux/index/Index ? getIndexSafe W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? getValue ? ? ? java/util/List ? ? ? 0com/groupbyinc/flux/cluster/routing/RoutingTable ? 'com/groupbyinc/flux/index/shard/ShardId ? updateInSyncAllocationsV(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ? ?
? updatePrimaryTerm$(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/routing/allocation/IndexMetaDataUpdater$Updates;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ? ?
? builder h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
? put u(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
? build 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? )Lcom/groupbyinc/flux/index/shard/ShardId;
shardEntry ?Ljava/util/Map$Entry; Ljava/util/Map$Entry; index !Lcom/groupbyinc/flux/index/Index; oldIndexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; indexMetaDataBuilder