Chronicle-Queue icon indicating copy to clipboard operation
Chronicle-Queue copied to clipboard

Message missed during file roll over.

Open skaminen opened this issue 3 years ago • 1 comments

Hi ,

We have a 2 process model. A Inbound process writes messages to chronicle que. The Outbound process is reading messages from chronicle que. Both inbound and outbound are running on same box. Both outbound and Inbound process makes sure all messages are processed by checking a sequence number in the message. We are noticing that sometimes the very first message after file rollover is missed by outbound process. If we copy chronicle files to a different box and read them to check, we see the missing message is in the files. The outbound process somehow did not get callback.

We are using below version of chronicle

net.openhft chronicle-queue 5.21ea8

Reads are done using below method.

long curIndex = -1 ; try (DocumentContext dc = tailer.readingDocument()) { if (dc.isPresent()) { Bytes bytes = dc.wire().bytes(); wireMessage.readMarshallable(bytes) ; curIndex = dc.index() ; } } return curIndex ;

skaminen avatar Aug 04 '22 16:08 skaminen

I would try on a more recent version as that version is old and there have been numerous fixes since then

JerryShea avatar Aug 05 '22 01:08 JerryShea

closing, as this is likely fixed in a newer version, please reopen if this is not the case

RobAustin avatar Sep 12 '22 11:09 RobAustin

Thanks.

Looks like newer version has fixed the issue. no occurrences of the issue after the update.

Thanks,

skaminen avatar Sep 12 '22 12:09 skaminen