Closed cockroach-teamcity closed 2 weeks ago
=== NAME TestMetaTwoInstance/execution/standard-027
meta.go:241:
===== SEED =====
1730697954330043506
===== ERR =====
exit status 66
===== OUT =====
==================
WARNING: DATA RACE
Write at 0x00c0030c07e0 by goroutine 190:
github.com/cockroachdb/pebble/sstable.(*singleLevelIterator[go.shape.struct { github.com/cockroachdb/pebble/sstable/rowblk.iter github.com/cockroachdb/pebble/sstable/rowblk.Iter },go.shape.*github.com/cockroachdb/pebble/sstable/rowblk.IndexIter,go.shape.eb7c958227f421b2b34e33f9383baa8eb4cd132ad8ad1af0ac397c32eec3846d,go.shape.*github.com/cockroachdb/pebble/sstable/rowblk.Iter]).resetForReuse()
external/com_github_cockroachdb_pebble/sstable/reader_iter_single_lvl.go:388 +0xb9
github.com/cockroachdb/pebble/sstable.(*singleLevelIterator[go.shape.struct { github.com/cockroachdb/pebble/sstable/rowblk.iter github.com/cockroachdb/pebble/sstable/rowblk.Iter },go.shape.*github.com/cockroachdb/pebble/sstable/rowblk.IndexIter,go.shape.eb7c958227f421b2b34e33f9383baa8eb4cd132ad8ad1af0ac397c32eec3846d,go.shape.*github.com/cockroachdb/pebble/sstable/rowblk.Iter]).Close()
external/com_github_cockroachdb_pebble/sstable/reader_iter_single_lvl.go:1564 +0x8c
github.com/cockroachdb/pebble/sstable.(*singleLevelIterator[github.com/cockroachdb/pebble/sstable/rowblk.IndexIter,*github.com/cockroachdb/pebble/sstable/rowblk.IndexIter,github.com/cockroachdb/pebble/sstable/rowblk.Iter,*github.com/cockroachdb/pebble/sstable/rowblk.Iter]).Close()
external/com_github_cockroachdb_pebble/sstable/reader_iter_single_lvl.go:1561 +0x36
github.com/cockroachdb/pebble.(*getIter).Next()
external/com_github_cockroachdb_pebble/get_iter.go:123 +0x3e2
github.com/cockroachdb/pebble.(*getIter).First()
external/com_github_cockroachdb_pebble/get_iter.go:71 +0x26
github.com/cockroachdb/pebble.(*Iterator).iterFirstWithinBounds()
external/com_github_cockroachdb_pebble/iterator.go:2099 +0x185
github.com/cockroachdb/pebble.(*Iterator).First()
external/com_github_cockroachdb_pebble/iterator.go:1651 +0x2bd
github.com/cockroachdb/pebble.(*DB).getInternal()
external/com_github_cockroachdb_pebble/db.go:618 +0x784
github.com/cockroachdb/pebble.(*DB).Get()
external/com_github_cockroachdb_pebble/db.go:539 +0x64
github.com/cockroachdb/pebble/metamorphic.(*getOp).run.func1()
external/com_github_cockroachdb_pebble/metamorphic/ops.go:1092 +0x8b
github.com/cockroachdb/pebble/metamorphic.withRetries()
external/com_github_cockroachdb_pebble/metamorphic/retryable.go:29 +0x2e
github.com/cockroachdb/pebble/metamorphic.(*Test).withRetries()
external/com_github_cockroachdb_pebble/metamorphic/test.go:249 +0x1ac
github.com/cockroachdb/pebble/metamorphic.(*getOp).run()
external/com_github_cockroachdb_pebble/metamorphic/ops.go:1091 +0xa7
github.com/cockroachdb/pebble/metamorphic.(*Test).runOp()
external/com_github_cockroachdb_pebble/metamorphic/test.go:435 +0x23b
github.com/cockroachdb/pebble/metamorphic.Execute.func1()
external/com_github_cockroachdb_pebble/metamorphic/meta.go:630 +0x224
golang.org/x/sync/errgroup.(*Group).Go.func1()
external/org_golang_x_sync/errgroup/errgroup.go:78 +0x91
Previous read at 0x00c0030c07e0 by goroutine 194:
github.com/cockroachdb/pebble/internal/base.(*LazyValue).Len()
external/com_github_cockroachdb_pebble/internal/base/lazy_value.go:239 +0x1a6
github.com/cockroachdb/pebble.(*Iterator).maybeSampleRead()
external/com_github_cockroachdb_pebble/iterator.go:812 +0x127
github.com/cockroachdb/pebble.(*Iterator).SeekLTWithLimit()
external/com_github_cockroachdb_pebble/iterator.go:1616 +0xba7
github.com/cockroachdb/pebble.(*Iterator).SeekLT()
external/com_github_cockroachdb_pebble/iterator.go:1531 +0x78
github.com/cockroachdb/pebble/metamorphic.(*retryableIter).SeekLT.func1()
external/com_github_cockroachdb_pebble/metamorphic/retryable.go:159 +0x12
github.com/cockroachdb/pebble/metamorphic.(*retryableIter).withRetry()
external/com_github_cockroachdb_pebble/metamorphic/retryable.go:47 +0x43
github.com/cockroachdb/pebble/metamorphic.(*retryableIter).SeekLT()
external/com_github_cockroachdb_pebble/metamorphic/retryable.go:159 +0xbb
github.com/cockroachdb/pebble/metamorphic.(*iterSeekLTOp).run()
external/com_github_cockroachdb_pebble/metamorphic/ops.go:1532 +0x191
github.com/cockroachdb/pebble/metamorphic.(*Test).runOp()
external/com_github_cockroachdb_pebble/metamorphic/test.go:435 +0x23b
github.com/cockroachdb/pebble/metamorphic.Execute.func1()
external/com_github_cockroachdb_pebble/metamorphic/meta.go:630 +0x224
golang.org/x/sync/errgroup.(*Group).Go.func1()
external/org_golang_x_sync/errgroup/errgroup.go:78 +0x91
Goroutine 190 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
external/org_golang_x_sync/errgroup/errgroup.go:75 +0x124
github.com/cockroachdb/pebble/metamorphic.Execute()
external/com_github_cockroachdb_pebble/metamorphic/meta.go:607 +0xa8
github.com/cockroachdb/pebble/metamorphic.RunOnce()
external/com_github_cockroachdb_pebble/metamorphic/meta.go:565 +0x1d84
github.com/cockroachdb/pebble/internal/metamorphic.runTestMeta()
external/com_github_cockroachdb_pebble/internal/metamorphic/meta_test.go:87 +0x6b7
github.com/cockroachdb/pebble/internal/metamorphic.TestMetaTwoInstance()
external/com_github_cockroachdb_pebble/internal/metamorphic/meta_test.go:58 +0x2b
testing.tRunner()
GOROOT/src/testing/testing.go:1689 +0x21e
testing.(*T).Run.gowrap1()
GOROOT/src/testing/testing.go:1742 +0x44
Goroutine 194 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
external/org_golang_x_sync/errgroup/errgroup.go:75 +0x124
github.com/cockroachdb/pebble/metamorphic.Execute()
external/com_github_cockroachdb_pebble/metamorphic/meta.go:607 +0xa8
github.com/cockroachdb/pebble/metamorphic.RunOnce()
external/com_github_cockroachdb_pebble/metamorphic/meta.go:565 +0x1d84
github.com/cockroachdb/pebble/internal/metamorphic.runTestMeta()
external/com_github_cockroachdb_pebble/internal/metamorphic/meta_test.go:87 +0x6b7
github.com/cockroachdb/pebble/internal/metamorphic.TestMetaTwoInstance()
external/com_github_cockroachdb_pebble/internal/metamorphic/meta_test.go:58 +0x2b
testing.tRunner()
GOROOT/src/testing/testing.go:1689 +0x21e
testing.(*T).Run.gowrap1()
GOROOT/src/testing/testing.go:1742 +0x44
==================
@RaduBerinde Is this LazyValue.Len()
race related to the refactor to remove the allocation? Also appeared here: https://github.com/cockroachdb/pebble/issues/4114#issuecomment-2457881947
Hm, very likely, I'll take a look.
github.com/cockroachdb/pebble/internal/metamorphic.TestMetaTwoInstance failed with artifacts on refs/heads/master @ 71bb6ba29095:
Help
To reproduce, try: ```bash go test -tags 'invariants' -exec 'stress -p 1' -timeout 0 -test.v -run 'TestMetaTwoInstance$' ./internal/metamorphic -seed 1730697954330043506 -ops "uniform:5000-10000" ```
This test on roachdash | Improve this report!
Jira issue: PEBBLE-294