Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql/stats: TestCreateStatisticsCanBeCancelled failed #109007

Closed
cockroach-teamcity opened this issue Aug 18, 2023 · 2 comments · Fixed by #109029
Closed

sql/stats: TestCreateStatisticsCanBeCancelled failed #109007

cockroach-teamcity opened this issue Aug 18, 2023 · 2 comments · Fixed by #109029
Assignees
Labels
branch-master Failures and bugs on the master branch. branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Aug 18, 2023

sql/stats.TestCreateStatisticsCanBeCancelled failed with artifacts on master @ 99a37c5b3a84aa25f6fb5232ddb5a42899325157:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 63080 [running]:
testing.(*M).startAlarm.func1()
	GOROOT/src/testing/testing.go:2036 +0x88
created by time.goFunc
	GOROOT/src/time/sleep.go:176 +0x38
Log preceding fatal error

* runtime/pprof.Do({0x5c4bed8?, 0x40001b2000?}, {{0x40001cb6e0?, 0x0?, 0x0?}}, 0x4006372f98)
* 	GOROOT/src/runtime/pprof/runtime.go:40 +0x80
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop(0x4006372f58?)
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:344 +0x6c
* created by github.com/cockroachdb/pebble.(*tableCacheShard).init
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:336 +0xf0
* 
* goroutine 60530 [select, 2 minutes]:
* github.com/cockroachdb/cockroach/pkg/util/log.(*fileSink).gcDaemon(0x4009fce750, {0x5c4bea0, 0x4009bb4280})
* 	github.com/cockroachdb/cockroach/pkg/util/log/file_log_gc.go:25 +0x70
* created by github.com/cockroachdb/cockroach/pkg/util/log.ApplyConfig
* 	github.com/cockroachdb/cockroach/pkg/util/log/flags.go:319 +0xec8
* 
* goroutine 60615 [chan receive, 2 minutes]:
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop.func1({0x5c4bf48, 0x40052704b0})
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:346 +0x80
* runtime/pprof.Do({0x5c4bed8?, 0x40001b2000?}, {{0x40001cb6e0?, 0x5c4bf48?, 0x0?}}, 0x4005bfef98)
* 	GOROOT/src/runtime/pprof/runtime.go:40 +0x80
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop(0x0?)
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:344 +0x6c
* created by github.com/cockroachdb/pebble.(*tableCacheShard).init
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:336 +0xf0
* 
* goroutine 60531 [select, 2 minutes]:
* github.com/cockroachdb/pebble/vfs.(*diskHealthCheckingFS).startTickerLocked.func1()
* 	github.com/cockroachdb/pebble/vfs/external/com_github_cockroachdb_pebble/vfs/disk_health.go:575 +0xbc
* created by github.com/cockroachdb/pebble/vfs.(*diskHealthCheckingFS).startTickerLocked
* 	github.com/cockroachdb/pebble/vfs/external/com_github_cockroachdb_pebble/vfs/disk_health.go:564 +0x84
* 
* goroutine 60562 [chan receive, 2 minutes]:
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop.func1({0x5c4bf48, 0x400cf528d0})
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:346 +0x80
* runtime/pprof.Do({0x5c4bed8?, 0x40001b2000?}, {{0x40001cb6e0?, 0x5c4bf48?, 0x400ce8d750?}}, 0x40077ec798)
* 	GOROOT/src/runtime/pprof/runtime.go:40 +0x80
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop(0x40077ec758?)
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:344 +0x6c
* created by github.com/cockroachdb/pebble.(*tableCacheShard).init
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:336 +0xf0
* 
* goroutine 60561 [chan receive, 2 minutes]:
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop.func1({0x5c4bf48, 0x4004036480})
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:346 +0x80
* runtime/pprof.Do({0x5c4bed8?, 0x40001b2000?}, {{0x40001cb6e0?, 0x400cad6f00?, 0x0?}}, 0x40037cbf98)
* 	GOROOT/src/runtime/pprof/runtime.go:40 +0x80
* github.com/cockroachdb/pebble.(*tableCacheShard).releaseLoop(0x400ab6eb40?)
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:344 +0x6c
* created by github.com/cockroachdb/pebble.(*tableCacheShard).init
* 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/table_cache.go:336 +0xf0
* 
*

Help

See also: How To Investigate a Go Test Failure (internal)

/cc @cockroachdb/sql-queries

This test on roachdash | Improve this report!

Jira issue: CRDB-30738

@cockroach-teamcity cockroach-teamcity added branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. T-sql-queries SQL Queries Team labels Aug 18, 2023
@cockroach-teamcity cockroach-teamcity added this to the 23.2 milestone Aug 18, 2023
@github-project-automation github-project-automation bot moved this to Triage in SQL Queries Aug 18, 2023
@michae2 michae2 moved this from Triage to Active in SQL Queries Aug 18, 2023
@michae2 michae2 added the T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) label Aug 18, 2023
@michae2
Copy link
Collaborator

michae2 commented Aug 18, 2023

This test has been merged to release-23.1, adding the branch label.

@michae2 michae2 added the branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 label Aug 18, 2023
@rafiss
Copy link
Collaborator

rafiss commented Aug 18, 2023

Here's one suspicious goroutine:

goroutine 63027 [chan receive, 4 minutes]:
github.com/cockroachdb/cockroach/pkg/sql/stats_test.createStatsRequestFilter.func1({0x400939b7a0?, 0x5c4bf48?}, 0x4008eec930?)
	github.com/cockroachdb/cockroach/pkg/sql/stats_test/pkg/sql/stats/create_stats_job_test.go:540 +0xcc
github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Replica).SendWithWriteBytes(0x4004e5e000, {0x5c4bf48?, 0x4008eec900?}, 0x400939b7a0)
	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_send.go:173 +0x3fc
github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Store).SendWithWriteBytes(0x40044a8a80, {0x5c4bf48?, 0x4008eec8d0?}, 0x400939b7a0)
	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/store_send.go:193 +0x44c
github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Stores).SendWithWriteBytes(0x400784c5b0?, {0x5c4bf48, 0x4008eec8d0}, 0x400939b7a0)
	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/stores.go:202 +0x9c
github.com/cockroachdb/cockroach/pkg/server.(*Node).batchInternal(0x4007928c00, {0x5c4bf48?, 0x4008eec8a0?}, {0x40090a2f00?}, 0x400939b7a0)
	github.com/cockroachdb/cockroach/pkg/server/node.go:1333 +0x2e4
github.com/cockroachdb/cockroach/pkg/server.(*Node).Batch(0x4007928c00, {0x5c4bf48, 0x4008eec840}, 0x400939b7a0)
	github.com/cockroachdb/cockroach/pkg/server/node.go:1464 +0x234
github.com/cockroachdb/cockroach/pkg/rpc.makeInternalClientAdapter.func1({0x5c4bf48?, 0x4008eec840?}, {0x4790fa0?, 0x400939b7a0?})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:701 +0x54
github.com/cockroachdb/cockroach/pkg/util/tracing/grpcinterceptor.ServerInterceptor.func1({0x5c4bf48, 0x4008eec840}, {0x4790fa0, 0x400939b7a0}, 0x400abfb9e0, 0x400a1a10c8)
	github.com/cockroachdb/cockroach/pkg/util/tracing/grpcinterceptor/grpc_interceptor.go:97 +0x1b4
