infinity icon indicating copy to clipboard operation
infinity copied to clipboard

[Bug]: SwapWalFile may disable wal replay

Open yangzq50 opened this issue 1 year ago • 0 comments

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

  1. WalManager::SwapWalFile will swap a new wal file when the current wal file is too large.
  2. 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

yangzq50 avatar Mar 08 '24 06:03 yangzq50