cockroachdb / cockroachdb/cockroach
release-26.3: sql/logictest: TestParallel failed
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
sql/logictest.TestParallel [failed](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Ci_TestsAwsLinuxArm64_UnitTests/21521734?buildTab=log) with [artifacts](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Ci_TestsAwsLinuxArm64_UnitTests/21521734?buildTab=artifacts#/) on release-26.3 @ [7fc12125563adc1e1e4455b002530f7a3f440dc2](https://github.com/cockroachdb/cockroach/commits/7fc12125563adc1e1e4455b002530f7a3f440dc2):
```
sync.runtime_SemacquireWaitGroup(0x8ab8d58fa18?, 0x5c?)
GOROOT/src/runtime/sema.go:114 +0x38
sync.(*WaitGroup).Wait(0x8ab7f2e4e08)
GOROOT/src/sync/waitgroup.go:206 +0xa8
golang.org/x/sync/errgroup.(*Group).Wait(0x8ab7f2e4e00)
external/org_golang_x_sync/errgroup/errgroup.go:56 +0x28
github.com/cockroachdb/cockroach/pkg/util/ctxgroup.Group.Wait({0x8ab7f2e4e00?, {0x6481418?, 0x8ab8816a0a0?}, 0x8ab853aabd0?})
pkg/util/ctxgroup/ctxgroup.go:148 +0x64
github.com/cockroachdb/cockroach/pkg/util/ctxgroup.GoAndWait({0x6481450?, 0x8ab7efca930?}, {0x8ab8d58fc50, 0x2, 0x54fcd40?})
pkg/util/ctxgroup/ctxgroup.go:224 +0x100
github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed.(*RangeFeed).run(0x8ab80264380, {0x6481450, 0x8ab7efca930}, {0x64e5760, 0x8ab88000be0}, 0x0)
pkg/kv/kvclient/rangefeed/rangefeed.go:396 +0x8f0
github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed.(*RangeFeed).start.func1({0x6481418?, 0x8ab88000c30?})
pkg/kv/kvclient/rangefeed/rangefeed.go:256 +0x260
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func1({0x6481418, 0x8ab88000c30})
pkg/util/stop/stopper.go:447 +0x7c
created by github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx in goroutine 17992
pkg/util/stop/stopper.go:445 +0xe0
goroutine 40822 [select]:
github.com/cockroachdb/cockroach/pkg/sql/stats.(*Refresher).Start.func1.2({0x6484370, 0x8ab875be140})
pkg/sql/stats/automatic_stats.go:679 +0x120
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func1({0x6484370, 0x8ab875be140})
pkg/util/stop/stopper.go:447 +0x7c
created by github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx in goroutine 4325
pkg/util/stop/stopper.go:445 +0xe0
goroutine 41620 [select]:
github.com/cockroachdb/cockroach/pkg/sql/stats.(*Refresher).Start.func1.2({0x6484370, 0x8ab84e11400})
pkg/sql/stats/automatic_stats.go:679 +0x120
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func1({0x6484370, 0x8ab84e11400})
pkg/util/stop/stopper.go:447 +0x7c
created by github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx in goroutine 6073
pkg/util/stop/stopper.go:445 +0xe0
goroutine 40742 [select]:
github.com/cockroachdb/cockroach/pkg/rpc.(*pooledStream[...]).runOnce(0x64de600, {0x6481418, 0x8ab7e89e320})
pkg/rpc/stream_pool.go:107 +0xa0
github.com/cockroachdb/cockroach/pkg/rpc.(*pooledStream[...]).run(0x64de600, {0x6481418, 0x8ab7e89e320})
pkg/rpc/stream_pool.go:102 +0x70
github.com/cockroachdb/cockroach/pkg/rpc.(*streamPool[...]).newPooledStream.func2()
pkg/rpc/stream_pool.go:314 +0x88
created by github.com/cockroachdb/cockroach/pkg/rpc.(*streamPool[...]).newPooledStream in goroutine 2709
pkg/rpc/stream_pool.go:312 +0x23c
goroutine 40741 [select]:
google.golang.org/grpc.newClientStreamWithParams.func4()
external/org_golang_google_grpc/stream.go:383 +0x84
created by google.golang.org/grpc.newClientStreamWithParams in goroutine 2709
external/org_golang_google_grpc/stream.go:382 +0xa24
```
Help
See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)
[This test on roachdash](https://roachdash.crdb.dev/?filter=status:open%20t:.*TestParallel.*&sort=title+created&display=lastcommented+project) | [Improve this report!](https://github.com/cockroachdb/cockroach/tree/master/pkg/cmd/bazci/githubpost/issues)
Jira issue: CRDB-68490
Contributor guide
Research direction
Start by reproducing sql/logictest.TestParallel from the linked TeamCity build and inspect its artifacts. Read the stack-trace entry points in pkg/kv/kvclient/rangefeed/rangefeed.go, pkg/sql/stats/automatic_stats.go, and pkg/rpc/stream_pool.go to identify why the test does not complete. Done means the failure is understood and the test passes on release-26.3.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases, distributed-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100