Please ask me a question ,My operation is as follows: Stop the write operation on the redis server, and then execute bgrewrite AOF. The AOF file is changed from 18G to 13g. Then restart, why did AOF become 18G after redis started?

Comment From: oranagra

@myysophia i'm not sure i fully understand the scenario. you're saying that restarting redis caused the AOF file to grow from 13g to 18g, and there's no write traffic at that time? can you show some info? e.g. the command stats or better yet, INFO ALL before and after the restart.

Comment From: leikang123

请教一个问题,我的操作如下: 停止redis服务器上的写操作,然后执行bgrewrite AOF。AOF文件从18G变成了13g。然后重启,为什么redis启动后AOF变成了18G? Aof is from 13G to 18G, there is no data written in the middle, or the configuration is wrong, check it, otherwise it is a persistent data problem.