tporadowski / redis

Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
http://redis.io
Other
9.03k stars 1.1k forks source link

Error trying to rename the existing AOF to old tempfile: 系统找不到指定的文件。 #107

Closed bbqkj closed 3 years ago

bbqkj commented 3 years ago

Describe the bug/issue

aof重写的时候报了以下错误,进入假死状态 Error trying to rename the existing AOF to old tempfile: 系统找不到指定的文件。

To Reproduce aof重写有一定概率假死

Event Log [23616] 11 Apr 10:44:39.893 Starting automatic rewriting of AOF on 8836% growth [23616] 11 Apr 10:44:39.897 Background append only file rewriting started by pid 12048 [23616] 11 Apr 10:44:40.027 AOF rewrite child asks to stop sending diffs. [23616] 11 Apr 10:44:40.099 # fork operation complete [23616] 11 Apr 10:44:40.125 Background AOF rewrite terminated with success [23616] 11 Apr 10:44:40.126 * Residual parent diff successfully flushed to the rewritten AOF (0.00 MB) [23616] 11 Apr 10:44:40.126 # Error trying to rename the existing AOF to old tempfile: 系统找不到指定的文件。

Additional context 5.0.10

O$1QGY13U1ANAA66`}001ZX

bbqkj commented 3 years ago

rename概率性失败 rename失败后就阻塞了 导致假死 是否应该多次重试 目前我是设置了no-appendfsync-on-rewrite,再观察后续。