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

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

There is a newer version: 59
Show newest version
????3:com/groupbyinc/flux/indices/recovery/RecoverySourceHandlerjava/lang/ObjectRecoverySourceHandler.java?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;Lcom/groupbyinc/flux/indices/recovery/RecoverySettings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/logging/ESLogger;)V()VLN
O?(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)VLQ
RHI	T:;	V@A	XBC	Z89	\DE	^9com/groupbyinc/flux/indices/recovery/StartRecoveryRequest`+()Lcom/groupbyinc/flux/index/shard/ShardId;>b
ac'com/groupbyinc/flux/index/shard/ShardIdeindex#()Lcom/groupbyinc/flux/index/Index;gh
ficom/groupbyinc/flux/index/Indexkname()Ljava/lang/String;mn
lo<=	qid()Ist
fu>?	w5com/groupbyinc/flux/indices/recovery/RecoveryResponsey
zOFG	|thisLcom/groupbyinc/flux/index/deletionpolicy/SnapshotIndexCommit;eLjava/lang/Throwable;phase2Snapshot6Lcom/groupbyinc/flux/index/translog/Translog$Snapshot;translogView2Lcom/groupbyinc/flux/index/translog/Translog$View;)Lcom/groupbyinc/flux/index/engine/Engine;Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexException?Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldException?Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException?checkForCancelN
.store)()Lcom/groupbyinc/flux/index/store/Store;
?incRefN
#$com/groupbyinc/flux/common/StopWatch

Ostart(()Lcom/groupbyinc/flux/common/StopWatch;

getMetadatav(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexCommit;)Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;
#java/io/IOExceptionrecovery
failEngine*(Ljava/lang/String;Ljava/lang/Throwable;)V
?getFiles()[Ljava/lang/String;
?[Ljava/lang/String;!getG(Ljava/lang/String;)Lcom/groupbyinc/flux/index/store/StoreFileMetaData;#$
!%8Snapshot differs from actual index for file: {} meta: {}'asMap()Ljava/util/Map;)*
!+info-??.java/lang/StringBuilder0
1OJSnapshot differs from actual index - maybe index was removed metadata has 3append-(Ljava/lang/String;)Ljava/lang/StringBuilder;56
17
java/util/Map9size;t:<(I)Ljava/lang/StringBuilder;5>
1? filesAtoStringCn
1D'(Ljava/lang/String;Ljava/lang/String;)VLF
?G	getSyncIdIn
!JmetadataSnapshot:()Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;LM
aNjava/lang/StringPequals(Ljava/lang/Object;)ZRS
QT
getNumDocsV?
!Wjava/lang/IllegalStateExceptionYtry to recover [-(Ljava/lang/Object;)Ljava/lang/StringBuilder;5]
1^< from primary shard with sync id but number of docs differ: `(J)Ljava/lang/StringBuilder;5b
1c (e
sourceNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;gh
ai.com/groupbyinc/flux/cluster/node/DiscoveryNodekgetNamemn
ln, primary) vs p(r
targetNodeth
au)w(Ljava/lang/String;)VLy
ZzY[{}][{}] skipping [phase1] to {} - identical sync id [{}] found on both source and target|recoveryDiffn(Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;)Lcom/groupbyinc/flux/index/store/Store$RecoveryDiff;~
!?	identicalLjava/util/List;??	&?java/util/List?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????1com/groupbyinc/flux/index/store/StoreFileMetaData?phase1ExistingFileNames??	z?
?oadd?S??phase1ExistingFileSizes??	z?length??
??isTraceEnabled????m[{}][{}] recovery [phase1] to {}: not recovering [{}], exists in local store and has checksum [{}], size [{}]?checksum?n
??	different??	&?missing??	&?:com/groupbyinc/flux/common/google/common/collect/Iterables?concat>(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;??
??java/lang/Iterable???containsKey?S:?s[{}][{}] recovery [phase1] to {}: recovering [{}], exists in local store, but is different: remote [{}], local [{}]?&(Ljava/lang/Object;)Ljava/lang/Object;#?:?L[{}][{}] recovery [phase1] to {}: recovering [{}], does not exists in remote?phase1FileNames??	z?phase1FileSizes??	z?phase1TotalSizeJ??	z?phase1ExistingTotalSize??	z?u[{}][{}] recovery [phase1] to {}: recovering_files [{}] with total_size [{}], reusing_files [{}] with total_size [{}]??<-com/groupbyinc/flux/common/unit/ByteSizeValue?(J)VL?
??q(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;Lcom/groupbyinc/flux/index/translog/Translog$View;)VL?
?executeE(Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;)V??
.?#java/util/concurrent/CountDownLatch?(I)VL?
??)java/util/concurrent/CopyOnWriteArrayList?
?O+java/util/concurrent/atomic/AtomicReference?
?O&java/util/concurrent/atomic/AtomicLong?
?O(I)Ljava/lang/Object;#???	longValue??
??5com/groupbyinc/flux/indices/recovery/RecoverySettings?SMALL_FILE_CUTOFF_BYTES??	??concurrentStreamPool+()Ljava/util/concurrent/ThreadPoolExecutor;??
??concurrentSmallFileStreamPool??
?'java/util/concurrent/ThreadPoolExecutor?(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;Ljava/lang/String;Ljava/util/concurrent/CountDownLatch;Lcom/groupbyinc/flux/index/store/Store;Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;Ljava/util/concurrent/atomic/AtomicLong;Lcom/groupbyinc/flux/index/translog/Translog$View;Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/CopyOnWriteArrayList;)VL
(Ljava/lang/Runnable;)V?
d(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;Ljava/util/concurrent/CountDownLatch;)VL

