Skip to content

crl-release-25.4: fix goroutine leaks in tests#5876

Merged
annrpom merged 2 commits intocockroachdb:crl-release-25.4from
annrpom:25.4-goroutine
Apr 8, 2026
Merged

crl-release-25.4: fix goroutine leaks in tests#5876
annrpom merged 2 commits intocockroachdb:crl-release-25.4from
annrpom:25.4-goroutine

Conversation

@annrpom
Copy link
Copy Markdown
Contributor

@annrpom annrpom commented Apr 1, 2026

No description provided.

Add `defer leaktest.AfterTest()` (using the `add-leaktest.sh` script
from crlib).
This commit fixes a number of goroutine leaks in tests. A few are not
easy to fix and they are used as a TODO (but note that these ones
don't leak databases that can spawn new goroutines that can cause
false leaks in unrelated tests).
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@annrpom
Copy link
Copy Markdown
Contributor Author

annrpom commented Apr 2, 2026

The original goal of this was spurred through some AI (and self) delusion trying to fix #5825; I'll still put this up since this change seems to be beneficial nonetheless

@annrpom annrpom marked this pull request as ready for review April 2, 2026 15:14
@annrpom annrpom requested a review from a team as a code owner April 2, 2026 15:14
@annrpom annrpom requested a review from RaduBerinde April 2, 2026 15:14
@annrpom
Copy link
Copy Markdown
Contributor Author

annrpom commented Apr 8, 2026

TFTR! ('-')7

@annrpom annrpom merged commit b9a9fc9 into cockroachdb:crl-release-25.4 Apr 8, 2026
8 checks passed
@annrpom annrpom deleted the 25.4-goroutine branch April 8, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants