com.groupbyinc.flux.index.shard.StoreRecovery.class Maven / Gradle / Ivy
???? 4? -com/groupbyinc/flux/index/shard/StoreRecovery java/lang/Object StoreRecovery.java Ccom/groupbyinc/flux/index/shard/StoreRecovery$StatsDirectoryWrapper StatsDirectoryWrapper 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type 2com/groupbyinc/flux/cluster/routing/RecoverySource Type 8com/groupbyinc/flux/indices/recovery/RecoveryState$Index 2com/groupbyinc/flux/indices/recovery/RecoveryState Index Icom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySource SnapshotRecoverySource ;com/groupbyinc/flux/indices/recovery/RecoveryState$Translog Translog :com/groupbyinc/flux/index/mapper/MapperService$MergeReason .com/groupbyinc/flux/index/mapper/MapperService MergeReason Icom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig$OpenMode @com/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig OpenMode >com/groupbyinc/flux/indices/recovery/RecoveryState$VerifyIndex # VerifyIndex 8com/groupbyinc/flux/indices/recovery/RecoveryState$Timer & Timer %java/lang/invoke/MethodHandles$Lookup ) java/lang/invoke/MethodHandles + Lookup logger !Lorg/apache/logging/log4j/Logger; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; $assertionsDisabled Z M(Lcom/groupbyinc/flux/index/shard/ShardId;Lorg/apache/logging/log4j/Logger;)V ()V 4 6
7 . / 9 0 1 ; this /Lcom/groupbyinc/flux/index/shard/StoreRecovery; recoverFromStore /(Lcom/groupbyinc/flux/index/shard/IndexShard;)Z
canRecover A @
B *com/groupbyinc/flux/index/shard/IndexShard D
recoveryState 6()Lcom/groupbyinc/flux/indices/recovery/RecoveryState; F G
E H getRecoverySource 6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource; J K
L getType ;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; N O
P 2 3 R EMPTY_STORE 9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; T U
V EXISTING_STORE X U
Y java/lang/AssertionError [ java/lang/StringBuilder ]
^ 7 &expected store recovery type but was: ` append -(Ljava/lang/String;)Ljava/lang/StringBuilder; b c
^ d -(Ljava/lang/Object;)Ljava/lang/StringBuilder; b f
^ g toString ()Ljava/lang/String; i j
^ k (Ljava/lang/Object;)V 4 m
\ n "java/lang/invoke/LambdaMetafactory p 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; r s
q t u 6 lambda$recoverFromStore$0 /(Lcom/groupbyinc/flux/index/shard/IndexShard;)V x y
z { run q(Lcom/groupbyinc/flux/index/shard/StoreRecovery;Lcom/groupbyinc/flux/index/shard/IndexShard;)Ljava/lang/Runnable; } ~ executeRecovery C(Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/lang/Runnable;)Z ? ?
? recoveryType
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard; recoverFromLocalShards ^(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/util/List;)Z java/io/IOException ? LOCAL_SHARDS ? U
? %expected local shards recovery type: ? java/util/List ? isEmpty ()Z ? ? ? ? "java/lang/IllegalArgumentException ? shards must not be empty ? (Ljava/lang/String;)V 4 ?
? ? stream ()Ljava/util/stream/Stream; ? ? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? lambda$recoverFromLocalShards$1 W(Lcom/groupbyinc/flux/index/shard/LocalShardSnapshot;)Lcom/groupbyinc/flux/index/Index; ? ?
? ? ? apply ()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; ? ? ? ?
java/util/Set ? size ()I ? ? ? ? )can't add shards from more than one index ? get (I)Ljava/lang/Object; ? ? ? ? 2com/groupbyinc/flux/index/shard/LocalShardSnapshot ? getIndexMetaData 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? getMappings 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; ? ?
? ? 3com/groupbyinc/flux/common/collect/ImmutableOpenMap ? iterator ()Ljava/util/Iterator; ? ?
? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor ? key Ljava/lang/Object; ? ? ? ? java/lang/String ? value ? ? ? ? 4com/groupbyinc/flux/cluster/metadata/MappingMetaData ? java/util/function/BiConsumer ? accept '(Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ?
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService; ? ?
E ? MAPPING_RECOVERY