All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.index.shard.StoreRecovery.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4?-com/groupbyinc/flux/index/shard/StoreRecoveryjava/lang/ObjectStoreRecovery.javaCcom/groupbyinc/flux/index/shard/StoreRecovery$StatsDirectoryWrapperStatsDirectoryWrapper7com/groupbyinc/flux/cluster/routing/RecoverySource$Type	2com/groupbyinc/flux/cluster/routing/RecoverySourceType8com/groupbyinc/flux/indices/recovery/RecoveryState$Index2com/groupbyinc/flux/indices/recovery/RecoveryStateIndexIcom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySourceSnapshotRecoverySource;com/groupbyinc/flux/indices/recovery/RecoveryState$TranslogTranslog:com/groupbyinc/flux/index/mapper/MapperService$MergeReason.com/groupbyinc/flux/index/mapper/MapperServiceMergeReasonIcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig$OpenMode@com/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig OpenMode>com/groupbyinc/flux/indices/recovery/RecoveryState$VerifyIndex#VerifyIndex8com/groupbyinc/flux/indices/recovery/RecoveryState$Timer&Timer%java/lang/invoke/MethodHandles$Lookup)java/lang/invoke/MethodHandles+Lookuplogger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;shardId)Lcom/groupbyinc/flux/index/shard/ShardId;$assertionsDisabledZd(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V()V46
7./	901	;this/Lcom/groupbyinc/flux/index/shard/StoreRecovery;recoverFromStore/(Lcom/groupbyinc/flux/index/shard/IndexShard;)Z
canRecoverA@
B*com/groupbyinc/flux/index/shard/IndexShardD
recoveryState6()Lcom/groupbyinc/flux/indices/recovery/RecoveryState;FG
EHgetRecoverySource6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource;JK
LgetType;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type;NO
P23	REMPTY_STORE9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type;TU	
VEXISTING_STOREXU	
Yjava/lang/AssertionError[java/lang/StringBuilder]
^7&expected store recovery type but was: `append-(Ljava/lang/String;)Ljava/lang/StringBuilder;bc
^d-(Ljava/lang/Object;)Ljava/lang/StringBuilder;bf
^gtoString()Ljava/lang/String;ij
^k(Ljava/lang/Object;)V4m
\n"java/lang/invoke/LambdaMetafactorypmetafactory?(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;rs
qtu6lambda$recoverFromStore$0/(Lcom/groupbyinc/flux/index/shard/IndexShard;)Vxy
z{runq(Lcom/groupbyinc/flux/index/shard/StoreRecovery;Lcom/groupbyinc/flux/index/shard/IndexShard;)Ljava/lang/Runnable;}~executeRecoveryC(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;)Zjava/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$1W(Lcom/groupbyinc/flux/index/shard/LocalShardSnapshot;)Lcom/groupbyinc/flux/index/Index;??
???apply()Ljava/util/function/Function;???java/util/stream/Stream?map8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????java/util/stream/Collectors?toSet()Ljava/util/stream/Collector;??
??collect0(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?getIndexMetaData6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
??2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getMappings7()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?keyLjava/lang/Object;??	??value??	??java/util/function/BiConsumer?accept'(Ljava/lang/Object;Ljava/lang/Object;)V????
mapperService2()Lcom/groupbyinc/flux/index/mapper/MapperService;??
E?MAPPING_RECOVERY;ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;indices2Ljava/util/Set;Ljava/util/Set;
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;	indexSort6Lcom/groupbyinc/flux/common/apache/lucene/search/Sort;mappingUpdateConsumeriLjava/util/function/BiConsumer;Ljava/util/function/BiConsumer;shardsFLjava/util/List;Ljava/util/List;
addIndices?(Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Index;Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Lcom/groupbyinc/flux/common/apache/lucene/search/Sort;[Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;JJ)Vjava/lang/ThrowableKcom/groupbyinc/flux/common/apache/lucene/store/HardlinkCopyDirectoryWrapper =(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)V4"
!#?(Lcom/groupbyinc/flux/common/apache/lucene/analysis/Analyzer;)V4%
!&setCommitOnCloseE(Z)Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig;()
!*?
!@8com/groupbyinc/flux/common/apache/lucene/store/DirectoryB:com/groupbyinc/flux/common/apache/lucene/index/IndexWriterDw(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Index;)V4F
G(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig;)V4I
EJ
addIndexes>([Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)JLM
EN?lambda$addIndices$4(JJ)Ljava/util/Iterator;QR
ST(JJ)Ljava/lang/Iterable;?VWsetLiveCommitData(Ljava/lang/Iterable;)VYZ
E[commit()J]^
E_closea6
Eb4com/groupbyinc/flux/common/apache/lucene/search/Sortd;[Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;f
addSuppressed(Ljava/lang/Throwable;)Vhi
jwriterincRef@6
?AfailIfCorruptedC6
?DreadLastCommittedSegmentsInfo?()Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos;FG
?H;com/groupbyinc/flux/common/apache/lucene/index/SegmentInfosJ	_unknown_L	directory<()Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;NO
?PlistAll()[Ljava/lang/String;RS
CTjava/util/ArraysV'([Ljava/lang/Object;)Ljava/lang/String;iX
WYjava/lang/String[
?j
 (failure=^$com/groupbyinc/flux/ExceptionsHelper`detailedMessage)(Ljava/lang/Throwable;)Ljava/lang/String;bc
ad)fYshard allocated for local recovery (post api), should exist, but doesn't, current files: h
getVersionj^
Kk)cleaning existing shard, shouldn't existsm??o(com/groupbyinc/flux/common/lucene/LuceneqcleanLuceneIndexs"
rt3failed to fetch index version after copying it overv
updateVersionx?
y
\7skipTranslogRecovery|6
E}addRecoveredFileDetails?(Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos;Lcom/groupbyinc/flux/index/store/Store;Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Index;)V?
?failed to list file details?*(Ljava/lang/String;Ljava/lang/Throwable;)V???performTranslogRecovery(Z)V??
E?shardRouting2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;??	E?*only primary shards can recover from store?	getEngine+()Lcom/groupbyinc/flux/index/engine/Engine;??
E?getPrimaryTerm?^
E?'com/groupbyinc/flux/index/engine/Engine?
fillSeqNoGaps(J)I??
??finalizeRecovery?6
E?post recovery from shard_store?postRecovery@(Ljava/lang/String;)Lcom/groupbyinc/flux/index/shard/IndexShard;??
E?decRef?6
??failed to recover from gateway?innerfilesLjava/lang/String;Ljava/io/IOException;indexShouldExistsversionsi=Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos;'Lcom/groupbyinc/flux/index/store/Store;S(Lcom/groupbyinc/flux/common/apache/lucene/index/SegmentInfos;)Ljava/lang/Iterable;??
r?java/lang/Iterable???
fileLength(Ljava/lang/String;)J??
C?
addFileDetail(Ljava/lang/String;JZ)V??
?lengthnamerestoreDcom/groupbyinc/flux/index/snapshots/IndexShardRestoreFailedException?empty restore source?>(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)V4?
??[{}] restoring shard [{}]?snapshot*()Lcom/groupbyinc/flux/snapshots/Snapshot;??
?totalOperations(I)V??
?totalOperationsOnStart??
?(j
?'com/groupbyinc/flux/index/shard/ShardId?getIndexName?j
??equals(Ljava/lang/Object;)Z??
\?_na_?id??
??((Ljava/lang/String;Ljava/lang/String;I)V4?
??+com/groupbyinc/flux/repositories/Repository?getRepositoryData3()Lcom/groupbyinc/flux/repositories/RepositoryData;????/com/groupbyinc/flux/repositories/RepositoryData?resolveIndexId>(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/IndexId;??
??&com/groupbyinc/flux/snapshots/Snapshot?
getSnapshotId,()Lcom/groupbyinc/flux/snapshots/SnapshotId;??
??()Lcom/groupbyinc/flux/Version;?
restoreShard?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/repositories/IndexId;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/indices/recovery/RecoveryState;)V?restore donerestore failed	
??snapshotShardId	indexNameindexId*Lcom/groupbyinc/flux/repositories/IndexId;
restoreSource
translogState=Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Translog;restoring from {} ...??
java/util/HashMap4?

max_seq_nojava/lang/Long(J)Ljava/lang/String;i
 put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"#
$local_checkpoint&max_unsafe_auto_id_timestamp(entrySet()Ljava/util/Set;*+
,??liveCommitData9Ljava/util/HashMap;Ljava/util/HashMap;&starting recovery from local shards {}2getSnapshotDirectory4O
?56p(Lcom/groupbyinc/flux/index/shard/LocalShardSnapshot;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;8??
lambda$null$2>(I)[Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;<=
>?="()Ljava/util/function/IntFunction;?BCtoArray5(Ljava/util/function/IntFunction;)[Ljava/lang/Object;EF?G(Ljava/lang/Object;)JIs^
?KL7(Lcom/groupbyinc/flux/index/shard/LocalShardSnapshot;)JNapplyAsLong%()Ljava/util/function/ToLongFunction;PQR	mapToLongB(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;TU?Vjava/util/stream/LongStreamXmax()Ljava/util/OptionalLong;Z[Y\java/util/OptionalLong^	getAsLong`^
_au^
?cdR
g2y
i
forceMerge(ZIZZZ)Vkl
?m+()Lcom/groupbyinc/flux/index/shard/ShardId;0o
Ep#failed to recover from local shardsrexx$0I#()Lcom/groupbyinc/flux/index/Index;?w
?xs4Lcom/groupbyinc/flux/index/shard/LocalShardSnapshot; starting recovery from store ...|??~java/lang/Class?desiredAssertionStatus??
??CodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable
Exceptions	Signature?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/util/List;)ZBootstrapMethods
SourceFileInnerClasses0./012345?Y*?8*,?:*+?01./?HI	JK?@??Q*+?C?J+?I?M?QM?S?,,?W?%,?Z??\Y?^Y?_a?e,?h?l?o?*+*+??????? <?UQ=>Q???WXYB[O`??B
?????	?*,?C??,?I?M?Q:?S?'????\Y?^Y?_??e?h?l?o?-???
??Y????-????????????:???
??Yŷ??-???˶?:?ն?:???"????:+?????????,??????,?:*,*-,??????\	???Unz?V??=>??????*?
nz???Bdef>gGhQjnkyl?n?o?p?q?r?t?u????>
?1?????(?"?????+??!Y,?$:	?!Y?'?+?1?5?9?=:
-?

-?AW?EY?Y	+?H
?K::?OX?X?\?`X?U??c?H:

?k?<?c?4:

:
?:?!??c?:?k??c??mruGc?Gc????????f
Dvlm?=>?no?pq??rf?st?ut
?vq	$?wx
?>?
????$?(?/?G?O?]?c?????????	?/C!?ECegC!EGH?
CegC!E?	CegC!??yz??Z*+?C?S+?I?M?QN?S?&-?}??\Y?^Y?_?e-?h?l?o?+?I?M?:*+*+,???????4E?UH??Z=>Z??Z???<HX
??<
?A@?v(+??????+???????Y*?<??????(=>(???
&????`?,??+??N+?I:?S?@-???
-???2?\Y?^Y?_??e*?????01??#!"#T%`&g'p(?)?*?+?,?-?./#061L2d3}4?5?7?8?9?;?=???A?B?I?C?D?F?H?J?K?%?.?+"?E?????E?%C??????2y???+?IM,?M?Q?W??>+?787:+?=:?B?E?I:?o:M:	?Q?U?Z:	?1:

?]?^Y?_	?e_?e
?e?eg?e?l:	?&??Y*??ERU?/???.1?/y?4/y??/y??????W,?/
Ee??	@j-/?-/(o3-??-/?=>????F,??3!~?t${??*u:???1QRST!U$V*W/Z4\;h>]@^E`RdUaWb^c?e?f?i?j?k?o?p?q?v?t?u?w?xyz~$?.?1?3?A?F?a?m?q?y?~??????????d?@?&EK???	EK??\?-?&B?'B?S?R	?????	=,?Q:+????:???$???\:??7-?ç?ر?H0	?t'??==>=??=:?=(o7Nq???'?0?9?<???C??*???????+?I?:-???Y*?<ʷͿ*?:???*?:?-??*?????????	??V?	?
??(?<?B?H?L?R?X?g?|??????????????????,????\?9E?????k*?:+?I?M?*+,-???*=>???????
QR????????6
v
xy5zO{P|i}}~???????????	???
<=?/?C??uv?y
???/*?y??z{?jxy?N*?:}?*+?j??=>???\]^?6?4?????S??C?@?\	vw|wv???vwwvPUPvw?wv?79v;@AvJMOvJeO??R


@			@!"@$%	'(	*,-




© 2015 - 2025 Weber Informatics LLC | Privacy Policy