Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

searcher: always call Wait on comby processes#50034

Merged
keegancsmith merged 2 commits into
mainfrom
k/comby-cleanup
Mar 28, 2023
Merged

searcher: always call Wait on comby processes#50034
keegancsmith merged 2 commits into
mainfrom
k/comby-cleanup

Conversation

@keegancsmith

Copy link
Copy Markdown
Member

If you call Start you must always call Wait to free up resources. In particular this is the likely cause of a huge goroutine leak in the searcher process which all blames to the os/exec package waiting on a context.

This was an accidental regression introduced when this code was ported to using conc. Previously it would always call Wait, but now if something in the introduced pool fails, we don't call Wait.

Test Plan: CI

Likely fix for https://github.com/sourcegraph/sourcegraph/issues/49987

If you call Start you _must_ always call Wait to free up resources. In
particular this is the likely cause of a huge goroutine leak in the
searcher process which all blames to the os/exec package waiting on a
context.

This was an accidental regression introduced when this code was ported
to using conc. Previously it would always call Wait, but now if
something in the introduced pool fails, we don't call Wait.

Test Plan: CI
@keegancsmith keegancsmith requested a review from a team March 27, 2023 18:24
@cla-bot cla-bot Bot added the cla-signed label Mar 27, 2023
@keegancsmith keegancsmith enabled auto-merge (squash) March 28, 2023 08:13
auto-merge was automatically disabled March 28, 2023 11:19

Merge could not be authorized

@keegancsmith keegancsmith merged commit 257ba04 into main Mar 28, 2023
@keegancsmith keegancsmith deleted the k/comby-cleanup branch March 28, 2023 14:14
github-actions Bot pushed a commit that referenced this pull request Apr 3, 2023
If you call Start you _must_ always call Wait to free up resources. In
particular this is the likely cause of a huge goroutine leak in the
searcher process which all blames to the os/exec package waiting on a
context.

This was an accidental regression introduced when this code was ported
to using conc. Previously it would always call Wait, but now if
something in the introduced pool fails, we don't call Wait.

Test Plan: CI

(cherry picked from commit 257ba04)
keegancsmith added a commit that referenced this pull request Apr 3, 2023
If you call Start you _must_ always call Wait to free up resources. In
particular this is the likely cause of a huge goroutine leak in the
searcher process which all blames to the os/exec package waiting on a
context.

This was an accidental regression introduced when this code was ported
to using conc. Previously it would always call Wait, but now if
something in the introduced pool fails, we don't call Wait.

Test Plan: CI

Backport 257ba04 from #50034

Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants