wodingyang opened a new issue, #7468:
URL: https://github.com/apache/apisix/issues/7468
### Current Behavior
测试环境中开启log-rotate插件,配置如下:
plugin_attr:
log-rotate:
interval: 21600 # rotate interval (unit: second)
max_kept: 20 # max number of log files will be kept
enable_compression: false # enable log file compression(gzip) or not,
default false
观察几天后发现丢失了一份文件,如下:

猜测是否与实例重启有关,查看重启时间为15点19分,但丢失的文件应该是14点的,再查看其他机器实例,如下:

同样是15点19分重启过的但是没有丢失文件。
该问题是在交流群中有人反馈出现丢失文件问题后,我在自己的测试环境持续测试中发现的
### Expected Behavior
_No response_
### Error Logs
_No response_
### Steps to Reproduce
1.启动apisix实例并开启log-rotate插件,每6小时切割生成一份日志文件,最多保存20份
2.启动测试程序,每分钟执行一定的调用,观察access.log文件可以正确记录日志
3.持续观察每日切割的文件
### Environment
- APISIX version (run `apisix version`):2.14.1
- Operating system (run `uname -a`):3.10.0-957.27.2.el7.x86_64 #1 SMP Mon
Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):1.21.4.1
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):3.5.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]