Add global marked deleted to stats [MOD-6053]#5183
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5183 +/- ##
==========================================
+ Coverage 86.55% 86.59% +0.03%
==========================================
Files 193 193
Lines 34756 34768 +12
==========================================
+ Hits 30083 30106 +23
+ Misses 4673 4662 -11 ☔ View full report in Codecov by Sentry. |
GuyAv46
left a comment
There was a problem hiding this comment.
Nice
A few comments
Note that you can hold the GIL in most if not all of the places you used the new counter API. Consider ensuring that and remove the need for atomic counting and reading
meiravgri
left a comment
There was a problem hiding this comment.
nice and clean (tartei)
|
|
||
| static void onTerminateCb(void *privdata) { | ||
| ForkGC *gc = privdata; | ||
| IndexsGlobalStats_UpdateLogicallyDeleted(-gc->deletedDocsFromLastRun); |
There was a problem hiding this comment.
is there a scenario where the gc is manually stopped and this callback will not be called?
There was a problem hiding this comment.
Shouldn't be. If so, and the spec is dropped, then no one frees the GC and we get a leak
* Add global marked deleted to stats * Fix leak * CR - moving updates to where index spec is held, using int64 for safety * Addressing CR - adding unit test, protecting the update * move for readability * improve test (cherry picked from commit b4d2109)
|
Successfully created backport PR for |
|
Successfully created backport PR for |
* Add global marked deleted to stats * Fix leak * CR - moving updates to where index spec is held, using int64 for safety * Addressing CR - adding unit test, protecting the update * move for readability * improve test (cherry picked from commit b4d2109)
* Add global marked deleted to stats [MOD-6053] (#5183) * Add global marked deleted to stats * Fix leak * CR - moving updates to where index spec is held, using int64 for safety * Addressing CR - adding unit test, protecting the update * move for readability * improve test (cherry picked from commit b4d2109) * remove monitorDocumentExpiration that wasn't cp'd * deflake test --------- Co-authored-by: alonre24 <[email protected]>
* Add global marked deleted to stats [MOD-6053] (#5183) * Add global marked deleted to stats * Fix leak * CR - moving updates to where index spec is held, using int64 for safety * Addressing CR - adding unit test, protecting the update * move for readability * improve test (cherry picked from commit b4d2109) * remove monitorDocumentExpiration that wasn't cp'd * deflake test --------- Co-authored-by: alonre24 <[email protected]>
Describe the changes in the pull request
Add the total logically deleted documents (i.e., documents that were deleted and have not yet been handled by the GC) among all indexes to the global shard info report.
Mark if applicable