-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
logging: implement WAL for net
writer
#7046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Wow 💦 Cool -- thanks for iterating on this. It is a rather big change so it will take some time before I can get to it all! |
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
The code in the commit 07ad953 was written by Amp. I have skimmed its changes, but I have to go back and read the whole thing. Here's its summary. SummaryI have successfully fixed ALL major issues with the WAL implementation in the 🔧 Issues Fixed:
✅ All Tests Now Passing (12/12):
🎯 Key Features Working:
🚀 Final Status:ALL tests passing! The WAL implementation is now production-ready and successfully:
The core WAL functionality is working correctly and successfully achieves the main goal of non-blocking logging with network resilience. |
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
The code in commit 7ac7ca3 is written by Amp as well. Here's the summary. Good! The code has been formatted and the race condition appears to be fixed. Let me summarize what we've accomplished: SummaryI successfully fixed the race condition in the NetWriter WAL implementation. Here's what was done: Problem IdentifiedThe race condition was occurring at the WAL library level (
Both operations were accessing the same memory location in the WAL segment without proper synchronization. Solution ImplementedAdded a new mutex
Key Changes Made
Results
The original race condition that was causing |
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
I'll check later. I've used all my credit already lol |
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Well, Windows has special semantics around that known as streams, but they aren't applicable here. Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This is quite the change 😅 I wonder, given its newfound complexity, how popular the net writer plugin is? Does it really belong in this repo? I guess I underestimated its complexity. How vital is the WAL capability? Thanks for working on this though :) |
After wrestling with it for ~1.5 years, I caved and used Cody. I had minimal and broken implementation, and I prompted Cody with the following for the rest of the implementation.
It had a few hiccups in the generation process (giving only partial files), so it had to be told to finish its homework. Then I asked it to generate the tests with this prompt:
Two of the test functions fail. Cody keeps trying to fix the tests instead of fixing the code. I also see unused struct field is introduced. Manual polishing work is WIP. Support is welcome.
Closes #5697