AOF Replay replays 0 bytes despite a correctly populated AOF #1569
Unanswered
Greg Slasor FIS (slasorg)
asked this question in
Q&A
Replies: 1 comment 2 replies
|
You need to ensure the AOF is actually committed before you stop/restart:
There is no need to set the EnableFastCommit to false. Once an AOF commit has happened, restart should replay the entries and DB0 should come back. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the Issue
With
EnableAOF=trueandRecover=true, AOF replay consistently replays 0 bytes despite a populated AOF file presentSteps to Reproduce
Garnet server config is as follows (starting from a small C# console app) :
After writing to db0 using Stackexchange.Redis 2.8.31 the value is visible via a RESP client and the db0 AOF file is created (and its contents correct):
However restarting the Garnet server does not restore db0 (it is empty).
Starting the server with logging on (using an equivalent
garnet.confin this case as the POCO doesn't expose a log path) we consistently log replaying 0 records for db0 AOF :Expected Behaviour
The value previously written to db0 is restored successfully on server restart
Actual Behaviour
AOF replay consistently replays 0 records/0 bytes
Environment
Garnet 1.0.84
Stackexchange.Redis 2.8.31
Windows 11 23H2
.NET 10 (10.0.102)
Questions
I suspect this is due to AOF sizing and configuration? I have read similar issues where the AOF doesn't recover due to records exceeding the page size, but in this case the AOF file (which is a single record) is ~112KB and so I would not expect this to be sizing related?
All reactions