lock before opening indexes if info - [MOD-10007] [MOD-9761]#6279
lock before opening indexes if info - [MOD-10007] [MOD-9761]#6279BenGoldberger merged 31 commits intomasterfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6279 +/- ##
==========================================
- Coverage 88.78% 88.77% -0.01%
==========================================
Files 243 243
Lines 40893 40900 +7
Branches 3483 3483
==========================================
+ Hits 36307 36311 +4
- Misses 4543 4546 +3
Partials 43 43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // Buff shouldn't be NULL. | ||
| static void FGC_sendFixed(ForkGC *fgc, const void *buff, size_t len) { | ||
| RS_LOG_ASSERT(len > 0, "buffer length cannot be 0"); | ||
| ssize_t size = write(fgc->pipefd[GC_WRITERFD], buff, len); |
There was a problem hiding this comment.
@BenGoldberger how are these GC changes related to the info changes and the locking placement?
There was a problem hiding this comment.
If they are not, then maybe move them to a different PR?
There was a problem hiding this comment.
It a small fix to an issue that came up while testing this, so I think it fine to include it here.
There was a problem hiding this comment.
The GC changes are not related directly, but they are needed to deflake tests. We could move it to a different PR, but since it is a small fix and PR is ready, I suggest we leave it as is. @BenGoldberger, please update the PR description and the MOD tickets that are related
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.8
git worktree add -d .worktree/backport-6279-to-2.8 origin/2.8
cd .worktree/backport-6279-to-2.8
git switch --create backport-6279-to-2.8
git cherry-pick -x 52cbc9c53a83f1cefcf2807ab4fc06fac5c1ca77 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.10
git worktree add -d .worktree/backport-6279-to-2.10 origin/2.10
cd .worktree/backport-6279-to-2.10
git switch --create backport-6279-to-2.10
git cherry-pick -x 52cbc9c53a83f1cefcf2807ab4fc06fac5c1ca77 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.0
git worktree add -d .worktree/backport-6279-to-8.0 origin/8.0
cd .worktree/backport-6279-to-8.0
git switch --create backport-6279-to-8.0
git cherry-pick -x 52cbc9c53a83f1cefcf2807ab4fc06fac5c1ca77 |
* move the lock to include the opening of the indexes * add pytest * try to fix test * fix test * move lock sooner * spell checker * try to fix test * pr changes * pr changes * remove debugPrint in test * remove debug prints * add gc invokes while deleting docs * add timeout before read * add the timeout to gc struct * change timeout to 3 min * try to change the while * switch to poll * refactor gc struct * add gc_wait in test * pr changes * pr changes * pr changes * pr change * try to fix leak in test * revert priority change * remove deps changes * pr changes * revert len check (cherry picked from commit 52cbc9c)
* move the lock to include the opening of the indexes * add pytest * try to fix test * fix test * move lock sooner * spell checker * try to fix test * pr changes * pr changes * remove debugPrint in test * remove debug prints * add gc invokes while deleting docs * add timeout before read * add the timeout to gc struct * change timeout to 3 min * try to change the while * switch to poll * refactor gc struct * add gc_wait in test * pr changes * pr changes * pr changes * pr change * try to fix leak in test * revert priority change * remove deps changes * pr changes * revert len check (cherry picked from commit 52cbc9c)
* move the lock to include the opening of the indexes * add pytest * try to fix test * fix test * move lock sooner * spell checker * try to fix test * pr changes * pr changes * remove debugPrint in test * remove debug prints * add gc invokes while deleting docs * add timeout before read * add the timeout to gc struct * change timeout to 3 min * try to change the while * switch to poll * refactor gc struct * add gc_wait in test * pr changes * pr changes * pr changes * pr change * try to fix leak in test * revert priority change * remove deps changes * pr changes * revert len check (cherry picked from commit 52cbc9c)
…6279) (#6338) lock before opening indexes if info - [MOD-10007] (#6279) * move the lock to include the opening of the indexes * add pytest * try to fix test * fix test * move lock sooner * spell checker * try to fix test * pr changes * pr changes * remove debugPrint in test * remove debug prints * add gc invokes while deleting docs * add timeout before read * add the timeout to gc struct * change timeout to 3 min * try to change the while * switch to poll * refactor gc struct * add gc_wait in test * pr changes * pr changes * pr changes * pr change * try to fix leak in test * revert priority change * remove deps changes * pr changes * revert len check (cherry picked from commit 52cbc9c)
…6279) (#6340) lock before opening indexes if info - [MOD-10007] (#6279) * move the lock to include the opening of the indexes * add pytest * try to fix test * fix test * move lock sooner * spell checker * try to fix test * pr changes * pr changes * remove debugPrint in test * remove debug prints * add gc invokes while deleting docs * add timeout before read * add the timeout to gc struct * change timeout to 3 min * try to change the while * switch to poll * refactor gc struct * add gc_wait in test * pr changes * pr changes * pr changes * pr change * try to fix leak in test * revert priority change * remove deps changes * pr changes * revert len check (cherry picked from commit 52cbc9c)
…6279) (#6339) lock before opening indexes if info - [MOD-10007] (#6279) * move the lock to include the opening of the indexes * add pytest * try to fix test * fix test * move lock sooner * spell checker * try to fix test * pr changes * pr changes * remove debugPrint in test * remove debug prints * add gc invokes while deleting docs * add timeout before read * add the timeout to gc struct * change timeout to 3 min * try to change the while * switch to poll * refactor gc struct * add gc_wait in test * pr changes * pr changes * pr changes * pr change * try to fix leak in test * revert priority change * remove deps changes * pr changes * revert len check (cherry picked from commit 52cbc9c)
Move the locking of the spec in IndexInfoCommand->fillReplyWithIndexInfo
Hopefully this will fix the bug and some flaky tests
Plus handle the while loop in FGC_recvFixed, that seems to block the gc thread