Questions tagged [chronicle-queue]

Chronicle Queue is a persisted low-latency messaging framework for high performance and critical applications.

Resources

  1. SourceCode
  2. Stackoverflow Questions and Answers
  3. Getting started
  4. Java Docs
172 questions
0
votes
1 answer

How to close Chronicle resources correctly when appending in a callback?

Where should a class like this add try-with-resources so that it correctly closes resources? I presume the appender should be reused as shown, right? public class ChronicleWriter implements UpdateListener { private ExcerptAppender appender; …
Andrew
  • 1,031
  • 10
  • 24
0
votes
1 answer

How to restore writing to queue after failure

After disk space is finish I got InternalError. Adding disk space wasn't fix problem. Is it possible to restore and continue to persist? May be on error I can try to recreate/close? Creation of the queue queue =…
0
votes
1 answer

Catagorizing messages in chronicle queue for reading

I want to use chronicle queue to store messages using the high level API as mentioned in the answer of this question. But I also want some kind of key for my messages as mentioned here 1.) Firstly , is this the right/efficient way to read/write…
Plaiska
  • 166
  • 2
  • 11
0
votes
2 answers

Why does Chronicle Queue not define Weekly RollCycles?

Why are there no WEEKLY RollCycles defined? Is there some reason they should not be used?
Andrew
  • 1,031
  • 10
  • 24
0
votes
1 answer

Chronicle Queue - reader/tailer latency when run at same time while writing

I'm setting up a market data back-testing using Chronicle Queue (CQ), reading data from a binary file then writing into a single CQ and simultaneously reading the data from that CQ and dumping the statistics. I am doing a POC to replace our existing…
0
votes
2 answers

Chronicle Queue issue with certain boxes

In certain container boxes chronicle queue is not working.I am seeing this exception: 2018-11-17 16:30:57.825 [failsafe-sender] WARN n.o.c.q.i.s.SingleChronicleQueueExcerpts$StoreTailer - Unable to append EOF,…
0
votes
0 answers

I want to realize transaction Match .can I use chronicle in it?

I want to realize transaction Match .can I use chronicle in it ? and How to use it ? thanks. I am writing log with it.but some error happend like : Problematic frame: J 927 C2…
ostky
  • 1
  • 1
0
votes
2 answers

NPE exception when reading from queue when old queue data files are deleted

I opened an issue for this: https://github.com/OpenHFT/Chronicle-Queue/issues/534 I am trying to implement periodic old queue file purge logic using StoreFileListener. I am using latest release net.openhft:chronicle-queue:5.16.13. The issue I am…
0
votes
1 answer

Multithread and Chronicle queue

so I'm trying to see what's the fastest way to write to Chronicle Queue in a multithread env so I have the following: public static void main(String[] args) throws Exception{ final String path = args[0]; int times =…
Theboy
  • 353
  • 1
  • 2
  • 8
0
votes
1 answer

Chronicle queue : AssertionError (header inside header) when writing byte array

I am using chronicle queue v4 for writing serialized object to queue. But I keep getting below Exception Exception in thread "CLF-1" java.lang.AssertionError: you cant put a header inside a header, check that you have not nested the documents. …
0
votes
2 answers

ChronicleQueue - Unable to cleanup older CQ4 files

I am using CronicleQueue and I have only one writer/reader. Wanted to cleanup as soon as the reader is done with a CQ4 file. The following code wasn't able to remove the file, is the file reference still held by CQ during onReleased()…
Sathish Kumar
  • 313
  • 2
  • 15
0
votes
1 answer

ChronicleQueue - how to read custom object from tailer

I am very new to ChronicleQueue and I am unable to find a straight forward example of how can I read back my custom object from a tailer. public class MyData extends AbstractMarshallable I have my class containing some strings and numbers, I am…
Sathish Kumar
  • 313
  • 2
  • 15
0
votes
0 answers

In ChronicleQueue how to understand that the file read is complete or not, in side onRelease method

I have a chronicle reader (ExcerptTailer), Code follows, ChronicleQueue queue = ChronicleQueueBuilder.single(chroniclePath).storeFileListener(new StoreFileListener() { @Override public void onReleased(int cycle, File file) { …
Devas
  • 1,544
  • 4
  • 23
  • 28
0
votes
1 answer

Chronicle queue + log4j2 async logger

I use log4j2 2.10.0 and have the following code: SingleChronicleQueue q = SingleChronicleQueueBuilder.binary(args[0]).blockSize(536870912).build(); ExcerptAppender a = q.acquireAppender(); char[] chars =…
Theboy
  • 353
  • 1
  • 2
  • 8
0
votes
1 answer

Start process queue from where I was?

I have started playing with chronicle and I wrote a process that basically listen to the chronicle queue and do something with it. So every time it restarts, it will reprocess all the events in the file... I wonder what's the best way to do it such…
Theboy
  • 353
  • 1
  • 2
  • 8