Search code examples
chroniclechronicle-queue

Does chronicle queue have problems rolling daily if I skip weekends?


I have a process that runs at 1 am and is stopped at 11pm everyday using crontab. This creates a chronicle queue file everyday, and because cleaning up is tedious, I changed the crontab to only run on weekdays on Apr 14. Today Apr 17, I checked the files and I found:

Files created

For some reason, today it created a file for yesterday Apr 16, and then rolled over again for Apr 17? I m not using anything different for creating a queue.

QUEUE = SingleChronicleQueueBuilder.single(prop.getProperty("CHRONICLE_PATH"))
                .rollCycle(RollCycles.FAST_DAILY).build();

edit: I just came in this week (24th April) and found this.

it is still happening

the crontab i use


Solution

  • You seem to have some data for the 16th. The default timezone is GMT so if you are in another timezone, you could see files that don't exactly match your local time.