github.com/cockroachdb/cockroach/pkg/rpc.bindUnaryServerInterceptorToHandler.func1({0x5c4bf48?, 0x4008eec840?}, {0x4790fa0?, 0x400939b7a0?})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:812 +0x3c
github.com/cockroachdb/cockroach/pkg/rpc.NewServerEx.func3({0x5c4bf48, 0x4008eec840}, {0x4790fa0, 0x400939b7a0}, 0x4001bfe000?, 0x400abfba00)
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:169 +0x88
github.com/cockroachdb/cockroach/pkg/rpc.bindUnaryServerInterceptorToHandler.func1({0x5c4bf48?, 0x4008eec840?}, {0x4790fa0?, 0x400939b7a0?})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:812 +0x3c
github.com/cockroachdb/cockroach/pkg/rpc.kvAuth.unaryInterceptor({0x4001bfe000?, {{0x40069a4ea0?}, {0x5c83990?, 0x4008b00e70?}}}, {0x5c4bf48, 0x4008eec840}, {0x4790fa0, 0x400939b7a0}, 0x400abfb9e0, 0x400abfba20)
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/auth.go:105 +0x1ec
github.com/cockroachdb/cockroach/pkg/rpc.bindUnaryServerInterceptorToHandler.func1({0x5c4bf48?, 0x4008eec840?}, {0x4790fa0?, 0x400939b7a0?})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:812 +0x3c
github.com/cockroachdb/cockroach/pkg/rpc.NewServerEx.func1.1({0x5c4bf48?, 0x4008eec840?})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:136 +0x3c
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunTaskWithErr(0x400414a3c0, {0x5c4bf48, 0x4008eec840}, {0x19f7250?, 0x400abfba40?}, 0x40097d9bb0)
	github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:336 +0xac
github.com/cockroachdb/cockroach/pkg/rpc.NewServerEx.func1({0x5c4bf48?, 0x4008eec840?}, {0x4790fa0?, 0x400939b7a0?}, 0x4790fa0?, 0x40069a4ea0?)
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:134 +0x7c
github.com/cockroachdb/cockroach/pkg/rpc.bindUnaryServerInterceptorToHandler.func1({0x5c4bf48?, 0x4008eec840?}, {0x4790fa0?, 0x400939b7a0?})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:812 +0x3c
github.com/cockroachdb/cockroach/pkg/rpc.makeInternalClientAdapter.func2({0x5c4bf48?, 0x4008eec840?}, {0x8b27088?, 0x4004b299d0?}, {0x4790fa0?, 0x400939b7a0?}, {0x4671900?, 0x4003772080}, 0x400a72e360?, {0x0?, ...})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:711 +0x48
github.com/cockroachdb/cockroach/pkg/util/tracing/grpcinterceptor.ClientInterceptor.func2({0x5c4bf48, 0x4008eec840}, {0x4873b22, 0x21}, {0x4790fa0, 0x400939b7a0}, {0x4671900, 0x4003772080}, 0x40097d9de8?, 0x400b193790, ...)
	github.com/cockroachdb/cockroach/pkg/util/tracing/grpcinterceptor/grpc_interceptor.go:228 +0xdc
