Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131176: roachtest: prevent leaked goroutine in mvccgc roachtest r=tbg a=tbg Noticed while looking at the artifacts for an unrelated test failure: ``` goroutine 686898 [chan send, 446 minutes]: github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests.runMVCCGC.func3.1() github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests/mvcc_gc.go:153 +0x85e created by github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests.runMVCCGC.func3 in goroutine 686834 github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests/mvcc_gc.go:142 +0x689 ``` This is because the test doesn't consume from this unbuffered channel, thereby leaking the worker goroutine forever. Making the result channel 1-buffered avoids this problem. Epic: none Release note: None Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information