Describe the bug
When attempting to set a value larger than the configured AofPageSize with EnableAOF set to true, the Set operation throws an exception: Tsavorite.core.TsavoriteException: Entry does not fit on page
After the exception is thrown, the client connection is closed and the value is not written to the AOF.
However, despite the rejected AOF write, subsequent GET operations for the key return the value successfully, resulting in a state where the in‑memory cache and the AOF are inconsistent.
Steps to reproduce the bug
- Start Garnet v1.1.6 with the following configuration:
{
"EnableAOF": true,
"Recover": true
}
- Set a value that exceeds the default AofPageSize of 4MB.
- Observe that the Set fails with:
Tsavorite.core.TsavoriteException: Entry does not fit on page
- Reconnect client and attempt to retrieve the key of the value that exceeded AofPageSize
Result
The entry is retrieved successfully.
The entry is not present in the AOF.
Expected behavior
AOF and memory cache are consistent when an entry exceeds AofPageSize
Screenshots
No response
Release version
v1.1.6
IDE
No response
OS version
Windows Server 2025
Additional context
Noticed after testing the fix for #1749 (the sample program from that issue can be used to reproduce this issue).
Describe the bug
When attempting to set a value larger than the configured AofPageSize with EnableAOF set to true, the Set operation throws an exception:
Tsavorite.core.TsavoriteException: Entry does not fit on pageAfter the exception is thrown, the client connection is closed and the value is not written to the AOF.
However, despite the rejected AOF write, subsequent GET operations for the key return the value successfully, resulting in a state where the in‑memory cache and the AOF are inconsistent.
Steps to reproduce the bug
Tsavorite.core.TsavoriteException: Entry does not fit on pageResult
The entry is retrieved successfully.
The entry is not present in the AOF.
Expected behavior
AOF and memory cache are consistent when an entry exceeds AofPageSize
Screenshots
No response
Release version
v1.1.6
IDE
No response
OS version
Windows Server 2025
Additional context
Noticed after testing the fix for #1749 (the sample program from that issue can be used to reproduce this issue).