#?
?
$com/groupbyinc/flux/ExceptionsHelperrethrowAndSuppress(Ljava/util/List;)V
(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;Lcom/groupbyinc/flux/index/translog/Translog$View;Lcom/groupbyinc/flux/index/store/Store;Lcom/groupbyinc/flux/index/deletionpolicy/SnapshotIndexCommit;)VL
prepareTargetForTranslog5(Lcom/groupbyinc/flux/index/translog/Translog$View;)V
+[{}][{}] recovery [phase1] to {}: took [{}]	totalTime-()Lcom/groupbyinc/flux/common/unit/TimeValue;
 )com/groupbyinc/flux/common/unit/TimeValue"millis$?
#%
phase1Time'?	z(decRef*N
#+Bcom/groupbyinc/flux/indices/recovery/RecoverFilesRecoveryException-q(Lcom/groupbyinc/flux/index/shard/ShardId;ILcom/groupbyinc/flux/common/unit/ByteSizeValue;Ljava/lang/Throwable;)VL/
.0recoverySourceMetadata8Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;exLjava/io/IOException;md3Lcom/groupbyinc/flux/index/store/StoreFileMetaData;
numDocsTarget
numDocsSourcepool)Ljava/util/concurrent/ThreadPoolExecutor;fileSizediff4Lcom/groupbyinc/flux/index/store/Store$RecoveryDiff;latch%Ljava/util/concurrent/CountDownLatch;
exceptionsBLjava/util/concurrent/CopyOnWriteArrayList;+Ljava/util/concurrent/CopyOnWriteArrayList;corruptedEngineDLjava/util/concurrent/atomic/AtomicReference;-Ljava/util/concurrent/atomic/AtomicReference;	fileIndexbytesSinceLastPause(Ljava/util/concurrent/atomic/AtomicLong;	stopWatch&Lcom/groupbyinc/flux/common/StopWatch;recoverySourceSyncIdrecoveryTargetSyncIdrecoverWithSyncId	totalSizeexistingTotalSize'Lcom/groupbyinc/flux/index/store/Store;>{} recovery [phase1] to {}: prepare remote engine for translogR

?stopU
V	startTimeX?	zY9{} recovery [phase1] to {}: remote engine start took [{}][startEngineStartstate3()Lcom/groupbyinc/flux/index/shard/IndexShardState;^_
?`/com/groupbyinc/flux/index/shard/IndexShardStatebCLOSED1Lcom/groupbyinc/flux/index/shard/IndexShardState;de	cf9com/groupbyinc/flux/index/shard/IndexShardClosedExceptionh,(Lcom/groupbyinc/flux/index/shard/ShardId;)VLj
ik>{} recovery [phase2] to {}: sending transaction log operationsmsendSnapshot9(Lcom/groupbyinc/flux/index/translog/Translog$Snapshot;)Iop
q%{} recovery [phase2] to {}: took [{}]s
phase2Timeu?	zvphase2Operationsx?	zy?com/groupbyinc/flux/index/shard/IllegalIndexShardStateException{"[{}][{}] finalizing recovery to {}}
RmarkAsRelocated??
a?to ?	relocated@(Ljava/lang/String;)Lcom/groupbyinc/flux/index/shard/IndexShard;??
??-[{}][{}] finalizing recovery to {}: took [{}]?java/util/ArrayList?
?O9()Lcom/groupbyinc/flux/index/translog/Translog$Operation;???*com/groupbyinc/flux/ElasticsearchException?*failed to get next operation from translog?=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)VL?
??builderA()Lcom/groupbyinc/flux/transport/TransportRequestOptions$Builder;??
3?compress??
??withCompressB(Z)Lcom/groupbyinc/flux/transport/TransportRequestOptions$Builder;??
1?RECOVERY;recoveryOptions7Lcom/groupbyinc/flux/transport/TransportRequestOptions;cancel?y
.?reasonShardRecoveryHandler{shardId=?
, sourceNode=?
, targetNode=?(C)Ljava/lang/StringBuilder;5?
1?
access$000j(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)Lcom/groupbyinc/flux/index/shard/IndexShard;x0
access$100y(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;
access$200u(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)Lcom/groupbyinc/flux/indices/recovery/RecoverySettings;
access$300n(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)Lcom/groupbyinc/flux/transport/TransportService;
access$400r(Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)Lcom/groupbyinc/flux/common/util/CancellableThreads;java/lang/Class?desiredAssertionStatus??
??CodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable
SourceFileInnerClasses!
89:;<=>?@ABCDEFGHIJKLM??V*?P*?Y*?S?U*+?W*,?Y*-?[*?]*?_**?Y?d?j?p?r**?Y?d?v?x*?zY?{?}??>V~V:;V@AVBCVDEV89?.hVijkl%m+n<oJqUr?????*?W??L???+???
??Y????+????MN*?]??Y,????S??*?W??:?$:??Y,S????Y*?W????¿*,????YS?ϧ*:??Y*?W????¿:??YS???*?]??Y,?ָ?S??,??::*???]????N:??B???8::?:?%????:		??
????:??Y*?W????¿*??,?K-?,??@:-??5,??.:N?:
,?-?,??:-??,??
?*?}?BLO?pw??pw????????????????
?47?Y]`?)Qr?)Qz????r|z?\	L??Q??????h??9??p???'v???~????vxyz){B~L?OQ?\?p?w????????????????????4?7?9?M?Q?rzz????????/???? ?U?U??;?????I?H??	??????????B?????
F?G??????
?????
U_*?U?	B	7*?W?:?	?Y??:+?:	?:
*?W??
?
?+? :

?66?h
2:
	
?&:?M*?](?Y
SY	?,S?/??Y?1Y?24?8	?,?=?@B?8?E
?H?????	?K:
*?Y?O?K:
?
?U??6??*?Y?O?X7	?X7??g?ZY?1Y?2\?8*?Y?d?_a?8?df?8*?Y?j?o?8q?8?ds?8*?Y?v?o?8x?8?E?{?*?]}?Y*?rSY*?x??SY*?Y?vSY
S???B	*?Y?O??:

????:????????:*?}??????W*?}????????W??a7*?]???J*?]??Y*?rSY*?x??SY*?Y?vSY??SY??SY????S??!??aB??^
??
??????:????????:*?Y?O?,?????V*?]??Y*?rSY*?x??SY*?Y?vSY??SY*?Y?O?,????SYS???6*?]??Y*?rSY*?x??SY*?Y?vSY??S??*?}??????W*?}????????W!??aB??*?}!??*?}??*?]??Y*?rSY*?x??SY*?Y?vSY*?}?ȹ???SY??Y!??SY*?}??????SY??Y??S??*?U?Y*,?ݶ??Y*?}?ȹ???:??Y??:??Y??:6??Y??:*?}?ȹ?:???e???Q:*?}????????7????*?[??:?*?[?:?Y*	,??	????*?U?Y*?????!*?W???????????*?U?Y*	,+???*,?*?]?Y*?rSY*?x??SY*?Y?vSY?!S??*?}?!?&?)?,?4:?.Y*?Y?d*?}?ȹ???Y!???1?:?,??&.1?&.1?&.1?%-?%T-VT?..23	345
jO67aXm=
??8??9???67??67_:;M=<?7Sm=k":;?1=>
???@??AC?DF
?G??HI&?JKE?23	?_L=
?SM=?=NK/%??_~_??_??	VO?SP?JQ???AB?DE?fY??	????&?.?1?3?B?E?a?j?o???????????????????????l???????????????????%?N?S?[?^???????????
? ?%?7?L?T?W?_?h????????????????
?7MVbk?t?u?w??????????????%?*?-?/?T?^????1?#?!?
"?e??%QQ@???#!QQ?2?#!QQ?&????#!QQ&???
?#!QQ&????#!QQ&??2?1?#!QQ&???#!QQ&??????@Q??!?#!QQ&????6??#!QQ?N?#?f?	????Y??M*?]S?Y*?Y?dSY*?Y?vS??,?!?&B*?U?
Y*+?T??,?WW*?},?!?&!e?Z*?]\?Y*?Y?dSY*?Y?vSY,?!S????*?~???}JK7Q]??*
??/?7?G?L?\?m?????????*?W?a?g??iY*?Y?d?l?*?U??Y??M*?]n?Y*?Y?dSY*?Y?vS??*+?r>,?WW*?]t?Y*?Y?dSY*?Y?vSY,?!S??*?},?!?&?w*?}?z??*?~???.qJKXG???.?
??#?.?R?X?]?????????N?^?*?W?a?g??iY*?Y?d?l?*?U??Y??L*?]~?Y*?rSY*?x??SY*?Y?vS??*?U?Y*???*?Y???)*?W?1Y?2??8*?Y?v?_?E??W?M+?WW*?]??Y*?rSY*?x??SY*?Y?vSY+?!S???r??|??~.?JK?>?
#.Yhr???!?"?#?"?$??z|op??	
?=	B6??Y??:+??:?:??Y???????*?[????????*?[??????:?.*?]??Y*?rSY*?x??SY*?Y?vS????*?W?a?g??iY*?Y?d?l?*?U???W?!??aB?*?[???!*?[???Ĕ?x*?U?	Y*+?Ƕ?*?]???M*?]??Y*?rSY*?x??SY??SY??Y!??SY+????SY*?Y?vS??=	B??+??:??':	??Y?	???????*?U?Y*+?Ӷ?*?]???M*?]??Y*?rSY*?x??SY??SY??Y!??SY+????SY*?Y?vS???QY\?p??45^45	?~???????;???????.???P?????????1/0125867.:5;><E=K>P@UAmB{A?D?E?F?H?I?J?K?L?P?[?d?ef.g=hAeFkHlJmQpYs\q^rovyw???????????????3???)?Q3 :?i
J?U?y?A	*?U+?߱?	~	?=?
??Cn?v@?1Y?2?8*?Y?d?_?8*?Y?j?_?8*?Y?v?_}??E??@~???!?1????/*?W????I???/*?Y????I???/*?[????I???/*?_????I???/*?U????I?N?4????????I?@?	
	!#$&#')*	,./	134	637@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy