this.chronicle = ChronicleQueueBuilder.single(myDir)
.buffered(false)
.rollCycle(RollCycles.HOURLY)
.wireType(WireType.FIELDLESS_BINARY)
.blockSize(4096*4096)
.build();
...
//In a loop,
ExcerptAppender appender = this.chronicle.acquireAppender();
appender.writeBytes(message.payload);
@Override
public void writeMarshallable(BytesOut out) {
out.writeByte(VERSION);
out.writeLong(this.receivedTime);
//this.payload is a non-empty ByteBuffer
this.payload.rewind();
out.writeUnsignedShort(this.payload.remaining());
out.writeUtf8(this.channelId);
while (this.payload.remaining() > 0) {
out.writeSome(this.payload);
}
out.writeLong(this.receivedNanoTime);
}
15:22:22.595 [QueuedChannelMessageHandler] ERROR com.<>.QueuedDirectChannel - Exception while processing message 50
java.lang.AssertionError: ~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127767 seq1: 100 seq2: 196
at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreAppender.checkWritePositionHeaderNumber(SingleChronicleQueueExcerpts.java:438) ~[classes/:?]
at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreAppender.writingDocument(SingleChronicleQueueExcerpts.java:352) ~[classes/:?]
at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreAppender.writeBytes(SingleChronicleQueueExcerpts.java:159) ~[classes/:?]
at com.<>.QueuedDirectChannel.writeMessageToChron(CamlQueuedDirectChannel.java:198) [classes/:?]
at com.<>.QueuedDirectChannel.access$5(QueuedDirectChannel.java:191) [classes/:?]
at com.<>.QueuedDirectChannel$Processor.run(QueuedDirectChannel.java:283) [classes/:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127146 seq1: 99 seq2: 99
~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127146 seq1: 99 seq2: 99
~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127767 seq1: 100 seq2: 100
~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127767 seq1: 100 seq2: 100
~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 128393 seq1: 101 seq2: 101
[ERR]~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127767 seq1: 100 seq2: 196
15:22:22.595 [QueuedChannelMessageHandler] ERROR com.<>.QueuedDirectChannel - Exception while processing message 50
java.lang.AssertionError: ~~~~~~~~~~~~~~ thread: QueuedChannelMessageHandler pos1: 127767 seq1: 100 seq2: 196
Hello,
Could you create a unit test which recreates this issue so we can look into it?
Regards, Peter.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
java.lang.AssertionError: ~~~~~~~~~~~~~~ thread: main pos1: 74395 seq1: 13 seq2: 21 at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreAppender.checkWritePositionHeaderNumber(SingleChronicleQueueExcerpts.java:438) at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreAppender$StoreAppenderContext.close(SingleChronicleQueueExcerpts.java:834) at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreAppender.writeBytes(SingleChronicleQueueExcerpts.java:164) at com.chronicle.test.MultiThreadTest.chronTestWithRealtimeTailer(MultiThreadTest.java:133)
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
<MultiThreadTest.java>