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

com.groupbyinc.flux.indices.recovery.RecoveryTarget.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4d3com/groupbyinc/flux/indices/recovery/RecoveryTarget=com/groupbyinc/flux/common/util/concurrent/AbstractRefCounted:com/groupbyinc/flux/indices/recovery/RecoveryTargetHandlerRecoveryTarget.javaOcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener>com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService
RecoveryListener8com/groupbyinc/flux/indices/recovery/RecoveryState$Stage
2com/groupbyinc/flux/indices/recovery/RecoveryStateStageNcom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException2com/groupbyinc/flux/common/util/CancellableThreadsExecutionCancelledExceptionjava/util/Map$Entry
java/util/MapEntryFcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext7com/groupbyinc/flux/index/seqno/GlobalCheckpointTrackerPrimaryContext.com/groupbyinc/flux/index/engine/Engine$Result!'com/groupbyinc/flux/index/engine/Engine#Result5com/groupbyinc/flux/index/translog/Translog$Operation&+com/groupbyinc/flux/index/translog/Translog(	Operation;com/groupbyinc/flux/indices/recovery/RecoveryState$Translog+Translog8com/groupbyinc/flux/indices/recovery/RecoveryState$Index.Index6com/groupbyinc/flux/index/store/Store$MetadataSnapshot1%com/groupbyinc/flux/index/store/Store3MetadataSnapshot@com/groupbyinc/flux/common/util/CancellableThreads$Interruptable6
Interruptable1com/groupbyinc/flux/index/engine/Engine$Operation98com/groupbyinc/flux/index/engine/Engine$Operation$Origin;Origin%java/lang/invoke/MethodHandles$Lookup>java/lang/invoke/MethodHandles@Lookuplogger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;idGenerator(Ljava/util/concurrent/atomic/AtomicLong;RECOVERY_PREFIXLjava/lang/String;	recovery.IshardId)Lcom/groupbyinc/flux/index/shard/ShardId;
recoveryIdJ
indexShard,Lcom/groupbyinc/flux/index/shard/IndexShard;
sourceNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;tempFilePrefixstore'Lcom/groupbyinc/flux/index/store/Store;listenerQLcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;!ensureClusterStateVersionCallback!Ljava/util/function/LongConsumer;finished+Ljava/util/concurrent/atomic/AtomicBoolean;openIndexOutputs$Ljava/util/concurrent/ConcurrentMap;tLjava/util/concurrent/ConcurrentMap;cancellableThreads4Lcom/groupbyinc/flux/common/util/CancellableThreads;lastAccessTimeclosedLatch%Ljava/util/concurrent/CountDownLatch;
tempFileNamesLjava/util/Map;5Ljava/util/Map;$assertionsDisabledZ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;Ljava/util/function/LongConsumer;)Vrecovery_statusk(Ljava/lang/String;)Vim
n)java/util/concurrent/atomic/AtomicBooleanp()Vir
qsZ[	u@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollectionswnewConcurrentMap&()Ljava/util/concurrent/ConcurrentMap;yz
x{\]	}java/lang/SystemnanoTime()J??
??aN	?#java/util/concurrent/CountDownLatch?(I)Vi?
??bc	?de	?
s_`	?EF	?&java/util/concurrent/atomic/AtomicLong?incrementAndGet??
??MN	?VW	?java/lang/Object?getClass()Ljava/lang/Class;??
??*com/groupbyinc/flux/index/shard/IndexShard?
indexSettings+()Lcom/groupbyinc/flux/index/IndexSettings;??
??'com/groupbyinc/flux/index/IndexSettings?getSettings0()Lcom/groupbyinc/flux/common/settings/Settings;??
??+()Lcom/groupbyinc/flux/index/shard/ShardId;K?
??java/lang/String?*com/groupbyinc/flux/common/logging/Loggers?	getLogger?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;??
??CD	?OP	?QR	?KL	?java/lang/StringBuilder?
?sappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? com/groupbyinc/flux/common/UUIDs?randomBase64UUID()Ljava/lang/String;??
??.?toString??
??SH	?)()Lcom/groupbyinc/flux/index/store/Store;T?
??TU	?XY	?incRef?r
4?
recoveryStats4()Lcom/groupbyinc/flux/index/recovery/RecoveryStats;??
??0com/groupbyinc/flux/index/recovery/RecoveryStats?incCurrentAsTarget?r
??this5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;	retryCopy7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;ij
?.()Lcom/groupbyinc/flux/index/shard/IndexShard;ensureRefCount?r
?2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;state6()Lcom/groupbyinc/flux/indices/recovery/RecoveryState;
recoveryState??
??6()Lcom/groupbyinc/flux/common/util/CancellableThreads;setLastAccessTimestage<()Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Stage;??
?getStage?
renameAllTempFilesjava/io/IOExceptionrenameTempFilesSafe(Ljava/util/Map;)V
4
resetRecovery7(Lcom/groupbyinc/flux/common/util/CancellableThreads;)Z
compareAndSet(ZZ)Z
q+reset of recovery with shard {} and id [{}]java/lang/LongvalueOf(J)Ljava/lang/Long;
6com/groupbyinc/flux/common/apache/logging/log4j/Loggerdebug9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VdecRefr
java/lang/Throwable!"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;%&
$'(rawait+r
?,-runi(Ljava/util/concurrent/CountDownLatch;)Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;/01executeE(Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;)V34
5enew recovery target cancelled for shard {} while waiting on old recovery target with id [{}] to close7trace9:
getPrimary()Z<=
>FINALIZE:Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Stage;@A	BDONEDA	Egh	Gjava/lang/AssertionErrorI8recovery should not have completed when it's being resetK(Ljava/lang/Object;)ViM
JNjava/lang/IllegalStateExceptionPHcannot reset recovery as previous attempt made it past finalization stepR
QnperformRecoveryRestartUr
?VePLcom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException;newTargetCancellableThreadscancel recovery canceled (reason: [{}])\'(Ljava/lang/String;Ljava/lang/Object;)V^_[m
areasonfailB(Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)VnotifyListenerfe
gfailed recovery [i$com/groupbyinc/flux/ExceptionsHelperk
stackTrace)(Ljava/lang/Throwable;)Ljava/lang/String;mn
lo]qLcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;sendShardFailureonRecoveryFailurev(Lcom/groupbyinc/flux/indices/recovery/RecoveryState;Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)Vwx	y
markAsDoneisEmpty|=}#not all temporary files are renamedpeer recovery done?postRecovery@(Ljava/lang/String;)Lcom/groupbyinc/flux/index/shard/IndexShard;??
??onRecoveryDone7(Lcom/groupbyinc/flux/indices/recovery/RecoveryState;)V??	?getTempNameForFile&(Ljava/lang/String;)Ljava/lang/String;origFilegetOpenIndexOutputP(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;"java/util/concurrent/ConcurrentMap?get&(Ljava/lang/Object;)Ljava/lang/Object;????:com/groupbyinc/flux/common/apache/lucene/store/IndexOutput?keyremoveOpenIndexOutputsremove????nameopenAndPutIndexOutput?(Ljava/lang/String;Lcom/groupbyinc/flux/index/store/StoreFileMetaData;Lcom/groupbyinc/flux/index/store/Store;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;??
?containsKey(Ljava/lang/Object;)Z???output for file [?] has already been created?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???8com/groupbyinc/flux/common/apache/lucene/store/IOContext?DEFAULT:Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;??	??createVerifyingOutput?(Ljava/lang/String;Lcom/groupbyinc/flux/index/store/StoreFileMetaData;Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;??
4???fileNamemetaData3Lcom/groupbyinc/flux/index/store/StoreFileMetaData;tempFileNameindexOutput;Ljava/util/Map$Entry;file{Ljava/util/Iterator;>;Ljava/util/Iterator;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?
? [(J)Ljava/lang/StringBuilder;?	
?
refCount()I
*com/groupbyinc/flux/ElasticsearchException^RecoveryStatus is used but it's refcount is 0. Probably a mismatch between incRef/decRef calls((Ljava/lang/String;[Ljava/lang/Object;)Vi
prepareForTranslogOperationsgetTranslog?()Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Translog;
totalOperations?
,O?
skipTranslogRecovery!r
?"totalTranslogOpsIfinalizeRecovery(J)Vfinalizing recovery(updateGlobalCheckpointOnReplica(JLjava/lang/String;)V*+
?,&r
?.globalCheckpointensureClusterStateVersionjava/util/function/LongConsumer2accept4'35clusterStateVersionhandoffPrimaryContextK(Lcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext;)VactivateWithPrimaryContext:9
?;primaryContextHLcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext;indexTranslogOperations(Ljava/util/List;I)J
Js3()Lcom/groupbyinc/flux/index/shard/IndexShardState;?B
?C/com/groupbyinc/flux/index/shard/IndexShardStateE
RECOVERING1Lcom/groupbyinc/flux/index/shard/IndexShardState;GH	FI@com/groupbyinc/flux/index/shard/IndexShardNotRecoveringExceptionK](Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/IndexShardState;)ViM
LNjava/util/ListPQ?
PEER_RECOVERY:Lcom/groupbyinc/flux/index/engine/Engine$Operation$Origin;ST	<UM lambda$indexTranslogOperations$1d(Lcom/groupbyinc/flux/index/translog/Translog$Operation;Lcom/groupbyinc/flux/index/mapper/Mapping;)VXY
Z[-(Lcom/groupbyinc/flux/index/mapper/Mapping;)V]V(Lcom/groupbyinc/flux/index/translog/Translog$Operation;)Ljava/util/function/Consumer;4_`applyTranslogOperation?(Lcom/groupbyinc/flux/index/translog/Translog$Operation;Lcom/groupbyinc/flux/index/engine/Engine$Operation$Origin;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/index/engine/Engine$Result;bc
?d
hasFailuref=
"g5unexpected failure while replicating translog entry: i
getFailure()Ljava/lang/Exception;kl
"mreThrowIfNotNull(Ljava/lang/Throwable;)Zop
lqsizes
QtincrementRecoveredOperationsv?
,wsyncyr
?zafterWriteOperation|r
?}getLocalCheckpoint?
??result0Lcom/groupbyinc/flux/index/engine/Engine$Result;	operation7Lcom/groupbyinc/flux/index/translog/Translog$Operation;
operationsILjava/util/List;Ljava/util/List;translog=Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Translog;receiveFileInfoD(Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;I)VgetIndex<()Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Index;??
?(I)Ljava/lang/Object;??Q?	longValue??
?
addFileDetail(Ljava/lang/String;JZ)V??
/?totalOperationsOnStart??
,?iphase1FileNames$Ljava/util/List;phase1FileSizes"Ljava/util/List;phase1ExistingFileNamesphase1ExistingFileSizesindex:Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Index;
cleanFiles<(ILcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;)VDcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexException?Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException?Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldException?r
?
?!recovery CleanFilesRequestHandler?cleanupAndVerifyM(Ljava/lang/String;Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;)V??
4?removeCorruptionMarker?r
4?	directory<()Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;??
4?(com/groupbyinc/flux/common/lucene/Lucene?cleanLuceneIndex=(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)V??
??Failed to clean lucene index?*(Ljava/lang/String;Ljava/lang/Throwable;)V??
addSuppressed(Ljava/lang/Throwable;)V??
?failed to clean after recovery?^(Lcom/groupbyinc/flux/indices/recovery/RecoveryState;Ljava/lang/String;Ljava/lang/Throwable;)Vi?
t?de
?rfeexLjava/io/IOException;sourceMetaData8Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;writeFileChunkj(Lcom/groupbyinc/flux/index/store/StoreFileMetaData;JLcom/groupbyinc/flux/common/bytes/BytesReference;ZI)V1com/groupbyinc/flux/index/store/StoreFileMetaData???
????
???
?/com/groupbyinc/flux/common/bytes/BytesReference?B()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefIterator;??
??>com/groupbyinc/flux/common/apache/lucene/util/BytesRefIterator?:()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;????6com/groupbyinc/flux/common/apache/lucene/util/BytesRef?bytes[B??	??offset?%	??length?%	??
writeBytes([BII)V??
???
??addRecoveredBytesToFile(Ljava/lang/String;J)V
/getFilePointer?
???
?verify?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V	

48com/groupbyinc/flux/common/apache/lucene/store/Directory
listAll()[Ljava/lang/String;
java/util/ArraysasList%([Ljava/lang/Object;)Ljava/util/List;
contains?Qexpected: [] in '([Ljava/lang/Object;)Ljava/lang/String;? 
!java/util/Collections#	singleton#(Ljava/lang/Object;)Ljava/util/Set;%&
$'(Ljava/util/Collection;)Vy)
*??
,temporaryFileNamefileMetaDatapositioncontent1Lcom/groupbyinc/flux/common/bytes/BytesReference;	lastChunk
indexState@Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefIterator;scratch8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;translogLocation()Ljava/nio/file/Path;	shardPath-()Lcom/groupbyinc/flux/index/shard/ShardPath;:;
?<)com/groupbyinc/flux/index/shard/ShardPath>resolveTranslog@9
?A0com/groupbyinc/flux/index/mapper/MapperExceptionC!mapping updates are not allowed [E
Dnupdate*Lcom/groupbyinc/flux/index/mapper/Mapping;Lcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessageJ(error while closing recovery output [{}]Li^
KNjava/lang/ClassQdesiredAssertionStatusS=
RT
?s
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
Exceptions
StackMapTableLocalVariableTypeTableM(Ljava/util/List;I)J?(Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;I)VBootstrapMethods
SourceFileInnerClasses!CDEFGHWJKLMNOPQRSHTUVWXYZ[\]X^_`BaNbcdeXfgh%ijYM?*l?o*?qY?t?v*?|?~*????*??Y????*?|??*?Y????*??????*-??**??+????+????????*+??*,??*+????*??Y??J?ɸ϶?ѶɶԵ?*+?ٵ?*??*?۶?+???Z4????OP?QR?VW?XY[NsXZ^a+c2t=uGvLwfxkypzx{?|?}???????YB?Y*??*??*??*?ݷ?Z??[?M?Y/*???Z??[?K?Y/*?°Z??[?O?Y7	*??*???Z	??[
??Q?Y/*???Z??[???Y2*?????Z??[?_?Y/*???Z??[?a?Y/*???Z??[??rY6*?????Z??[
??T?Y7	*??*?۰Z	??[
????Y2*????Z??[?rYB*??*??*???	?Z??[???\
Yq?*?v???*??*??*????*? ?
M*? ,?+*??Y??W?2?6?M*??8*??*????;?*?????M*???????4,?C?
,?F?&?H?,?F??JYL?O??QYS?T?*???W??#*1CFZ*GXYkG?A????Z`[N??#?'?*?1?C?F?G?V?Y?^?`?k???????????]j"T?%
?\[mY?0*?v??&*??]+?`*??+?b*? ?
M*? ,??!(Z0??0cH[???!?%?(?/?]h"deYA?*?v??w*+?h*????Y??j??+?p??r?ɶԶb*? ?
N*? -??<:*????Y??j??+?p??r?ɶԶb*? ?:*? ???6=GImttvtGIGZ ????Xu?vh[6
???6:=DG?I?mqt?]$}"B"?,t""?feYR*??*??+?z?Z ??Xuvh[
	
{rY?P*?v??F?H?*???~??JY??O?*?????W*? ?
L*? +?*??*?????)4;ZP??[")48;BO]	)Q"??YJ??Y??*?ֶ?+?ɶ԰Z???H[??YJ*??*?~+?????Z???H[
"#??YJ*??*?~+?????Z???H[
()??Y?d*??*+??:*?????%?QY??Y?????+????ɶԷT?*??+??W-,????:*?~+??W?Z>d??d?Hd??dTUY?HT??["4567;:H;T<a=]?;?\?rY??*?~????L+???H+???M*???,????,?????ާN*??,??-??+?????*??????M,???,,????N*???-??*????Y-S?????*?۶?*?????*????? :*?۶?*?????*??????4@C??????Z4DX?"8?H?????^"8????[ZDEF"G4I@MCJDKTNZO]QR?S?T?W?X?Y?Z?W?X?Y?[]-???3??????1Z"??YO%??Y??*?¶??*???r?ɶ԰Z%??[_?rYR*???Y?????Z??[cdg]?YO*????*? ?#?Z??$%[mno\&'Y_*? )?-*? N-?/?Z ??0NOP[stuv1'YC*???6?Z??7N[
z
{89YA	*??+?[
??@Y??*???N-??H?*? ??*????JY?A?*? ?D?J??LY*??*? ?D?O?+?R:???^???':*? ?V?a?e:?H?+?h?#?JY??Y??j???n??ԷO??n?rW???-+?u?x*? ?{*? ?~*? ???Z>|7??gL?????????$%???^???[:??
?)?6?I?g?|?????????????]?),???X'"?\X_??Yp?*????:6-?u?)-???????????????6+?u?(+????,???????????*????*??????Z\	1?%@0?%????????????????$%	???^*????????????[*
?	??7?=?K?j?p?|???]?/?0??/X`??Y??*????*??*??N-?,???s:-??-???ħ:-??????:*??????ͻtY*?????:*???:?tY*?????:*???????!%//1/!;>?q?Z\	@X?g
?u!P???
?us??????$%???|TU[Z??????!?%?,?/?;?>?@?N?U?g?n?q?s???????]H?24?24"B??24?\??Yu"*??:+??:*????*????:	 	??*+??:
?*??:
??:??Y:?
???????????	????
?+?????
?
?ާ
:

??
?*??:
?H?I????
??4?JY??Y????
????????"?ɶԷO???
?(?+*?-:?H??
??JY?A????????Z?2??
?{.H
??"??"/?"0N"12"3h"$%TU?H!4?	=???
D??5N?67[^????!?'?5?=?D?Q?h?u????????????????????!?]/	?54?/?????#?L"	?S??.\89Y5*? ?=?B?Z??[?
XYYV"?DY??Y??F??*?r?ɶԷG?Z"??"HI[?
??Y;?KYM*???O?Z?[LPrYB?U???H??Y?V???[
GK]@a )*.*)???)W\^bcr		@		 	"$%	')*	,-	/0	24578	:$*	<:=@?AB




© 2015 - 2025 Weber Informatics LLC | Privacy Policy