Skip to content

Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC [MOD-7867]#5071

Merged
alonre24 merged 5 commits intomasterfrom
handle_timeout_fork_gc
Oct 7, 2024
Merged

Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC [MOD-7867]#5071
alonre24 merged 5 commits intomasterfrom
handle_timeout_fork_gc

Conversation

@alonre24
Copy link
Collaborator

@alonre24 alonre24 commented Oct 1, 2024

Describe the changes in the pull request

When we run forceInvokeGC, there is a default timeout in the debug command that blocks the client, triggering forkGC in the background and then replying. However, we saw that this timeout frequently reached in sanitizer tests, in which case we kill the child fork GC process upon shutting down the environment and the thread running the GC is stuck waiting for the child process pipe.
Hence, we move the force GC in the test to run in the background while we update vectors and wait for the fork GC without timeout when finishing the test.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@alonre24 alonre24 requested a review from meiravgri October 1, 2024 11:30
@codecov
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.30%. Comparing base (1f362de) to head (3ad41cd).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5071   +/-   ##
=======================================
  Coverage   86.30%   86.30%           
=======================================
  Files         190      190           
  Lines       34601    34601           
=======================================
  Hits        29861    29861           
  Misses       4740     4740           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alonre24 alonre24 changed the title Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC [MOD-7867] Oct 1, 2024
@alonre24 alonre24 requested a review from GuyAv46 October 1, 2024 11:57
GuyAv46
GuyAv46 previously approved these changes Oct 1, 2024
@alonre24 alonre24 added this pull request to the merge queue Oct 6, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 6, 2024
…C [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR
@alonre24 alonre24 removed this pull request from the merge queue due to a manual request Oct 6, 2024
@alonre24 alonre24 enabled auto-merge October 6, 2024 09:01
@alonre24 alonre24 added this pull request to the merge queue Oct 7, 2024
Merged via the queue into master with commit 67e5046 Oct 7, 2024
@alonre24 alonre24 deleted the handle_timeout_fork_gc branch October 7, 2024 10:12
@github-actions
Copy link

github-actions bot commented Oct 7, 2024

github-actions bot pushed a commit that referenced this pull request Oct 7, 2024
…C [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR

* split helper force invoke GC in test

(cherry picked from commit 67e5046)
github-actions bot pushed a commit that referenced this pull request Oct 7, 2024
…C [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR

* split helper force invoke GC in test

(cherry picked from commit 67e5046)
@github-actions
Copy link

github-actions bot commented Oct 7, 2024

@github-actions
Copy link

github-actions bot commented Oct 7, 2024

github-actions bot pushed a commit that referenced this pull request Oct 7, 2024
…C [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR

* split helper force invoke GC in test

(cherry picked from commit 67e5046)
github-merge-queue bot pushed a commit that referenced this pull request Oct 7, 2024
…voke GC [MOD-7867] (#5080)

Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR

* split helper force invoke GC in test

(cherry picked from commit 67e5046)

Co-authored-by: alonre24 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Oct 7, 2024
…nvoke GC [MOD-7867] (#5081)

Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR

* split helper force invoke GC in test

(cherry picked from commit 67e5046)

Co-authored-by: alonre24 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Oct 7, 2024
…voke GC [MOD-7867] (#5082)

Fix flaky test_async_updates_sanity - avoid timeout in force invoke GC [MOD-7867] (#5071)

* use inf timeout so we wont hang

* Guy CR

* split helper force invoke GC in test

(cherry picked from commit 67e5046)

Co-authored-by: alonre24 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants