infinity
infinity copied to clipboard
[Bug]: SwapWalFile may disable wal replay
Is there an existing issue for the same bug?
- [X] I have checked the existing issues.
Branch name
main
Commit ID
f3f9a24
Other environment information
No response
Actual behavior
- WalManager::SwapWalFile will swap a new wal file when the current wal file is too large.
- WalManager::ReplayWalFile will skip wal replay if size of wal.log is 0.
Expected behavior
No response
Steps to reproduce
1. append 25165825 rows to one table
2. wal.log will be renamed to wal.log.6
3. an empty wal.log file will be created
4. wal replay fails
Additional information
No response