github.com/cockroachdb/cockroach/pkg/rpc.getChainUnaryInvoker.func1({0x5c4bf48, 0x4008eec840}, {0x4873b22, 0x21}, {0x4790fa0, 0x400939b7a0}, {0x4671900, 0x4003772080}, 0x0?, {0x0, ...})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:896 +0xdc
github.com/cockroachdb/cockroach/pkg/rpc.makeInternalClientAdapter.func3({0x5c4bf48, 0x4008eec7e0}, 0x400939b440, {0x0, 0x0, 0x0})
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:781 +0x28c
github.com/cockroachdb/cockroach/pkg/rpc.internalClientAdapter.Batch(...)
	github.com/cockroachdb/cockroach/pkg/rpc/pkg/rpc/context.go:904
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*grpcTransport).sendBatch(0x4009fb8360, {0x5c4bf48, 0x4008eec7e0}, 0x95a1758?, {0x5c49bb0, 0x4008a254a0?}, 0x400939b440)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/transport.go:210 +0xc8
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*grpcTransport).SendNext(0x4009fb8360, {0x5c4bf48, 0x4008eec7e0}, 0x400a3b69c0?)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/transport.go:189 +0x90
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*DistSender).sendToReplicas(0x4005a6ef00, {0x5c4bf48, 0x4008eec7e0}, 0x400939aea0?, {0x4002897090, 0x400a3b69c0, 0x400a3b6a30, 0x0, 0x0}, 0x0)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/dist_sender.go:2298 +0xd5c
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*DistSender).sendPartialBatch(0x4005a6ef00, {0x5c4bf48?, 0x4008eec7e0}, 0x400939aea0, {{0x4009f0da40, 0x6, 0x8}, {0x400f2bade0, 0x2, 0x2}}, ...)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/dist_sender.go:1816 +0x588
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*DistSender).divideAndSendBatchToRanges(0x4005a6ef00, {0x5c4bf48, 0x4008eec7e0}, 0x400939aea0, {{0x4009f0da40, 0x6, 0x8}, {0x400f2bade0, 0x2, 0x2}}, ...)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/dist_sender.go:1387 +0x2a4
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*DistSender).Send(0x4005a6ef00, {0x5c4bf48, 0x4008eec7b0}, 0x400939aea0)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/dist_sender.go:1007 +0x49c
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnLockGatekeeper).SendLocked(0x4003f35120, {0x5c4bf48, 0x4008eec7b0}, 0x400939aea0)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_lock_gatekeeper.go:82 +0x188
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnMetricRecorder).SendLocked(0x4003f350e8, {0x5c4bf48?, 0x4008eec7b0?}, 0x0?)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_metric_recorder.go:47 +0xc4
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnSpanRefresher).sendLockedWithRefreshAttempts(0x4003f35008, {0x5c4bf48, 0x4008eec7b0}, 0x400939aea0, 0x5)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_span_refresher.go:221 +0x1b4
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnSpanRefresher).SendLocked(0x4003f35008, {0x5c4bf48, 0x4008eec7b0}, 0x1a7dc38?)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_span_refresher.go:149 +0xa8
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnCommitter).SendLocked(0x4003f34fd0, {0x5c4bf48, 0x4008eec7b0}, 0x400939aea0)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_committer.go:145 +0x4bc
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnPipeliner).SendLocked(0x4003f34ea0, {0x5c4bf48, 0x4008eec7b0}, 0x6?)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_pipeliner.go:293 +0x100
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnSeqNumAllocator).SendLocked(0x4003f34e80?, {0x5c4bf48?, 0x4008eec7b0?}, 0x400939aea0?)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_seq_num_allocator.go:110 +0x60
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*txnHeartbeater).SendLocked(0x4003f34dd0, {0x5c4bf48, 0x4008eec7b0}, 0x400939aea0)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_interceptor_heartbeater.go:246 +0x358
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*TxnCoordSender).Send(0x4003f34c00, {0x5c4bf48, 0x40080d5470}, 0x400939aea0)
	github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_coord_sender.go:539 +0x4a0
github.com/cockroachdb/cockroach/pkg/kv.(*DB).sendUsingSender(0x400424e5a0, {0x5c4bf48, 0x40080d5470}, 0x400939aea0, {0xffff7c783120, 0x4003f34c00})
	github.com/cockroachdb/cockroach/pkg/kv/db.go:1039 +0x98
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).Send(0x400113bc20, {0x5c4bf48, 0x40080d5470}, 0x400939aea0)
	github.com/cockroachdb/cockroach/pkg/kv/txn.go:1162 +0x200
github.com/cockroachdb/cockroach/pkg/sql/row.makeTxnKVFetcherDefaultSendFunc.func1({0x5c4bf48?, 0x40080d5470?}, 0x20?)
	github.com/cockroachdb/cockroach/pkg/sql/row/kv_batch_fetcher.go:248 +0x40
github.com/cockroachdb/cockroach/pkg/sql/row.(*txnKVFetcher).fetch(0x4003249a40, {0x5c4bf48, 0x40080d5470})
	github.com/cockroachdb/cockroach/pkg/sql/row/kv_batch_fetcher.go:502 +0x2e0
github.com/cockroachdb/cockroach/pkg/sql/row.(*txnKVFetcher).nextBatch(0x4003249a40, {0x5c4bf48, 0x40080d5470})
	github.com/cockroachdb/cockroach/pkg/sql/row/kv_batch_fetcher.go:732 +0x112c
github.com/cockroachdb/cockroach/pkg/sql/row.(*kvBatchFetcherHelper).NextBatch(0x4003249a40, {0x5c4bf48?, 0x40080d5470?})
	github.com/cockroachdb/cockroach/pkg/sql/row/kv_batch_fetcher.go:873 +0x5c
github.com/cockroachdb/cockroach/pkg/sql/row.(*KVFetcher).nextKV(0x40039fbb90, {0x5c4bf48, 0x40080d5470}, 0x0)
	github.com/cockroachdb/cockroach/pkg/sql/row/kv_fetcher.go:270 +0x9c
github.com/cockroachdb/cockroach/pkg/sql/row.(*Fetcher).nextKey(0x400814b600, {0x5c4bf48?, 0x40080d5470?})
	github.com/cockroachdb/cockroach/pkg/sql/row/fetcher.go:696 +0x38
github.com/cockroachdb/cockroach/pkg/sql/row.(*Fetcher).NextRow(0x400814b600, {0x5c4bf48, 0x40080d5470})
	github.com/cockroachdb/cockroach/pkg/sql/row/fetcher.go:1120 +0x148
github.com/cockroachdb/cockroach/pkg/sql/rowexec.(*tableReader).Next(0x4002d56c00)
	github.com/cockroachdb/cockroach/pkg/sql/rowexec/tablereader.go:276 +0xc4
github.com/cockroachdb/cockroach/pkg/sql/rowexec.(*samplerProcessor).mainLoop(0x400501b200, {0x5c4bf48, 0x40080d53e0}, {0x5c223c8, 0x4002d1f500})
	github.com/cockroachdb/cockroach/pkg/sql/rowexec/sampler.go:261 +0x14c
github.com/cockroachdb/cockroach/pkg/sql/rowexec.(*samplerProcessor).Run(0x400501b200, {0x5c4bea0?, 0x4010c9da00?}, {0x5c223c8, 0x4002d1f500})
	github.com/cockroachdb/cockroach/pkg/sql/rowexec/sampler.go:235 +0x90
github.com/cockroachdb/cockroach/pkg/sql/flowinfra.(*FlowBase).StartInternal.func1(0x4008ecc360?)
	github.com/cockroachdb/cockroach/pkg/sql/flowinfra/flow.go:510 +0x70
created by github.com/cockroachdb/cockroach/pkg/sql/flowinfra.(*FlowBase).StartInternal
	github.com/cockroachdb/cockroach/pkg/sql/flowinfra/flow.go:509 +0x2d8

fqazi added a commit to fqazi/cockroach that referenced this issue Aug 18, 2023
Previously, this test could hang if there txn retry,
since we would end up waiting on a channel. To address
this patch will disable the testing knob once the channel
has been hit.

Fixes: cockroachdb#109007

Release note: None
fqazi added a commit to fqazi/cockroach that referenced this issue Aug 18, 2023
Previously, this test could hang if there txn retry,
since we would end up waiting on a channel. To address
this patch will disable the testing knob once the channel
has been hit.

Fixes: cockroachdb#109007

Release note: None
fqazi added a commit to fqazi/cockroach that referenced this issue Aug 18, 2023
Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.

Fixes: cockroachdb#109007
Release note: None
fqazi added a commit to fqazi/cockroach that referenced this issue Aug 21, 2023
Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.

Fixes: cockroachdb#109007
Release note: None
@exalate-issue-sync exalate-issue-sync bot removed the T-sql-queries SQL Queries Team label Aug 21, 2023
fqazi added a commit to fqazi/cockroach that referenced this issue Aug 21, 2023
Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.

