Closed cockroach-teamcity closed 3 years ago
ccl/testccl/sqlccl.TestTenantTempTableCleanup failed with artifacts on master @ 6eb9df1f3d460f904b5254c3d32c745eecbedd3f:
I210912 05:47:35.429683 14355 sql/table.go:162 [sql,client=127.0.0.1:37316,hostssl,user=root,intExec=delete-temp-TABLE] 403 queued new schema-change job 692568900991778817 for table 53, mutation 0
I210912 05:47:35.506083 12633 5@util/log/event_log.go:32 [sql,client=127.0.0.1:37316,hostssl,user=root] 404 ={"Timestamp":1631425655343424271,"EventType":"drop_table","Statement":"DROP TABLE defaultdb.pg_temp_1631425646940765936_1.temp_table CASCADE","Tag":"DROP TABLE","User":"root","DescriptorID":53,"ApplicationName":"$ internal-delete-temp-TABLE","TableName":"defaultdb.pg_temp_1631425646940765936_1.temp_table"}
I210912 05:47:35.616328 9792 sql/sqlliveness/slinstance/slinstance.go:293 [-] 405 starting SQL liveness instance
I210912 05:47:35.648348 10044 sql/temporary_schema.go:508 [n1] 406 running temporary object cleanup background job
I210912 05:47:35.653069 14468 sql/sqlliveness/slstorage/slstorage.go:393 [-] 407 inserted sqlliveness session 43a676259efe444ab165fb848717232c
I210912 05:47:35.653370 14468 sql/sqlliveness/slinstance/slinstance.go:180 [-] 408 created new SQL liveness session 43a676259efe444ab165fb848717232c
I210912 05:47:35.653609 11385 sql/temporary_schema.go:500 [n2] 409 skipping temporary object cleanup run as it is not the leaseholder
I210912 05:47:35.653979 11385 sql/temporary_schema.go:501 [n2] 410 completed temporary object cleanup job
I210912 05:47:35.654249 11385 sql/temporary_schema.go:639 [n2] 411 temporary object cleaner next scheduled to run at 2021-09-12 05:47:36.652970924 +0000 UTC
I210912 05:47:35.654952 10044 sql/temporary_schema.go:552 [n1] 412 found 0 temporary schemas
I210912 05:47:35.655213 10044 sql/temporary_schema.go:555 [n1] 413 early exiting temporary schema cleaner as no temporary schemas were found
I210912 05:47:35.655393 10044 sql/temporary_schema.go:556 [n1] 414 completed temporary object cleanup job
I210912 05:47:35.655629 10044 sql/temporary_schema.go:639 [n1] 415 temporary object cleaner next scheduled to run at 2021-09-12 05:47:36.647917828 +0000 UTC
I210912 05:47:35.674801 9792 1@sql/sqlinstance/instanceprovider/instanceprovider.go:80 [-] 416 created SQL instance 2
I210912 05:47:35.675539 14531 sql/temporary_schema.go:508 [-] 417 running temporary object cleanup background job
I210912 05:47:35.676061 14536 sql/sqlstats/persistedsqlstats/provider.go:142 [-] 418 starting sql-stats-worker with initial delay: 55m33.197003779s
I210912 05:47:35.692137 14531 sql/temporary_schema.go:552 [-] 419 found 0 temporary schemas
I210912 05:47:35.692356 14531 sql/temporary_schema.go:555 [-] 420 early exiting temporary schema cleaner as no temporary schemas were found
I210912 05:47:35.692550 14531 sql/temporary_schema.go:556 [-] 421 completed temporary object cleanup job
I210912 05:47:35.692661 14531 sql/temporary_schema.go:639 [-] 422 temporary object cleaner next scheduled to run at 2021-09-12 05:47:36.675400178 +0000 UTC
I210912 05:47:35.741049 14554 server/settingswatcher/settings_watcher.go:112 [rangefeed=settings] 423 set cluster version to: 21.1-1162
I210912 05:47:35.750612 9792 server/server_sql.go:1089 [-] 424 done ensuring all necessary startup migrations have run
I210912 05:47:35.751264 9792 1@server/tenant.go:272 [config] 425 clusterID: 7d54f79d-0035-447a-a9fe-ec684efe1aca
I210912 05:47:35.751614 9792 1@server/tenant.go:273 [config] 426 tenantID: 10
I210912 05:47:35.751838 9792 1@server/tenant.go:273 [config] 427 instanceID: 2
I210912 05:47:35.751998 14458 jobs/job_scheduler.go:351 [-] 428 waiting 2m0s before scheduled jobs daemon start
I210912 05:47:35.752081 9792 1@server/server.go:2330 [-] 429 serving sql connections
I210912 05:47:35.857724 14610 sql/catalog/lease/lease.go:1125 [-] 430 released orphaned lease: {id:12 version:1 expiration:{Time:{wall:716512000 ext:63767022757 loc:<nil>}}}
I210912 05:47:35.866170 14611 sql/catalog/lease/lease.go:1125 [-] 431 released orphaned lease: {id:15 version:1 expiration:{Time:{wall:388766000 ext:63767022735 loc:<nil>}}}
I210912 05:47:35.868393 14612 sql/catalog/lease/lease.go:1125 [-] 432 released orphaned lease: {id:33 version:1 expiration:{Time:{wall:993892000 ext:63767022743 loc:<nil>}}}
I210912 05:47:35.869536 14613 sql/catalog/lease/lease.go:1125 [-] 433 released orphaned lease: {id:35 version:1 expiration:{Time:{wall:404435000 ext:63767022736 loc:<nil>}}}
I210912 05:47:35.871488 14497 sql/catalog/lease/lease.go:1125 [-] 434 released orphaned lease: {id:4 version:1 expiration:{Time:{wall:687979000 ext:63767022750 loc:<nil>}}}
I210912 05:47:35.896905 14518 sql/catalog/lease/lease.go:1125 [-] 435 released orphaned lease: {id:37 version:1 expiration:{Time:{wall:77038000 ext:63767022753 loc:<nil>}}}
W210912 05:47:36.025067 14550 jobs/registry.go:822 [-] 436 canceling all adopted jobs due to stopper quiescing
W210912 05:47:36.028506 12323 jobs/registry.go:822 [-] 437 canceling all adopted jobs due to stopper quiescing
W210912 05:47:36.028842 14468 sql/sqlliveness/slinstance/slinstance.go:217 [-] 438 exiting heartbeat loop
W210912 05:47:36.029809 12215 ccl/kvccl/kvtenantccl/connector.go:181 [sql,tenant-connector] 439 error consuming GossipSubscription RPC: rpc error: code = Canceled desc = context canceled
W210912 05:47:36.030559 14424 ccl/kvccl/kvtenantccl/connector.go:181 [sql,tenant-connector] 440 error consuming GossipSubscription RPC: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:44424->127.0.0.1:41637: use of closed network connection
W210912 05:47:36.031362 12203 sql/sqlliveness/slinstance/slinstance.go:217 [-] 441 exiting heartbeat loop
I210912 05:47:36.040132 9792 testutils/testcluster/testcluster.go:101 [-] 442 TestCluster quiescing nodes
I210912 05:47:36.041103 10143 kv/kvclient/kvcoord/transport_race.go:106 [-] 443 transport race promotion: ran 72 iterations on up to 1769 requests
W210912 05:47:36.042648 11820 jobs/registry.go:822 [-] 444 canceling all adopted jobs due to stopper quiescing
W210912 05:47:36.045222 11463 jobs/registry.go:822 [-] 445 canceling all adopted jobs due to stopper quiescing
W210912 05:47:36.045371 10042 sql/sqlliveness/slinstance/slinstance.go:217 [n1] 446 exiting heartbeat loop
W210912 05:47:36.048282 10375 jobs/registry.go:822 [-] 447 canceling all adopted jobs due to stopper quiescing
W210912 05:47:36.055121 11781 sql/sqlliveness/slinstance/slinstance.go:217 [n3] 448 exiting heartbeat loop
W210912 05:47:36.055688 11383 sql/sqlliveness/slinstance/slinstance.go:217 [n2] 449 exiting heartbeat loop
W210912 05:47:36.059941 11863 ts/db.go:194 [n3,ts-poll] 450 error writing time series data: failed to send RPC: sending to all replicas failed; last error: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:44392->127.0.0.1:41637: use of closed network connection
testing.go:1092: race detected during execution of test
--- FAIL: TestTenantTempTableCleanup (13.22s)
To reproduce, try: ```bash make stressrace TESTS=TestTenantTempTableCleanup PKG=./pkg/ccl/testccl/sqlccl TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ``` Parameters in this failure: - GOFLAGS=-race -parallel=4
/cc @cockroachdb/sql-queries fqazi
WARNING: DATA RACE
Write at 0x00c002b16a50 by goroutine 995:
github.com/cockroachdb/cockroach/pkg/roachpb.(*Transaction).Update()
/go/src/github.com/cockroachdb/cockroach/pkg/roachpb/data.go:1152 +0x627
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*TxnCoordSender).handleRetryableErrLocked()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_coord_sender.go:801 +0x40f
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*TxnCoordSender).updateStateLocked()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_coord_sender.go:868 +0x33c
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*TxnCoordSender).Send()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_coord_sender.go:515 +0x647
github.com/cockroachdb/cockroach/pkg/kv.(*DB).sendUsingSender()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/db.go:854 +0x1b4
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).Send()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/txn.go:1001 +0x20f
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).Send-fm()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/txn.go:971 +0xf7
github.com/cockroachdb/cockroach/pkg/kv.sendAndFill()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/db.go:765 +0x1f4
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).Run()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/txn.go:644 +0xd6
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).scan()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/txn.go:525 +0xfa
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).Scan()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/txn.go:539 +0x291
github.com/cockroachdb/cockroach/pkg/sql/catalog/resolver.GetForDatabase()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/catalog/resolver/resolver.go:322 +0x165
github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.(*kvDescriptors).getSchemasForDatabase()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/catalog/descs/kv_descriptors.go:270 +0x1cf
github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.(*Collection).GetSchemasForDatabase()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/catalog/descs/collection.go:287 +0x564
github.com/cockroachdb/cockroach/pkg/sql.getSchemaNames()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/information_schema.go:2314 +0x4cf
github.com/cockroachdb/cockroach/pkg/sql.forEachTableDescWithTableLookupInternalFromDescriptors()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/information_schema.go:2468 +0x7cc
github.com/cockroachdb/cockroach/pkg/sql.forEachTableDescWithTableLookupInternal()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/information_schema.go:2355 +0x193
github.com/cockroachdb/cockroach/pkg/sql.forEachTableDescWithTableLookup()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/information_schema.go:2305 +0x179
github.com/cockroachdb/cockroach/pkg/sql.makeAllRelationsVirtualTableWithDescriptorIDIndex.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/pg_catalog.go:1016 +0x17a
github.com/cockroachdb/cockroach/pkg/sql.(*virtualDefEntry).getPlanInfo.func1.1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/virtual_schema.go:533 +0x1f8
github.com/cockroachdb/cockroach/pkg/sql.setupGenerator.func3()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/virtual_table.go:120 +0x1a9
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2()
/go/src/github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:442 +0x161
Previous read at 0x00c002b16a50 by goroutine 971:
github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord.(*TxnCoordSender).Epoch()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord/txn_coord_sender.go:1084 +0x3e
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).Epoch()
/go/src/github.com/cockroachdb/cockroach/pkg/kv/txn.go:214 +0xaf
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).serialize()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:2798 +0x123a
github.com/cockroachdb/cockroach/pkg/sql.(*SessionRegistry).SerializeAll()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/exec_util.go:1836 +0x247
github.com/cockroachdb/cockroach/pkg/server.(*baseStatusServer).getLocalSessions()
/go/src/github.com/cockroachdb/cockroach/pkg/server/status.go:190 +0x28f
github.com/cockroachdb/cockroach/pkg/server.(*tenantStatusServer).ListLocalSessions()
/go/src/github.com/cockroachdb/cockroach/pkg/server/tenant_status.go:160 +0x6b
github.com/cockroachdb/cockroach/pkg/server/serverpb._Status_ListLocalSessions_Handler.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/server/serverpb/status.pb.go:5820 +0xa4
github.com/cockroachdb/cockroach/pkg/util/tracing.ServerInterceptor.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/util/tracing/grpc_interceptor.go:126 +0x67c
google.golang.org/grpc.getChainUnaryHandler.func1()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:1134 +0x14f
github.com/cockroachdb/cockroach/pkg/rpc.NewServer.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/rpc/context.go:177 +0x124
google.golang.org/grpc.getChainUnaryHandler.func1()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:1134 +0x14f
github.com/cockroachdb/cockroach/pkg/rpc.kvAuth.unaryInterceptor()
/go/src/github.com/cockroachdb/cockroach/pkg/rpc/auth.go:71 +0x138
github.com/cockroachdb/cockroach/pkg/rpc.kvAuth.unaryInterceptor-fm()
/go/src/github.com/cockroachdb/cockroach/pkg/rpc/auth.go:47 +0xa4
google.golang.org/grpc.chainUnaryServerInterceptors.func1()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:1120 +0x112
github.com/cockroachdb/cockroach/pkg/server/serverpb._Status_ListLocalSessions_Handler()
/go/src/github.com/cockroachdb/cockroach/pkg/server/serverpb/status.pb.go:5822 +0x1f1
google.golang.org/grpc.(*Server).processUnaryRPC()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:1293 +0xa65
google.golang.org/grpc.(*Server).handleStream()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:1618 +0x142b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:941 +0xe6
Goroutine 995 (running) created at:
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx()
/go/src/github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:434 +0x28d
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTask()
/go/src/github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:334 +0x3e9
github.com/cockroachdb/cockroach/pkg/sql.setupGenerator()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/virtual_table.go:108 +0x24e
github.com/cockroachdb/cockroach/pkg/sql.(*virtualDefEntry).getPlanInfo.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/virtual_schema.go:532 +0xbb6
github.com/cockroachdb/cockroach/pkg/sql.constructVirtualScan.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/exec_factory_util.go:238 +0xa3
github.com/cockroachdb/cockroach/pkg/sql.(*delayedNode).startExec()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/delayed.go:50 +0x98
github.com/cockroachdb/cockroach/pkg/sql.startExec.func2()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/plan.go:509 +0xf5
github.com/cockroachdb/cockroach/pkg/sql.(*planVisitor).visitInternal.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/walk.go:112 +0x99
github.com/cockroachdb/cockroach/pkg/sql.(*planVisitor).visitInternal()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/walk.go:289 +0x148
github.com/cockroachdb/cockroach/pkg/sql.(*planVisitor).visit()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/walk.go:79 +0x104
github.com/cockroachdb/cockroach/pkg/sql.walkPlan()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/walk.go:43 +0x172
github.com/cockroachdb/cockroach/pkg/sql.startExec()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/plan.go:512 +0x187
github.com/cockroachdb/cockroach/pkg/sql.(*planNodeToRowSource).Start()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/plan_node_to_row_source.go:142 +0x164
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*Columnarizer).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/columnarizer.go:151 +0x19b
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*InvariantsChecker).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/invariants_checker.go:59 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:276 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*selectInOpBytes).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*InvariantsChecker).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/invariants_checker.go:59 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*joinHelper).init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/joiner_utils.go:40 +0x115
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*hashJoiner).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/hashjoiner.go:246 +0x85
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*diskSpillerBase).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/disk_spiller.go:187 +0xbe
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*InvariantsChecker).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/invariants_checker.go:59 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*joinHelper).init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/joiner_utils.go:40 +0x115
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*hashJoiner).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/hashjoiner.go:246 +0x85
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*diskSpillerBase).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/disk_spiller.go:187 +0xbe
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecutils.(*vectorTypeEnforcer).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase.(*castDatumIntOp).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase.(*simpleProjectOp).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*InvariantsChecker).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/invariants_checker.go:59 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*joinHelper).init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/joiner_utils.go:39 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*hashJoiner).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/hashjoiner.go:246 +0x85
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*diskSpillerBase).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/disk_spiller.go:187 +0xbe
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecutils.(*vectorTypeEnforcer).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase.(*castDatumIntOp).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase.(*simpleProjectOp).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*InvariantsChecker).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/invariants_checker.go:59 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*joinHelper).init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/joiner_utils.go:39 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin.(*hashJoiner).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin/hashjoiner.go:246 +0x85
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*diskSpillerBase).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/disk_spiller.go:187 +0xbe
github.com/cockroachdb/cockroach/pkg/sql/colexecop.(*OneInputInitCloserHelper).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecop/operator.go:355 +0xb5
github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase.(*simpleProjectOp).Init()
<autogenerated>:1 +0x57
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*InvariantsChecker).Init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexec/invariants_checker.go:59 +0xb9
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).init.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:234 +0x8f
github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:91 +0x72
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).init()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:233 +0x73
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).Run()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:274 +0x10b
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*vectorizedFlow).Run()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/colflow/vectorized_flow.go:258 +0x3d3
github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).Run()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:535 +0x93d
github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRun()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1276 +0x236
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execWithDistSQLEngine()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor_exec.go:1394 +0xa3b
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).dispatchToExecutionEngine()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor_exec.go:1071 +0xe25
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execStmtInOpenState()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor_exec.go:708 +0x16b5
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execStmt()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor_exec.go:129 +0x12be
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCmd.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:1722 +0x404
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCmd()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:1724 +0x1e74
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).run()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:1646 +0x565
github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:670 +0x134
github.com/cockroachdb/cockroach/pkg/sql/pgwire.(*conn).processCommandsAsync.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/sql/pgwire/conn.go:639 +0x3f0
Goroutine 971 (running) created at:
google.golang.org/grpc.(*Server).serveStreams.func1()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:939 +0x354
google.golang.org/grpc/internal/transport.(*http2Server).operateHeaders()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/internal/transport/http2_server.go:530 +0x1a70
google.golang.org/grpc/internal/transport.(*http2Server).HandleStreams()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/internal/transport/http2_server.go:575 +0x4fc
google.golang.org/grpc.(*Server).serveStreams()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:925 +0x233
google.golang.org/grpc.(*Server).handleRawConn.func1()
/go/src/github.com/cockroachdb/cockroach/vendor/google.golang.org/grpc/server.go:875 +0x50
==================
cc @fqazi
ccl/testccl/sqlccl.TestTenantTempTableCleanup failed with artifacts on master @ 394e35cbbb7ae466383c3ee6f2bbcc76857afeed:
I210913 05:30:44.117583 14405 sql/table.go:162 [sql,client=127.0.0.1:60208,hostssl,user=root,intExec=delete-temp-TABLE] 411 queued new schema-change job 692848702644256769 for table 53, mutation 0
I210913 05:30:44.179551 12629 5@util/log/event_log.go:32 [sql,client=127.0.0.1:60208,hostssl,user=root] 412 ={"Timestamp":1631511044040890097,"EventType":"drop_table","Statement":"DROP TABLE defaultdb.pg_temp_1631511035308837733_1.temp_table CASCADE","Tag":"DROP TABLE","User":"root","DescriptorID":53,"ApplicationName":"$ internal-delete-temp-TABLE","TableName":"defaultdb.pg_temp_1631511035308837733_1.temp_table"}
I210913 05:30:44.295180 9832 sql/sqlliveness/slinstance/slinstance.go:293 [-] 413 starting SQL liveness instance
I210913 05:30:44.324099 14484 sql/sqlliveness/slstorage/slstorage.go:393 [-] 414 inserted sqlliveness session 7161c98ed3b044e6b2b78327a2e53dd3
I210913 05:30:44.324359 14484 sql/sqlliveness/slinstance/slinstance.go:180 [-] 415 created new SQL liveness session 7161c98ed3b044e6b2b78327a2e53dd3
I210913 05:30:44.347076 9832 1@sql/sqlinstance/instanceprovider/instanceprovider.go:80 [-] 416 created SQL instance 2
I210913 05:30:44.347641 14548 sql/temporary_schema.go:508 [-] 417 running temporary object cleanup background job
I210913 05:30:44.348184 14553 sql/sqlstats/persistedsqlstats/provider.go:142 [-] 418 starting sql-stats-worker with initial delay: 1h6m49.898321231s
I210913 05:30:44.365165 14548 sql/temporary_schema.go:552 [-] 419 found 0 temporary schemas
I210913 05:30:44.365365 14548 sql/temporary_schema.go:555 [-] 420 early exiting temporary schema cleaner as no temporary schemas were found
I210913 05:30:44.365532 14548 sql/temporary_schema.go:556 [-] 421 completed temporary object cleanup job
I210913 05:30:44.365681 14548 sql/temporary_schema.go:639 [-] 422 temporary object cleaner next scheduled to run at 2021-09-13 05:30:45.347487078 +0000 UTC
I210913 05:30:44.415370 14571 server/settingswatcher/settings_watcher.go:112 [rangefeed=settings] 423 set cluster version to: 21.1-1162
I210913 05:30:44.424618 9832 server/server_sql.go:1089 [-] 424 done ensuring all necessary startup migrations have run
I210913 05:30:44.425259 9832 1@server/tenant.go:272 [config] 425 clusterID: e406b192-3680-464b-a8cc-47b01156486f
I210913 05:30:44.425371 14535 jobs/job_scheduler.go:351 [-] 426 waiting 4m0s before scheduled jobs daemon start
I210913 05:30:44.425546 9832 1@server/tenant.go:273 [config] 427 tenantID: 10
I210913 05:30:44.425887 9832 1@server/tenant.go:273 [config] 428 instanceID: 2
I210913 05:30:44.426059 9832 1@server/server.go:2330 [-] 429 serving sql connections
I210913 05:30:44.494350 12199 2@util/log/event_log.go:32 [-] 430 ={"Timestamp":1631511044494310691,"EventType":"runtime_stats","MemRSSBytes":979599360,"GoroutineCount":982,"MemStackSysBytes":10747904,"GoAllocBytes":97788016,"GoTotalBytes":154500136,"GoStatsStaleness":0.003023273,"HeapFragmentBytes":12484496,"HeapReservedBytes":17006592,"HeapReleasedBytes":63299584,"CGoAllocBytes":7130336,"CGoTotalBytes":17326080,"CGoCallRate":0.0000014949331,"CPUUserPercent":0.000004421668,"CPUSysPercent":0.00000045847068,"GCPausePercent":0.00000000089932106,"GCRunCount":79,"NetHostRecvBytes":1640606,"NetHostSendBytes":1640606}
I210913 05:30:44.529601 14635 sql/catalog/lease/lease.go:1125 [-] 431 released orphaned lease: {id:35 version:1 expiration:{Time:{wall:962922000 ext:63767108143 loc:<nil>}}}
I210913 05:30:44.532622 14632 sql/catalog/lease/lease.go:1125 [-] 432 released orphaned lease: {id:12 version:1 expiration:{Time:{wall:392026000 ext:63767108141 loc:<nil>}}}
I210913 05:30:44.536628 14631 sql/catalog/lease/lease.go:1125 [-] 433 released orphaned lease: {id:4 version:1 expiration:{Time:{wall:161822000 ext:63767108147 loc:<nil>}}}
I210913 05:30:44.537325 14633 sql/catalog/lease/lease.go:1125 [-] 434 released orphaned lease: {id:15 version:1 expiration:{Time:{wall:239636000 ext:63767108128 loc:<nil>}}}
I210913 05:30:44.537354 14634 sql/catalog/lease/lease.go:1125 [-] 435 released orphaned lease: {id:33 version:1 expiration:{Time:{wall:304613000 ext:63767108138 loc:<nil>}}}
I210913 05:30:44.557714 11807 sql/temporary_schema.go:508 [-] 436 running temporary object cleanup background job
I210913 05:30:44.579343 11807 sql/temporary_schema.go:552 [-] 437 found 0 temporary schemas
I210913 05:30:44.579573 11807 sql/temporary_schema.go:555 [-] 438 early exiting temporary schema cleaner as no temporary schemas were found
I210913 05:30:44.579769 11807 sql/temporary_schema.go:556 [-] 439 completed temporary object cleanup job
I210913 05:30:44.579922 11807 sql/temporary_schema.go:639 [-] 440 temporary object cleaner next scheduled to run at 2021-09-13 05:30:45.557510825 +0000 UTC
I210913 05:30:44.591973 14543 sql/catalog/lease/lease.go:1125 [-] 441 released orphaned lease: {id:37 version:1 expiration:{Time:{wall:716808000 ext:63767108143 loc:<nil>}}}
I210913 05:30:44.624689 11727 sql/temporary_schema.go:500 [n3] 442 skipping temporary object cleanup run as it is not the leaseholder
I210913 05:30:44.625225 11727 sql/temporary_schema.go:501 [n3] 443 completed temporary object cleanup job
I210913 05:30:44.625605 11727 sql/temporary_schema.go:639 [n3] 444 temporary object cleaner next scheduled to run at 2021-09-13 05:30:45.624470184 +0000 UTC
W210913 05:30:44.723957 14567 jobs/registry.go:822 [-] 445 canceling all adopted jobs due to stopper quiescing
W210913 05:30:44.724818 14484 sql/sqlliveness/slinstance/slinstance.go:217 [-] 446 exiting heartbeat loop
W210913 05:30:44.726076 12330 jobs/registry.go:822 [-] 447 canceling all adopted jobs due to stopper quiescing
W210913 05:30:44.726349 12212 sql/sqlliveness/slinstance/slinstance.go:217 [-] 448 exiting heartbeat loop
W210913 05:30:44.727020 14482 ccl/kvccl/kvtenantccl/connector.go:181 [sql,tenant-connector] 449 error consuming GossipSubscription RPC: rpc error: code = Canceled desc = context canceled
W210913 05:30:44.728010 12200 ccl/kvccl/kvtenantccl/connector.go:181 [sql,tenant-connector] 450 error consuming GossipSubscription RPC: rpc error: code = Canceled desc = context canceled
I210913 05:30:44.736530 9832 testutils/testcluster/testcluster.go:101 [-] 451 TestCluster quiescing nodes
W210913 05:30:44.737960 10062 sql/sqlliveness/slinstance/slinstance.go:217 [n1] 452 exiting heartbeat loop
W210913 05:30:44.739465 11834 jobs/registry.go:822 [-] 453 canceling all adopted jobs due to stopper quiescing
W210913 05:30:44.739873 11442 jobs/registry.go:822 [-] 454 canceling all adopted jobs due to stopper quiescing
W210913 05:30:44.743904 10241 jobs/registry.go:822 [-] 455 canceling all adopted jobs due to stopper quiescing
W210913 05:30:44.747728 11725 sql/sqlliveness/slinstance/slinstance.go:217 [n3] 456 exiting heartbeat loop
W210913 05:30:44.748357 11215 sql/sqlliveness/slinstance/slinstance.go:217 [n2] 457 exiting heartbeat loop
I210913 05:30:44.794904 10181 kv/kvclient/kvcoord/transport_race.go:106 [-] 458 transport race promotion: ran 71 iterations on up to 1773 requests
testing.go:1092: race detected during execution of test
--- FAIL: TestTenantTempTableCleanup (13.52s)
To reproduce, try: ```bash make stressrace TESTS=TestTenantTempTableCleanup PKG=./pkg/ccl/testccl/sqlccl TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ``` Parameters in this failure: - GOFLAGS=-race -parallel=4
/cc @cockroachdb/sql-queries fqazi
I wonder if we'd hit the same thing if only we ran unit tests which had contention and looked at statement stats.
ccl/testccl/sqlccl.TestTenantTempTableCleanup failed with artifacts on master @ 941011c4e582807b40dd03bbcbb8d05385c0638d:
Reproduce
To reproduce, try: ```bash make stressrace TESTS=TestTenantTempTableCleanup PKG=./pkg/ccl/testccl/sqlccl TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ``` Parameters in this failure: - GOFLAGS=-race -parallel=4
/cc @cockroachdb/sql-queries fqazi
This test on roachdash | Improve this report!