-
Notifications
You must be signed in to change notification settings - Fork 215
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
Cleanup prepared statement during node close #675
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #675 +/- ##
==========================================
+ Coverage 77.84% 77.87% +0.02%
==========================================
Files 197 197
Lines 27761 27779 +18
Branches 5493 5538 +45
==========================================
+ Hits 21611 21633 +22
- Misses 4333 4420 +87
+ Partials 1817 1726 -91 ☔ View full report in Codecov by Sentry. |
I believe this is an artifact of codecov comparing the coverage numbers between your branch's HEAD and master's HEAD, instead of using the merge commit. If you look at the report, the patch lines that are listed as uncovered are all from the diff between |
For testing, I would try to add something in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test looks great, thank you!
After preparing more queries on k8s-dqlite, I've been hitting quite frequently some segfaults. They all seemed to be happening when a query is running and the node is shutting down.
Apparently, they were. There was some missing cleanup logic around prepared statements in
gateway__leader_close
. This PR adds that bit.I see that codecov report is showing a small regression in coverage. If someone from the dqlite team could guide me in testing this, I would be up for it.