Can there be many ExcerptAppender created from one Chronicle? I'm now experimenting with VanillaChronicle in a web environment. I initialize the Chronicle in the init and create ExcerptAppender. The doPost uses the ExcerptAppender instance of this Servlet and writes all the request parameter and its values to the index using the appender. How should this be approached?
In a multi-threaded environment, when I create two threads (started with 5 seconds delay) who have ExcerptAppender created from a single chronicle. I get
Exception in thread "writer1" java.lang.NullPointerException
at net.openhft.chronicle.VanillaChronicle$VanillaAppender.finish(VanillaChronicle.java:596)
at mn.WriterThread.run(VanillaTest.java:109)
at java.lang.Thread.run(Thread.java:744)
But when I create the VanillaChronicle, say in /tmp/traffic-data/index, in the thread, I get a smooth flow. The reader reads all the data written by both the threads. I couldn't find good docs on this. Is this a right approach to have multiple chronicles on same directory read by reader(s)?
thanks
--V