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: 198
Show newest version
????4?3com/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/MapEntryAcom/groupbyinc/flux/index/seqno/ReplicationTracker$PrimaryContext2com/groupbyinc/flux/index/seqno/ReplicationTrackerPrimaryContext.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;Origin3com/groupbyinc/flux/index/engine/Engine$Result$Type>Type%java/lang/invoke/MethodHandles$LookupAjava/lang/invoke/MethodHandlesCLookuplogger!Lorg/apache/logging/log4j/Logger;idGenerator(Ljava/util/concurrent/atomic/AtomicLong;RECOVERY_PREFIXLjava/lang/String;	recovery.LshardId)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_statusn(Ljava/lang/String;)Vlp
q)java/util/concurrent/atomic/AtomicBooleans()Vlu
tv]^	x@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollectionsznewConcurrentMap&()Ljava/util/concurrent/ConcurrentMap;|}
{~_`	?java/lang/System?nanoTime()J??
??dQ	?#java/util/concurrent/CountDownLatch?(I)Vl?
??ef	?gh	?
vbc	?HI	?&java/util/concurrent/atomic/AtomicLong?incrementAndGet??
??PQ	?YZ	?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;N?
??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;)Lorg/apache/logging/log4j/Logger;??
??FG	?RS	?TU	?NO	?java/lang/StringBuilder?
?vappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? com/groupbyinc/flux/common/UUIDs?randomBase64UUID()Ljava/lang/String;??
??.?toString??
??VK	?)()Lcom/groupbyinc/flux/index/store/Store;W?
??WX	?[\	?incRef?u
4?
recoveryStats4()Lcom/groupbyinc/flux/index/recovery/RecoveryStats;??
??0com/groupbyinc/flux/index/recovery/RecoveryStats?incCurrentAsTarget?u
??this5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;	retryCopy7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;lm
?.()Lcom/groupbyinc/flux/index/shard/IndexShard;ensureRefCount?u
?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
t+reset of recovery with shard {} and id [{}]java/lang/LongvalueOf(J)Ljava/lang/Long;
org/apache/logging/log4j/Loggerdebug9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VdecRef!u
"java/lang/Throwable$java/util/Objects&requireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;()
'*"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;./
-01uawait4u
?56runi(Ljava/util/concurrent/CountDownLatch;)Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;89:executeE(Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;)V<=
>enew recovery target cancelled for shard {} while waiting on old recovery target with id [{}] to close@traceBC
getPrimary()ZEF
GFINALIZE:Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Stage;IJ	KDONEMJ	Njk	Pjava/lang/AssertionErrorR8recovery should not have completed when it's being resetT(Ljava/lang/Object;)VlV
SWjava/lang/IllegalStateExceptionYHcannot reset recovery as previous attempt made it past finalization step[
ZqperformRecoveryRestart^u
?_ePLcom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException;newTargetCancellableThreadscancel recovery canceled (reason: [{}])e'(Ljava/lang/String;Ljava/lang/Object;)Vghdp
jreasonfailB(Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)VnotifyListeneron
pfailed recovery [r$com/groupbyinc/flux/ExceptionsHelpert
stackTrace)(Ljava/lang/Throwable;)Ljava/lang/String;vw
ux]zLcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;sendShardFailureonRecoveryFailurev(Lcom/groupbyinc/flux/indices/recovery/RecoveryState;Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)V??	?
markAsDoneisEmpty?F?#not all temporary files are renamed?peer 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?)??: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l
prepareForTranslogOperations(ZI)VgetIndexVersionCreated()Lcom/groupbyinc/flux/Version;"#
?$com/groupbyinc/flux/Version&V_6_0_0Lcom/groupbyinc/flux/Version;()	'*before (Lcom/groupbyinc/flux/Version;)Z,-
'.ensureIndexHas6xCommitTags0F
41getTranslog?()Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Translog;34
5totalOperations7?
,8R?
:!openEngineAndSkipTranslogRecovery<u
?=fileBasedRecoverytotalTranslogOpsIfinalizeRecovery(J)Vfinalizing recoveryDupdateGlobalCheckpointOnReplica(JLjava/lang/String;)VFG
?HsyncJu
?KBu
?MglobalCheckpointensureClusterStateVersionjava/util/function/LongConsumerQacceptSCRTclusterStateVersionhandoffPrimaryContextF(Lcom/groupbyinc/flux/index/seqno/ReplicationTracker$PrimaryContext;)VactivateWithPrimaryContextYX
?ZprimaryContextCLcom/groupbyinc/flux/index/seqno/ReplicationTracker$PrimaryContext;indexTranslogOperations(Ljava/util/List;I)J
Sv3()Lcom/groupbyinc/flux/index/shard/IndexShardState;?a
?b/com/groupbyinc/flux/index/shard/IndexShardStated
RECOVERING1Lcom/groupbyinc/flux/index/shard/IndexShardState;fg	eh@com/groupbyinc/flux/index/shard/IndexShardNotRecoveringExceptionj](Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/IndexShardState;)Vll
kmjava/util/Listop?
PEER_RECOVERY:Lcom/groupbyinc/flux/index/engine/Engine$Operation$Origin;rs	<tapplyTranslogOperation?(Lcom/groupbyinc/flux/index/translog/Translog$Operation;Lcom/groupbyinc/flux/index/engine/Engine$Operation$Origin;)Lcom/groupbyinc/flux/index/engine/Engine$Result;vw
?x
getResultType7()Lcom/groupbyinc/flux/index/engine/Engine$Result$Type;z{
"|MAPPING_UPDATE_REQUIRED5Lcom/groupbyinc/flux/index/engine/Engine$Result$Type;~	??0com/groupbyinc/flux/index/mapper/MapperException?!mapping updates are not allowed [?
?q
getFailure()Ljava/lang/Exception;??
"?5unexpected failure while replicating translog entry: ?reThrowIfNotNull(Ljava/lang/Throwable;)Z??
u?size?p?incrementRecoveredOperations??
,?afterWriteOperation?u
??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;??p?	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?u
?
?!recovery CleanFilesRequestHandler?cleanupAndVerifyM(Ljava/lang/String;Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;)V??
4?	shardPath-()Lcom/groupbyinc/flux/index/shard/ShardPath;??
??)com/groupbyinc/flux/index/shard/ShardPath?resolveTranslog()Ljava/nio/file/Path;??
??????????getPendingPrimaryTerm??
??createEmptyTranslogS(Ljava/nio/file/Path;JLcom/groupbyinc/flux/index/shard/ShardId;J)Ljava/lang/String;??
)?associateIndexWithNewTranslog?p
4?removeCorruptionMarker?u
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l
}mn
translogUUIDrfeexLjava/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/BytesReferenceB()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&A	!'length)A	!*
writeBytes([BII)V,-
?.)
0addRecoveredBytesToFile(Ljava/lang/String;J)V23
/4getFilePointer6?
?7)?
9verify?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V;<
4=8com/groupbyinc/flux/common/apache/lucene/store/Directory?listAll()[Ljava/lang/String;AB
@Cjava/util/ArraysEasList%([Ljava/lang/Object;)Ljava/util/List;GH
FIcontainsK?pLexpected: [N] in P'([Ljava/lang/Object;)Ljava/lang/String;?R
FSjava/util/CollectionsU	singleton#(Ljava/lang/Object;)Ljava/util/Set;WX
VY(Ljava/util/Collection;)VJ[
@\??
^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;translogLocation5org/apache/logging/log4j/message/ParameterizedMessagek(error while closing recovery output [{}]mlg
lojava/lang/ClassrdesiredAssertionStatustF
su
?v
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!FGHIJKxMNOPQRSTUVKWXYZ[\]^_`yabcBdQefghyijk$lmzM?*o?r*?tY?w?y*???*????*??Y????*???*?Y????*??????*-??**??+????+????????*+??*,??*+????*??Y??M?̸Ҷ?Զ̶׵?*+?ܵ?*??*?޶?+???{4????RS?TU?YZ?[\|NtY[_b+d2u=vGwLxfykzp{x|?}?~????????zB?Y*??*??*??*???{??|?P?z/*???{??|?N?z/*?Ű{??|?R?z7	*??*???{	??|
??T?z/*?ð{??|???z2*?????{??|?b?z/*???{??|?d?z/*???{??|??uz6*?????{??|
??W?z7	*??*?ް{	??|
???z2*???{??|?uzB*??*??*????{??|???}
zu?*?y???*??*??*???? *?#?
M*?#,?+*??Y?+W?;???M*??A*??*????D?*?????M*?????H?4,?L?
,?O?&?Q?,?O??SYU?X??ZY\?]?*???`??#*1CF{*GabkG?J????cc|R??#?'?*?/?1?C?F?G?V?Y?^?`?k???????????~j%T?%
?}dpz?0*?y??&*??f+?i*??+?k*?#?
M*?#,??!({0??0lK|"???!?%?(?-?/?~h%mnzM?*?y??w*+?q*????Y??s??+?y??{?̶׶k*?#?
N*?#-??<:*????Y??s??+?y??{?̶׶k*?#?:*?#???6=GImttvtGIG{ ????a~?k|B??6:=BDG?Imqtz}?~$}%B%?,}%%?onzR*??*?+???{ ??a~k|

?uz?P*?y??F?Q?*??????SY??X?*?????W*?#?
L*?#+?*??*????)4;{P??|&	)48;@BO~	)Q%??zJ??Y??*?ٶ?+?̶װ{???K|??zJ*??*??+?????{???K|
#$??zJ*??*??+?????{???K|
)*??z?d*??*+??:*?????%?ZY??Y?????+????̶׷]?*??+??W-,????:*??+??W?{>d??d?Kd??dWXY?KT??|"5678;;H<T=a>~?;?}?uz??*??????L+???H+???M*???,????,??????N*??,??-??+?????*??????M,???,,????N*???-??*????Y-S?????*?޶?*????*???? :*?޶?*????*?????4@C??????{4Da"8	
K?????"8??|^EFG"H4J@MCKDLTNZO]QR?S?T?W?X?Y?Z?W?X?Y?Z?[~-???3??????1Z%??zO%??Y??*?Ŷ??*???{?̶װ{%??|_?uzR*???Y?????{??|cdg~ !z?2?*?????%?+?/?*?޶2W*??6?9*?;?>?{ 2??2?k2@A|mnp*q1r~}BCzd*?;N-E?I-?L-?N?{ ??OQRS|vw
yz{}PCzC*???U?{??VQ|

?WXzA	*??+?[?{	??	\]|
??^_z??*??6N-?9?Q?*?;??*???SY?`?*?;?c?i??kY*??*?;?c?n?+?q:???????':*?;?u?y:?}???&??Y??Y??????{?̶׷???Q?+???#?SY??Y?????????׷X?????W??w-+????*?;?L*?;??*?;???{>ue??gs?????????@A??????|B??
?)?6?I?g?u?????????????????~?),???Q'"-?}y???zp?*???:6-???)-???????????????6+???(+????,???????????*??6?9*??6???{\	1?A@0?A????????????????@A	???*????????????|*
?	??7?=?K?j?p?|???~?/?0??/y???z^?*??6?9*??*??N-??-?,??*???ֶ??*??*?????:-??-???|:-??-????:-?????:*????????}Y*??:*??:?}Y*??:*??:-????	CJ?CJ?CJ?LPZZ\ZLfi?C??C?J??{f
=Kka?
~LP	?
~?????@A?
?WX|? ????? ?$?5?8?=?C?G?J?L?P?W?Z?c?f?i?k?y?????????????????????~L?J24?24%B??24?]%}
zy"*??:+?:*??6?9*???:	 	??*+?:
?*?:
?:?Y:?
?%?(?+?/???	?1??5
?8+?:????
?>
??
:

??
?*??:
?Q?I??D?J
?M?4?SY??Y??O??
??Q????D?T?̶׷X???
?Z?]*?_:?Q??
??SY?`????????{?2??
?{`K
??"??"a?"bQ"cd"ek"@AWX?K!f?	=???
D??gN?hi|b????!?'?5?=?D?Q?h?u??????????????????????!?~/	?54?/????#!L%	?S??.}j?z5*?;?ֶܰ{??|
??z;?lYn*???p?{	|LquzB?v???Q??Y?w???|
HL~@?23732?????z		@		 	"$%	')*	,-	/0	24578	:$*	<:=@?"@@BDE




© 2015 - 2024 Weber Informatics LLC | Privacy Policy