Closed cockroach-teamcity closed 5 hours ago
Pattern matching here, but could this be related to https://github.com/cockroachdb/cockroach/commit/d65f62899938ff84709ee280d16e546e66e82915 @wenyihu6 / @stevendanna?
edit: I didn't actually read the failure, just git blame around the test. Looks like a data race so probably is something recent.
Thanks for flagging. I came across a similar data race error and fixed it in my recent PR https://github.com/cockroachdb/cockroach/pull/135075. I'll take a closer look at this issue to determine if it's the same one.
I was able to repro this data race locally and confirmed that the test passed across 1000 runs with the fix above applied. I will close this as being fixed. Feel free to send any other similar errors my way.
On feec8b9a9cf1fdb35b60bda3bba5733e6a9e434a,
==================== Test output for //pkg/kv/kvserver/rangefeed:rangefeed_test (run 30 of 1000):
==================
WARNING: DATA RACE
Write at 0x00c000709e60 by goroutine 46:
runtime.mapassign_fast64()
GOROOT/src/runtime/map_fast64.go:93 +0x0
github.com/cockroachdb/cockroach/pkg/kv/kvserver/rangefeed.(*testServerStream).Send()
pkg/kv/kvserver/rangefeed/sender_helper_test.go:121 +0x15a
github.com/cockroachdb/cockroach/pkg/kv/kvserver/rangefeed.(*UnbufferedSender).run()
pkg/kv/kvserver/rangefeed/unbuffered_sender.go:156 +0x247
github.com/cockroachdb/cockroach/pkg/kv/kvserver/rangefeed.(*StreamManager).Start.func1()
pkg/kv/kvserver/rangefeed/stream_manager.go:167 +0x15c
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2()
pkg/util/stop/stopper.go:498 +0x338
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.gowrap1()
pkg/util/stop/stopper.go:499 +0x4f
Previous read at 0x00c000709e60 by goroutine 47:
runtime.mapiterinit()
GOROOT/src/runtime/map.go:816 +0x0
github.com/cockroachdb/cockroach/pkg/kv/kvserver/rangefeed.(*testServerStream).String()
pkg/kv/kvserver/rangefeed/sender_helper_test.go:107 +0xc8
github.com/cockroachdb/cockroach/pkg/kv/kvserver/rangefeed.TestUnbufferedSenderDisconnect.func1.(*testServerStream).waitForEvent.2()
pkg/kv/kvserver/rangefeed/sender_helper_test.go:84 +0x64
github.com/cockroachdb/cockroach/pkg/testutils.SucceedsWithinError.func1()
pkg/testutils/soon.go:71 +0x57
github.com/cockroachdb/cockroach/pkg/util/retry.ForDuration()
pkg/util/retry/retry.go:213 +0x175
github.com/cockroachdb/cockroach/pkg/testutils.SucceedsWithinError()
pkg/testutils/soon.go:77 +0xfe
github.com/cockroachdb/cockroach/pkg/testutils.SucceedsWithin()
pkg/testutils/soon.go:56 +0x71
github.com/cockroachdb/cockroach/pkg/testutils.SucceedsSoon()
With the fix,
INFO: Build completed successfully, 1001 total actions
//pkg/kv/kvserver/rangefeed:rangefeed_test PASSED in 22.6s
Stats over 1000 runs: max = 22.6s, min = 12.3s, avg = 19.0s, dev = 1.8s
kv/kvserver/rangefeed.TestUnbufferedSenderDisconnect failed on master @ feec8b9a9cf1fdb35b60bda3bba5733e6a9e434a:
Parameters:
attempt=1
race=true
run=1
shard=1
Help
See also: How To Investigate a Go Test Failure (internal)
/cc @cockroachdb/kvThis test on roachdash | Improve this report!
Jira issue: CRDB-44777