dice
dice copied to clipboard
Fix/wal fatal on failure
fix: exit on WAL initialization failure to prevent data corruption
🔍 Overview
- Added a fatal log and immediate shutdown if WAL initialization fails.
- Prevents running in a corrupted state where data persistence is uncertain.
- Improves debugging by making WAL failures explicit.
- Reduces silent failures that could lead to data loss or unexpected crashes.
🛠️ Impact
✅ Ensures data durability by stopping execution when WAL fails.
✅ Helps debug issues faster by logging a clear fatal error.
✅ Prevents unintended behaviors due to partial WAL initialization.
🔄 Before vs After
Before:
- Logs an error but allows the server to continue running.
- Could lead to unexpected failures when WAL is required.
After:
- Immediately exits with a fatal error message.
- Ensures the database does not start in an unsafe state.
Please remove the Lincese Script changes from this PR.
@suhailroushan13 any updates?
Apologies for that — I’ve removed the license script changes from this PR as requested.
Let me know if there’s anything else I should update!
@suhailroushan13 because of last merge of your changes in license file, there are conflicts here. You will need to pull the latest changes and update this PR. This is gtg, I will merge it as soon as you resolve the conflicts. THanks.