Chronicle Queue在跳过周末时滚动每日是否有问题?

huangapple go评论94阅读模式
英文:

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

问题

I have a process that runs at 1 am and is stopped at 11 pm 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:

Chronicle Queue在跳过周末时滚动每日是否有问题?

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.

Chronicle Queue在跳过周末时滚动每日是否有问题?

Chronicle Queue在跳过周末时滚动每日是否有问题?

英文:

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:

Chronicle Queue在跳过周末时滚动每日是否有问题?

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.

Chronicle Queue在跳过周末时滚动每日是否有问题?

Chronicle Queue在跳过周末时滚动每日是否有问题?

答案1

得分: 2

你似乎有一些关于16号的数据。默认时区是GMT,所以如果你在另一个时区,你可能会看到与你本地时间不完全匹配的文件。

英文:

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.

huangapple
  • 本文由 发表于 2023年4月17日 11:01:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76031447.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定