Fixes: cockroachdb#109007
Release note: None
fqazi added a commit to fqazi/cockroach that referenced this issue Aug 21, 2023
Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.

Fixes: cockroachdb#109007
Release note: None
craig bot pushed a commit that referenced this issue Aug 21, 2023
…109142 #109152 #109156 #109157 #109161 #109165 #109166 #109172

107957: asim: convert randomized testing to data-driven r=kvoli a=wenyihu6

**asim: remove extra parsing for []float64, float64, time.Duration**

In cockroachdb/datadriven#45, we upstreamed the
scanning implementation in `datadriven` library. We can now handle parsing of
[]float64, float64, and time.Duration without additional handling.

Release Note: none
Epic: none

---

**asim: enable user-defined repliFactor, placement in rand range_gen**

This patch introduces two additional options for randomized range generations,
letting users define  replication factor and placement type. Although some
aspects of ranges configs are randomly generated (ranges and keyspace), these
two configurations are not randomized. Once set by the user, the configuration
will persist across iterations.

Release Note: none
Part Of: #106311

---

**asim: convert randomized testing to data-driven**
Previously, the randomized testing framework depends on default settings
hardcoded in the tests, requiring users to change code-configured
parameters to change the settings. This patch converts the framework to a
data-driven approach, enabling more dynamic user inputs, more testing examples,
and greater visibility into what each iteration is testing.

TestRandomized is a randomized data-driven testing framework that validates
allocators by creating randomized configurations. It is designed for
regression and exploratory testing.

**There are three modes for every aspect of randomized generation.**
- Static Mode:
1. If randomization options are disabled (e.g. no rand_ranges command is
used), the system uses the default configurations (defined in
default_settings.go) with no randomization.
- Randomized: two scenarios occur:
2. Use default settings for randomized generation (e.g.rand_ranges)
3. Use settings specified with commands (e.g.rand_ranges
range_gen_type=zipf)

**The following commands are provided:**
```
1. "rand_cluster" [cluster_gen_type=(single_region|multi_region|any_region)]
	e.g. rand_cluster cluster_gen_type=(multi_region)
	- rand_cluster: randomly picks a predefined cluster configuration
   according to the specified type.
	- cluster_gen_type (default value is multi_region) is cluster
   configuration type. On the next eval, the cluster is generated as the
   initial state of the simulation.

2. "rand_ranges" [placement_type=(even|skewed|random|weighted_rand)]
	[replication_factor=<int>] [range_gen_type=(uniform|zipf)]
	[keyspace_gen_type=(uniform|zipf)] [weighted_rand=(<[]float64>)]
	e.g. rand_ranges placement_type=weighted_rand weighted_rand=(0.1,0.2,0.7)
	e.g. rand_ranges placement_type=skewed replication_factor=1
		 range_gen_type=zipf keyspace_gen_type=uniform
	- rand_ranges: randomly generate a distribution of ranges across stores
   based on the specified parameters. On the next call to eval, ranges and
   their replica placement are generated and loaded to initial state.
	- placement_type(default value is even): defines the type of range placement
	  distribution across stores. Once set, it remains constant across
	  iterations with no randomization involved.
	- replication_factor(default value is 3): represents the replication factor
	  of each range. Once set, it remains constant across iterations with no
	  randomization involved.
	- range_gen_type(default value is uniform): represents the type of
	  distribution used to yield the range parameter as ranges are generated
   across iterations (range ∈[1, 1000]).
	- keyspace_gen_type: represents the type of distribution used to yield the
   keyspace parameter as ranges are generated across iterations
   (keyspace ∈[1000,200000]).
	- weighted_rand: specifies the weighted random distribution among stores.
	  Requirements (will panic otherwise): 1. weighted_rand should only be
   used with placement_type=weighted_rand and vice versa. 2. Must specify a
   weight between [0.0, 1.0] for each element in the array, with each element
   corresponding to a store 3. len(weighted_rand) cannot be greater than
   number of stores 4. sum of weights in the array should be equal to 1

3. "eval" [seed=<int64>] [num_iterations=<int>] [duration=<time.Duration>]
[verbose=<bool>]
e.g. eval seed=20 duration=30m2s verbose=true
   - eval: generates a simulation based on the configuration set with the given
   commands.
   - seed(default value is int64(42)): used to create a new random number
   generator which will then be used to create a new seed for each iteration.
   - num_iterations(default value is 3): specifies the number of simulations to
   run.
   - duration(default value is 10m): defines duration of each iteration.
   - verbose(default value is false): if set to true, plots all stat(as
   specified by defaultStat) history.
```

RandTestingFramework is initialized with specified testSetting and maintains
its state across all iterations. It repeats the test with different random
configurations. Each iteration in RandTestingFramework executes the following
steps:
1. Generates a random configuration: based on whether randOption is on and
the specific settings for randomized generation.
2. Executes the simulation and checks the assertions on the final state.
3. Stores any outputs and assertion failures in a buffer.

Release note: None
Part Of: #106311

108185: server: remove support for sticky engines r=itsbilal a=jbowens

Remove support for reusing engines from the StickyVFSRegistry. Tests should not
depend on ephemeral, in-memory engine state between server restarts, or read
closed Engine state.

Close #108119.

108467: sql: implement oidvectortypes builtin r=fqazi a=fqazi

Previously, the oidvectortypes builtin in wasn't implemented, causing a compatibility gap for tools
that need to format oidvectors. To address this, this patch adds the oidvectortypes built in.

Fixes: #107942

Release note (sql change): The oidvectortypes built-in has been implemented, which can format oidvector.

108678: closedts: make settings TenantReadOnly and public r=erikgrinaker a=erikgrinaker

It doesn't make sense for these to be `TenantWritable`, since the side transport runs below KV. Furthermore, these settings are referenced throughout our documentation, so make them public.

These should really be set only for the system tenant, and secondary tenants could simply read the system tenant's setting. This functionality runs in the host cluster below KV and it doesn't make any sense to set individual settings for tenants here. Unfortunately, this isn't currently possible with the existing settings classes, there is no way for secondary tenants to access the host's settings.

Touches #108677.

Epic: none
Release note (ops change): The following closed timestamp side-transport settings can no longer be set from secondary tenants (they did not have an effect in secondary tenants): kv.closed_timestamp.target_duration, kv.closed_timestamp.side_transport_interval, and kv.closed_timestamp.lead_for_global_reads_override.

108845: sql: add last_updated column to crdb_internal.kv_protected_ts_records r=jayshrivastava a=jayshrivastava

This change adds a `last_updated` column to the protected timestamps virtual table. This column contains the mvcc timestamp of the row. Having this column present in this table, which is included in debug zips, improves observability when debugging issues.

Informs: #104161
Release note: None
Epic: None

109029: sql: fix TestCreateStatisticsCanBeCancelled txn retry hang r=fqazi a=fqazi

Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.


Fixes: #109007

Release note: None

109049: concurrency: allow multiple transactions to hold locks on a single key  r=nvanbenschoten a=arulajmani

Locks on a single key are stored in the `lockState` struct. Prior to
this patch, the lock table only expected a single transaction to hold
a lock on a given key at any point in time. This restriction needs to
be lifted for shared locks, whose semantics allow multiple transactions
to hold locks on a single key.

This patch changes the `lockState` datastructure so that it can be
generalized in the future. We don't actually allow multiple transactions
to acquire locks on a single key just yet -- that'll come in a subsequent
patch.

Informs #91545

Release note: None

109087: storage: defer putBuffer release in all cases r=nvanbenschoten a=nvanbenschoten

Minor cleanup.

This commit switches the remainder of the calls to putBuffer.release to be deferred, instead of being manually called at the end of their function. The comments mentioning that the defer was "measurably slower" were introduced in 4444618, which was before Go 1.14 optimized the performance of defer. Most of these, including the more performance-sensitive calls, were already switched over to use defer in fbe8852.

Epic: None
Release note: None

109142: roachtest: Cast snapshot-recd bytes to int in disagg-rebalance r=jbowens a=itsbilal

Previously we were reading a float value as an int, which would trip up the Scan() method if the float value was large enough to be wired over in scientified notation eg. `2.3456E7`. This change ensures that Cockroach prints out the value as an integer to avoid the scan-time error in the roachtest.

Fixes #109114.

Epic: none

Release note: None

109152: build: update some configurations for remote build execution r=rail a=rickystewart

1. Use the `large` pool of executors for `enormous` test targets
2. Add (temporary) network access to the following tests: `amazon_test`,
   `base_test`, `cloudprivilege_test`, `externalconn_test`, and
   `cockroach-go-testserver-upgrade-to-master` logictests. These
   erroneously have a dependency on network assets; bugs have been
   filed for each of these.

Epic: CRDB-8308
Release note: None

109156: sql: version gate UNIQUE constraint with json column r=rafiss a=rafiss

This prevents the usage of a json column in a unique constraint, until after the upgrade is finalized.

fixes #108978
Release note: None

109157:  ci,ui: don't lint `e2e-tests` r=sjbarag a=rickystewart

This workspace has a huge download of `cypress` which was causing
CI to flake.

Epic: none
Release note: None

109161: workload: add background qos to kv workload r=bananabrick a=bananabrick

A --background-qos flag can be used in the kv workload to ensure that the generated work is treated as low priority by admission control.

Epic: none
Release note: None

109165: Revert "rangefeed/changefeed: Enable mux rangefeeds by default." r=erikgrinaker a=erikgrinaker

This reverts commit de65c54.

We decided to keep these disabled for another release, to get more real-world experience with it first.

Touches #95781.
Touches #105270.

Release note (performance improvement): The following release note no longer applies: "mux range feeds reuse connection and workers across multiple range feeds.  This mode is now enabled by default."

109166: build: more resources for building AWS dependency r=rail a=rickystewart

This is a huge package with apparently a lot of auto-generated code that was causing OOM's on EngFlow RBE. This fixes it.

Epic: none
Release note: CRDB-8308

109172: storage: Fix panic in MVCCHistories test r=jbowens a=itsbilal

storage_test.intentPrintingReadWriter previously did not support ReaderWithMustIterators.

Epic: none

Release note: None

Co-authored-by: wenyihu6 <[email protected]>
Co-authored-by: Jackson Owens <[email protected]>
Co-authored-by: Faizan Qazi <[email protected]>
Co-authored-by: Erik Grinaker <[email protected]>
Co-authored-by: Jayant Shrivastava <[email protected]>
Co-authored-by: Arul Ajmani <[email protected]>
Co-authored-by: Nathan VanBenschoten <[email protected]>
Co-authored-by: Bilal Akhtar <[email protected]>
Co-authored-by: Ricky Stewart <[email protected]>
Co-authored-by: Rafi Shamim <[email protected]>
Co-authored-by: Arjun Nair <[email protected]>
@craig craig bot closed this as completed in #109029 Aug 21, 2023
@github-project-automation github-project-automation bot moved this from Active to Done in SQL Queries Aug 21, 2023
blathers-crl bot pushed a commit that referenced this issue Aug 21, 2023
Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.

Fixes: #109007
Release note: None
blathers-crl bot pushed a commit that referenced this issue Aug 22, 2023
Previously, this test could hang if there was an automatic
stats came in concurrently with a manual stats collection,
where the request filter would end up hanging and being called twice.
To address this patch will disable automatic stats collections
on the table.

Fixes: #109007
Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-master Failures and bugs on the master branch. branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants