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

com.groupbyinc.flux.index.translog.TranslogWriter.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?1com/groupbyinc/flux/index/translog/TranslogWriter5com/groupbyinc/flux/index/translog/BaseTranslogReaderjava/io/CloseableTranslogWriter.javaMcom/groupbyinc/flux/index/translog/TranslogWriter$BufferedChannelOutputStreamBufferedChannelOutputStream4com/groupbyinc/flux/index/translog/Translog$Location+com/groupbyinc/flux/index/translog/Translog
Location1com/groupbyinc/flux/index/translog/Translog$IndexIndex2com/groupbyinc/flux/index/translog/Translog$DeleteDelete5com/groupbyinc/flux/index/translog/Translog$Operation	Operationjava/util/Map$Entry
java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles LookupshardId)Lcom/groupbyinc/flux/index/shard/ShardId;channelFactory3Lcom/groupbyinc/flux/index/translog/ChannelFactory;lastSyncedCheckpoint/Lcom/groupbyinc/flux/index/translog/Checkpoint;operationCounterItragedyLjava/lang/Exception;outputStreamLjava/io/OutputStream;totalOffsetJminSeqNomaxSeqNoglobalCheckpointSupplier!Ljava/util/function/LongSupplier;minTranslogGenerationSupplierclosed+Ljava/util/concurrent/atomic/AtomicBoolean;syncLockLjava/lang/Object;seenSequenceNumbersLjava/util/Map;?Ljava/util/Map;>;$assertionsDisabledZe(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/translog/Checkpoint;Ljava/nio/channels/FileChannel;Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Ljava/util/function/LongSupplier;Ljava/util/function/LongSupplier;Lcom/groupbyinc/flux/index/translog/TranslogHeader;)Vjava/io/IOExceptionA-com/groupbyinc/flux/index/translog/CheckpointC
generationE0	DFj(JLjava/nio/channels/FileChannel;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/TranslogHeader;)V?H
I)java/util/concurrent/atomic/AtomicBooleanK(Z)V?M
LN67	Pjava/lang/ObjectR()V?T
SU89	W=>	Yoffset[0	D\java/nio/channels/FileChannel^position()J`a
_bjava/lang/AssertionErrordjava/lang/StringBuilderf
gUinitial checkpoint offset [iappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;kl
gm(J)Ljava/lang/StringBuilder;ko
gp.] is different than current channel position [r]ttoString()Ljava/lang/String;vw
gx(Ljava/lang/Object;)V?z
e{1com/groupbyinc/flux/index/translog/ChannelFactory}'com/groupbyinc/flux/index/shard/ShardIdjava/nio/file/Path?-com/groupbyinc/flux/common/unit/ByteSizeValue?java/util/function/LongSupplier?1com/groupbyinc/flux/index/translog/TranslogHeader?#$	?%&	?54	?java/nio/channels/Channels?newOutputStream?(Ljava/nio/channels/WritableByteChannel;)Ljava/io/OutputStream;??
??
bytesAsInt()I??
??M(Lcom/groupbyinc/flux/index/translog/TranslogWriter;Ljava/io/OutputStream;I)V??
	?-.	?'(	?/0	?10	D?????????(J)V??
e?	?20	D?	?trimmedAboveSeqNo?0	D?????????34	?com/groupbyinc/flux/Assertions?ENABLED?>	??java/util/HashMap?
?U:;	?this3Lcom/groupbyinc/flux/index/translog/TranslogWriter;initialCheckpointchannelLjava/nio/channels/FileChannel;pathLjava/nio/file/Path;
bufferSize/Lcom/groupbyinc/flux/common/unit/ByteSizeValue;header3Lcom/groupbyinc/flux/index/translog/TranslogHeader;create,(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLjava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/ChannelFactory;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;JJLjava/util/function/LongSupplier;Ljava/util/function/LongSupplier;J)Lcom/groupbyinc/flux/index/translog/TranslogWriter;java/lang/Exception?open5(Ljava/nio/file/Path;)Ljava/nio/channels/FileChannel;??~?(Ljava/lang/String;J)V??
??write"(Ljava/nio/channels/FileChannel;)V??
??sizeInBytes??
??emptyTranslogCheckpoint5(JJJJ)Lcom/groupbyinc/flux/index/translog/Checkpoint;??
D?	getParent()Ljava/nio/file/Path;????writeCheckpointy(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/Checkpoint;)V??
?"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;??
???alambda$create$0%(Ljava/util/function/LongSupplier;J)J??
??	getAsLongE(Ljava/util/function/LongSupplier;J)Ljava/util/function/LongSupplier;????@
?java/lang/String?,com/groupbyinc/flux/core/internal/io/IOUtils?closeWhileHandlingException([Ljava/io/Closeable;)V??
?writerGlobalCheckpointSupplier
checkpoint	exceptiontranslogUUIDLjava/lang/String;fileGenerationfileinitialMinTranslogGeninitialGlobalCheckpointprimaryTermgetTragicException()Ljava/lang/Exception;+,	closeWithTragicEvent(Ljava/lang/Exception;)Vjava/lang/RuntimeException
eU
addSuppressed(Ljava/lang/Throwable;)V
?closeT
eexaddj(Lcom/groupbyinc/flux/common/bytes/BytesReference;J)Lcom/groupbyinc/flux/index/translog/Translog$Location;
ensureOpen T
!/com/groupbyinc/flux/common/bytes/BytesReference#writeTo(Ljava/io/OutputStream;)V%&
$'
)length+?
$,)*	./com/groupbyinc/flux/index/seqno/SequenceNumbers0min(JJ)J23
14max63
17assertNoSeqNumberConflict5(JLcom/groupbyinc/flux/common/bytes/BytesReference;)Z9:
;	F(JJI)V?>
?data1Lcom/groupbyinc/flux/common/bytes/BytesReference;seqNojava/lang/LongDvalueOf(J)Ljava/lang/Long;FG
EHcontainsKey(Ljava/lang/Object;)ZJKLget&(Ljava/lang/Object;)Ljava/lang/Object;NOP(com/groupbyinc/flux/common/collect/TupleRv1()Ljava/lang/Object;TU
SVequalsXK
$Y>com/groupbyinc/flux/index/translog/BufferedChecksumStreamInput[streamInput4()Lcom/groupbyinc/flux/common/io/stream/StreamInput;]^
$_5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V?a
\b
readOperationy(Lcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput;)Lcom/groupbyinc/flux/index/translog/Translog$Operation;de
fidhw
ijava/util/Objectsk'(Ljava/lang/Object;Ljava/lang/Object;)ZXm
lntypepw
qsource3()Lcom/groupbyinc/flux/common/bytes/BytesReference;st
uroutingww
xa
zCa
|version~a

i
q
z
|
seqNo [?%] was processed twice in generation [?], with different data. prvOp [?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;k?
g?
], newOp [?v2?U
S?java/lang/Throwable?*(Ljava/lang/String;Ljava/lang/Throwable;)V??
e?+com/groupbyinc/flux/common/bytes/BytesArray?
toBytesRef:()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
$?<(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Z)V??
??stack capture previous op?(Ljava/lang/String;)V??
?'(Ljava/lang/Object;Ljava/lang/Object;)V??
S?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???o13Lcom/groupbyinc/flux/index/translog/Translog$Index;o2sameOp4Lcom/groupbyinc/flux/index/translog/Translog$Delete;newOp7Lcom/groupbyinc/flux/index/translog/Translog$Operation;prvOppreviousrLcom/groupbyinc/flux/common/collect/Tuple;*Lcom/groupbyinc/flux/common/collect/Tuple;assertNoSeqAbove(JJ)ZentrySet()Ljava/util/Set;???
java/util/Set?stream()Ljava/util/stream/Stream;????Klambda$assertNoSeqAbove$1(JLjava/util/Map$Entry;)Z??
??(Ljava/util/Map$Entry;)Z?test!(J)Ljava/util/function/Predicate;???java/util/stream/Stream?filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;????zlambda$assertNoSeqAbove$2(JJLjava/util/Map$Entry;)V??
??(Ljava/util/Map$Entry;)V?accept!(JJ)Ljava/util/function/Consumer;???forEach (Ljava/util/function/Consumer;)V????	belowTerm
aboveSeqNosync???????syncUpTo(J)Z??
?
syncNeeded()Z?a??globalCheckpoint?0	D?minTranslogGeneration?0	D?totalOperations
getCheckpoint1()Lcom/groupbyinc/flux/index/translog/Checkpoint;(JIJJJJJJ)V??
D?closeIntoReader5()Lcom/groupbyinc/flux/index/translog/TranslogReader;?T

compareAndSet(ZZ)Z
L1com/groupbyinc/flux/index/translog/TranslogReadergetLastSyncedCheckpoint
?
??	
??	??	?(Lcom/groupbyinc/flux/index/translog/Checkpoint;Ljava/nio/channels/FileChannel;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/TranslogHeader;)V?
	Ecom/groupbyinc/flux/common/apache/lucene/store/AlreadyClosedException
translog [
getGenerationa
] is already closed (path [
?newSnapshot7()Lcom/groupbyinc/flux/index/translog/TranslogSnapshot;4com/groupbyinc/flux/index/translog/TranslogException"2exception while syncing before creating a snapshot$S(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Ljava/lang/Throwable;)V?&
#' !
)Ljava/io/IOException;getWrittenOffset??
-java/io/OutputStream/flush1T
02??
4force6M
_7illegal state: 9 <= ;checkpointToSync	readBytes(Ljava/nio/ByteBuffer;J)Vjava/nio/ByteBuffer@	remainingB?
AC,a
E&com/groupbyinc/flux/common/io/ChannelsG#readFromFileChannelWithEofException8(Ljava/nio/channels/FileChannel;JLjava/nio/ByteBuffer;)VIJ
HKtargetBufferLjava/nio/ByteBuffer;translog.ckpOresolve((Ljava/lang/String;)Ljava/nio/file/Path;QR?Sjava/nio/file/OpenOptionU java/nio/file/StandardOpenOptionWWRITE"Ljava/nio/file/StandardOpenOption;YZ	X[?(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/Checkpoint;[Ljava/nio/file/OpenOption;)V?]
D^translogFileisCloseda?
b] is already closedd
_N?
LggetValueiUj?
l|z>current should not have any operations with seq#:primaryTerm [p:r] > topLjava/util/Map$Entry;getKeyxUy	longValue{a
E|global checkpoint [~] lower than initial gcp [?gcp
access$000K(Lcom/groupbyinc/flux/index/translog/TranslogWriter;Ljava/lang/Exception;)Vx0x1java/lang/Class?desiredAssertionStatus??
??	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTableBootstrapMethods
SourceFileInnerClasses!#$%&B'(B)*B+,-.B/0B10B2034546789:;?<=>?@?K
*-?G	?J*?LY?O?Q*?SY?V?X?Z?@-?]?c??3?eY?gY?hj?n-?]?qs?n?c?qu?n?y?|?*,??*+??*??*?	Y*????????*-??*-?]???Z?-??????eY-?????*-?????Z?-??????eY-?????*-?????Z?-??????eY-?????*??*???
??Y???????f
??%&#$?(??????3454??	?NQCE%RVThUmVrWxX?Y?Z?[?\?]?^?_`ab?[?h
~?D_??????O$$V?
~?D_??????B	????~??:??Y+
??:???څ 	??:??????	??:?:?Y*???:?YS??lm???M4V??.?(T4o,~#$~~0~?~%&~??~	0~
0	~34~54~0
s???2iklm.o<qBrPyT{m}o?{??:?P_?D??????~???_??B
?/*???????"????Z?+??eY??*??*+??*?+?*?+?*??	M+,??158B158? 9,????,?*
???!?)?1?5?8?9?>??
F?!?q?*?"*??7+*???(?:*?*?*Y??+?-?a??*??????Z?*?/??eY??*??????Z?*?/??eY??**?? ?5??**?? ?8??*Y?/`?/?Z?* +?X??Q??	d?>Lo??cX??jQ?>-???????C0?AB?-????n???-?<?L?c?s?z????????????5?d?g?j?o??????????????I??	$S@??k@???P$*?B ???m'*??????!????!?????? '??'?0'?0?? ?%??T?7	*??W??	???
?B???=*??*???]??+*????*??????*????*?????????=???
'<
?7@???/*?/????? ???c1?DY*??*?/*?=*??*??*????*?????????1???0?a?/*??????? ?>?*?XYL?*YM?*??N*-?*-?*?Q???	Y*?*?*?*??,?+ð?Y?gY?h?n*??q?n*???u?n?y*???:,??:+????wB{wA~B?~?,????2./152346&7B9w;~<?+?SS?'t??S??B !??>*?XYL?*YM?*?"*??N?#Y*??%-?(?*?*,?+ð:,??:+??B-0040/70;7?+>???*
DEFHKIJ'L0M7N?*?SSBH??S?,a?2*??c?????R?B???D	?*???]???*?.??*?XYN?*???]???*?.??*Y:?*?"*???3*?5:?:*?*?ç:??*??8*??*?????:*?*??Z?C*???]?]??3?eY?gY?h:?n*???]?q???P +?D?a*?F??,*Y:? +?D?a*?F??
*???3ç:???:*?*?*? +?L?-00508;??*=	,P??PMNP`0?.???#?*?8?;?=?C?F?O???*SE??B?
?B
???[*+P?T,?VY?\S?_?? %&`?(?
???B
??/*???????? T?l1*?c?,?Y?gY?h?n*??qe?n?y*?????1?????0??0T?O*?Q??
*??f??????????Ba??2*?Q?h??????
???3
??\Y?k?S?W?$?`?c?g:?:?Y?m??n7?o7????eY?gY?hq?n?qs?n?qu?n ?qs?n?q?y?|??"B?Rv?$
+??0??0?w.Vv?7MC0@D0?&	??"?$?.?7?@?G????bB??T
???V,?z?E?}??????0w???@
????@*??B?Z?4!??.?eY?gY?h?n!?q??n?qu?n?y?|?!?? @34@
09?0?st>v??>???:*+?*?????,?/?T?4?????Z??/?@? ??????????????:	
					!"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy