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

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

????481com/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
Location5com/groupbyinc/flux/index/translog/Translog$Operation	OperationTRANSLOG_CODECLjava/lang/String;translogVERSION_CHECKSUMSIVERSION_CHECKPOINTSVERSIONshardId)Lcom/groupbyinc/flux/index/shard/ShardId;channelFactory3Lcom/groupbyinc/flux/index/translog/ChannelFactory;lastSyncedCheckpoint/Lcom/groupbyinc/flux/index/translog/Checkpoint;operationCountertragedyLjava/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;>;$assertionsDisabledZ2(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;)Vjava/io/IOException:-com/groupbyinc/flux/index/translog/Checkpoint<
generation>)	=?java/nio/channels/FileChannelAposition()JCD
BE8(JLjava/nio/channels/FileChannel;Ljava/nio/file/Path;J)V8G
H)java/util/concurrent/atomic/AtomicBooleanJ(Z)V8L
KM/0	Ojava/lang/ObjectQ()V8S
RT12	V67	XoffsetZ)	=[java/lang/AssertionError]java/lang/StringBuilder_
`Tinitial checkpoint offset [bappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;de
`f(J)Ljava/lang/StringBuilder;dh
`i.] is different than current channel poistion [k]mtoString()Ljava/lang/String;op
`q(Ljava/lang/Object;)V8s
^t1com/groupbyinc/flux/index/translog/ChannelFactoryv'com/groupbyinc/flux/index/shard/ShardIdxjava/nio/file/Pathz-com/groupbyinc/flux/common/unit/ByteSizeValue|java/util/function/LongSupplier~	? 	?.-	?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8?
	?&'	?!"	?()	?*)	=?????????(J)V8?
^?	?+)	=?	?,-	?com/groupbyinc/flux/Assertions?ENABLED?7	??java/util/HashMap?
?T
java/util/Map?34	?this3Lcom/groupbyinc/flux/index/translog/TranslogWriter;initialCheckpointchannelLjava/nio/channels/FileChannel;pathLjava/nio/file/Path;
bufferSize/Lcom/groupbyinc/flux/common/unit/ByteSizeValue;getHeaderLength(Ljava/lang/String;)I6com/groupbyinc/flux/common/apache/lucene/util/BytesRef?(Ljava/lang/CharSequence;)V8?
??length?	??(I)I??
?translogUUID9com/groupbyinc/flux/common/apache/lucene/codecs/CodecUtil?headerLength??
??
uuidLengthwriteHeader?(Lcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamDataOutput;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)VQ(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Ljava/lang/String;I)V??
??Ecom/groupbyinc/flux/common/apache/lucene/store/OutputStreamDataOutput?writeInt(I)V??
??bytes[B??	??Z	??
writeBytes([BII)V??
??outGLcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamDataOutput;ref8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;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;Ljava/util/function/LongSupplier;JLjava/util/function/LongSupplier;)Lcom/groupbyinc/flux/index/translog/TranslogWriter;java/lang/Exception?open5(Ljava/nio/file/Path;)Ljava/nio/channels/FileChannel;??w?(Ljava/io/OutputStream;)V8?
????
?force?L
B?	getAsLong?D?emptyTranslogCheckpoint5(JJJJ)Lcom/groupbyinc/flux/index/translog/Checkpoint;??
=?	getParent()Ljava/nio/file/Path;?{writeCheckpointy(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/Checkpoint;)V
89
java/lang/String	5com/groupbyinc/flux/common/apache/lucene/util/IOUtilscloseWhileHandlingException([Ljava/io/Closeable;)V


checkpoint	exceptionfileGenerationfileinitialMinTranslogGenfirstOperationOffsetgetTragicException()Ljava/lang/Exception;$%	closeWithTragicEvent(Ljava/lang/Exception;)V
^T
addSuppressed(Ljava/lang/Throwable;)V
? close"S
#addj(Lcom/groupbyinc/flux/common/bytes/BytesReference;J)Lcom/groupbyinc/flux/index/translog/Translog$Location;
ensureOpen'S
(/com/groupbyinc/flux/common/bytes/BytesReference*writeTo,?
+-
/??
+1#	3/com/groupbyinc/flux/index/seqno/SequenceNumbers5min(JJ)J78
69max;8
6<assertNoSeqNumberConflict5(JLcom/groupbyinc/flux/common/bytes/BytesReference;)Z>?
@	?(JJI)V8C
Dinnerexdata1Lcom/groupbyinc/flux/common/bytes/BytesReference;seqNo????????java/lang/LongMvalueOf(J)Ljava/lang/Long;OP
NQcontainsKey(Ljava/lang/Object;)ZST?Uget&(Ljava/lang/Object;)Ljava/lang/Object;WX?Y(com/groupbyinc/flux/common/collect/Tuple[v1()Ljava/lang/Object;]^
\_equalsaT
+b>com/groupbyinc/flux/index/translog/BufferedChecksumStreamInputdstreamInput4()Lcom/groupbyinc/flux/common/io/stream/StreamInput;fg
+h5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V8j
ek
readOperationy(Lcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput;)Lcom/groupbyinc/flux/index/translog/Translog$Operation;mn
oseqNo [q%] was processed twice in generation [s], with different data. prvOp [u-(Ljava/lang/Object;)Ljava/lang/StringBuilder;dw
`x
], newOp [zv2|^
\}java/lang/Throwable*(Ljava/lang/String;Ljava/lang/Throwable;)V8?
^?+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8?
??java/lang/RuntimeException?stack capture previous op?(Ljava/lang/String;)V8?
??'(Ljava/lang/Object;Ljava/lang/Object;)V8?
\?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????newOp7Lcom/groupbyinc/flux/index/translog/Translog$Operation;prvOppreviousrLcom/groupbyinc/flux/common/collect/Tuple;*Lcom/groupbyinc/flux/common/collect/Tuple;sync???????syncUpTo(J)Z??
?
syncNeeded()ZglobalCheckpoint?)	=?minTranslogGeneration?)	=?totalOperations
getCheckpoint1()Lcom/groupbyinc/flux/index/translog/Checkpoint;
(JIJJJJJ)V8?
=?sizeInBytescloseIntoReader5()Lcom/groupbyinc/flux/index/translog/TranslogReader;?S
?
; 
compareAndSet(ZZ)Z??
K?1com/groupbyinc/flux/index/translog/TranslogReader?getLastSyncedCheckpoint??
???	???	?getFirstOperationOffset?D
?f(Lcom/groupbyinc/flux/index/translog/Checkpoint;Ljava/nio/channels/FileChannel;Ljava/nio/file/Path;J)V8?
??Ecom/groupbyinc/flux/common/apache/lucene/store/AlreadyClosedException?
translog [?
getGeneration?D
?] is already closed (path [?
??eLjava/io/IOException;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8?
????
?getWrittenOffset??
?java/io/OutputStream?flush?S
????
?illegal state: ? <= ?checkpointToSync	readBytes(Ljava/nio/ByteBuffer;J)Vjava/nio/ByteBuffer?	remaining??
???D
?&com/groupbyinc/flux/common/io/Channels?#readFromFileChannelWithEofException8(Ljava/nio/channels/FileChannel;JLjava/nio/ByteBuffer;)V
?targetBufferLjava/nio/ByteBuffer;(Lcom/groupbyinc/flux/index/translog/ChannelFactory;JIJJJJLjava/nio/file/Path;J)Lcom/groupbyinc/flux/index/translog/Checkpoint;syncPosition
numOperationstranslogFiletranslog.ckp
resolve((Ljava/lang/String;)Ljava/nio/file/Path;
{java/nio/file/OpenOption java/nio/file/StandardOpenOptionWRITE"Ljava/nio/file/StandardOpenOption;	write?(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/Checkpoint;[Ljava/nio/file/OpenOption;)V
=isClosed?
] is already closed
B#W?
K"
access$000K(Lcom/groupbyinc/flux/index/translog/TranslogWriter;Ljava/lang/Exception;)Vx0x1java/lang/Class)desiredAssertionStatus+?
*,
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFileInnerClasses!.... B!"B#B$%&'B()B*)B+),-.-/01234/567890	*-?@?F?I*?KY?N?P*?RY?U?W?Y?@-?\?F??3?^Y?`Y?ac?g-?\?jl?g?F?jn?g?r?u?*,??*+??*??*?	Y*????????*-??*-?\???Y?-??????^Y-?????*-?????Y?-??????^Y-?????*-????*??*???
??Y??????1\	?? ?"??????,-.-2JYKM(ZY\k]p^u_{`?a?b?c?d?e?f?g?hi3T?k	wy=B{}?O$^?	wy=B{}?4;??09??Y*???ĸǬ1?2l??04
??``?1
?2p??0` *??*+?Ķ?*+??+??+?Ķ?1 ?? ??2tuvw4;	??0?
???Y+??:?ĸ?6??:
??Y
????:??
??? ????:???Y*

??:?Y
S??pq?1?-D??L%"s%????)??? ????,-?)?.-

x??nc??
2:}
~?-?4?:?@?G?L?Z?q?s??3*?qy
{w}?B?4;0/*??1??2?"0?6?Y?+??^Y??*??*+??*?+?*?+?!*?$?16??6%2???!?)?1?5?34;!%&0??*?)*??7+*???.?:*?0?:?!?*Y??+?2?a??*??????Y?*?4??^Y??*??????Y?*?4??^Y??**?? ?:??**?? ?=??*Y?4`?4?Y?* +?A??^Y???Y*?B+?2?E?
? ?1>"F%G%????HI?J)
?Z)2R??
????? ?"?)?,?:?E?Z?e?z?????????30?+??
+???-84;">?0??K????*???R?V??*???R?Z?\:?`?+-?c?v?eY-?i?l?p:?eY?`?+?i?l?p:?^Y?`Y?ar?g?jt?g*?B?jv?g?y{?g?yn?g?r?~??????.*???R?\Y??Y-??????Y???????W?1>Lc??cL??-???????J)?HI5-???26
???-?<?L?c?????????????3??*4;?S07	*???W?1	??2
??4;??0=*??*???\??+*????*??????*????*????????1=??2??'?<?37@??0/*?4?1??2? ??0`.?=Y*??*?4*?B*??*??*????*???????1.??2-?D0/*???1??2??0??*?WYL?*YM?*???N*-?0?:-??-?*?P?????Y*??*??*??*?˷?,?+ð??Y?`Y?aҶg*?նj׶g*?ȶyn?g?r*??ؿ:,??:+??;?J?M??L?M??1 F%?????2>!# %"1#M%?'?(3D?RR;?RR;??'t??R?4;??0?>*?WYL?*YM?*?)*???N??Y*???-??*??,?+ð:,??:+??;-0040/70;71??>??2*
0124756'8097:3*?RR;H??R??D02*?ƶF?1??2>4;??0?
?*???\???*???*?WYN?*???\???*???*Y:?*?)*????*??:?:*?0?:?!?ç:??*????*??*?ȹ??:*?0?:?!??Y?C*???\?\??3?^Y?`Y?a?g*???\?j?g?\?j?r?u?*??-ì-ç
:	-?	??	6CF?HNQ?2`cchck???????????????1\	C?"SF%HG%]?"?F%?G%k??"????Z)2vGHI-M2N6P=QCYFRHTNWQUSVZX]Zk^s_?g?`?b?e?c?d?f?h?j?k?m?o3??FRR??
RR???RR=?RR??R=\??
R?=??R=?E?	D??4;??0?B +???a*????,*Y:? +???a*????
*????ç:??*?? +??-00501 B??BBC)2tuz#{*}8?A?3?*RE??4;
0? ?=Y

??:*??1f
   )  *) +) ?) ?)
 	? >)
"2???4;
0[*+?,?Y?S??1  	?"2
??4;??0/*???1??2?'S0l1*??,??Y?`Y?aҶg*?նj ?g?r*??ؿ?11??2??0?30"S0O*?P???
*?ƶ!?1??2???34;?02*?P?#?1??2?$%0:*+?0?1&?'%214;(S04?-???Y?213@67	
		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy