release: v20.1.0-alpha.20200123
Click for current signoff comment
Candidate SHA: d818f1ff64aaa725a8aea2d45c7df9dd4a42d4d3
Deployment status: otan-release-v2010-alpha20191216-e9e2a803 / otan-release-v2010-alpha20200123-d818f1ff
Nightly Suite: https://teamcity.cockroachdb.com/viewQueued.html?itemId=1708159&tab=queuedBuildOverviewTab
Release Qualification: https://teamcity.cockroachdb.com/viewLog.html?buildId=1708120&tab=buildResultsDiv&buildTypeId=Cockroach_ReleaseQualification
Deployment Dashboards:
- http://otan-release-v2010-alpha20200123-d818f1ff-0001.roachprod.crdb.io:26258/
- http://otan-release-v2010-alpha20191216-e9e2a803-0001.roachprod.crdb.io:26258/#/overview/list
- https://sentry.io/organizations/cockroach-labs/issues/?environment=v20.1.0-alpha.20200123&project=164528
Prep date: 23rd January, 2020
- [x] Pick a SHA, fill in
Candidate SHAabove, notify #release-announce of SHA. - [x] Tag the provisional SHA
- [x] Publish provisional binaries
- [x] Check binaries
- [x] Deploy to test clusters
- [x] Verify node crash reports
- [x] Start release qualification suite
- [x] Start nightly suite
- [x] fill in
Deployment statusabove with clusters andNightly Suitewith the link to Nightly TeamCity Job
One day after prep date:
-
Keep an eye on clusters until release date. Do not proceed below until the release date.
Release date: 30th January, 2020
-
[x] Tag release
-
For production or stable releases in the latest major release series
- [ ] Update the Homebrew Formula
- [ ] Update the image tag in our Orchestrator configurations
- [ ] Announce version to the registration cluster
-
[x] Update docs
-
[ ] External communications for release
-
[ ] Clean up provisional tag from repository
old info - obsoleted by new SHA -- formerly release: v20.1.0-alpha.20200113
Candidate SHA: 617cb39e3ced263cb4c253aa2e3edd172368f7cf. Deployment status: dan-release-v2010-alpha20191216-6bfe4a1/dan-release-v2010-alpha20190113-e9e2a80. Nightly Suite: ReleaseQual NightlySuite.
Picking the SHA is blocked on https://github.com/cockroachdb/cockroach/issues/43616
#43616 is now fixed. Please go ahead with picking the SHA.
Thanks! Picked a SHA: 6bfe4a1febd6b4eab43142228a8e037498b8bf3b
Potentially blocked on https://github.com/cockroachdb/cockroach/issues/43827. A bunch of the release teamcity builds are failing because of this. I've tried to work around it, but we may have to cherry-pick a fix
Peter fixed the makefile issue. I'll cherry-pick a new sha and get the roachtests running tomorrow. I started up the roachprod tests today so assuming nothing else goes wrong, we should have enough data to keep the original release date
I've been waiting to triage the roachtest failures until I can get someone to make a call on weather "SQL Logic Test High VModule Nightly" failing to build is an alpha release blocker or not. At this point, instead of restarting everything, I think I'll try pinging that one build with the candidate SHA plus a makefile change that fixes the build and then triage the roachtest failures we got. This is unlikely to finish on a Friday so my guess is this alpha is slipping until Tuesday or Wednesday
obsoleted by new SHA
CDC
- [x] cdc/initial-scan/rangefeed=true
- [x] cdc/cloud-sink-gcs/rangefeed=true
- [x] cdc/ledger/rangefeed=true
KV
- [x] hotspotsplits/nodes=4
- [x] network/tpcc/nodes=4
- [x] scaledata/distributed_semaphore/nodes=3
- [x] scaledata/jobcoordinator/nodes=3
SQL Exec
- [x] sqlsmith/setup=empty/setting=default
- [x] sqlsmith/setup=rand-tables/setting=default
- [x] sqlsmith/setup=seed/setting=default
- [x] sqlsmith/setup=seed/setting=no-ddl
- [x] sqlsmith/setup=tpcc/setting=ddl-nodrop
- [x] sqlsmith/setup=tpcc/setting=default
Something definitely regressed in changefeeds recently. I need to look into exactly what, but I think these failures are okay for an alpha. The initial scan one was making progress, though slowly (the most behind span is logged and it kept changing over the course of the test). The other two got further behind than they should, but eventually caught up.
Checked off all sqlsmith failures since those are never blockers (as Matt always says).
checked off hotspotsplits/nodes=4
failed due to fatal error: runtime: out of memory
This error has been happening periodically for a while now (#33660). Should not be a release blocker.
The scaledata failures are interesting. They're hitting issues because the creation of the initial empty schema it taking a very long time (> 1 minute). This is allowing chaos to start before we expect it to. Here's some logging from the first failure, filtered down to just the schema changes triggered here:
I200109 05:06:45.811349 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root] Event: "create_table", target: 53, info: {TableName:ds.public.resources Statement:CREATE TABLE resources (id INT8 NOT NULL DEFAULT unique_rowid(), created_at TIMESTAMPTZ, updated_at TIMESTAMPTZ, deleted_at TIMESTAMPTZ, resource_id INT8, free INT8, total INT8, PRIMARY KEY (id)) User:root}
I200109 05:06:47.330294 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root] publish: descID=53 (resources) version=2 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:06:48.795658 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root] Event: "create_index", target: 53, info: {TableName:ds.public.resources IndexName:idx_resources_deleted_at Statement:CREATE INDEX idx_resources_deleted_at ON resources (deleted_at) User:root MutationID:1}
I200109 05:06:53.756401 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=53 (resources) version=3 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:06:57.729798 279 sql/backfill.go:143 [n3,client=10.128.0.109:59278,user=root,scExec] Running backfill for "resources", v=3, m=1
I200109 05:07:04.577244 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=53 (resources) version=4 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:07:08.280914 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root,scExec] Event: "finish_schema_change", target: 53, info: {MutationID:1}
I200109 05:07:08.853128 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{resources 53 3}]
I200109 05:07:12.633817 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root] Event: "create_table", target: 54, info: {TableName:ds.public.allocations Statement:CREATE TABLE allocations (id INT8 NOT NULL DEFAULT unique_rowid(), created_at TIMESTAMPTZ, updated_at TIMESTAMPTZ, deleted_at TIMESTAMPTZ, resource_id INT8, job_id INT8, units INT8, PRIMARY KEY (id)) User:root}
I200109 05:07:14.801515 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root] publish: descID=54 (allocations) version=2 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:07:16.644276 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root] Event: "create_index", target: 54, info: {TableName:ds.public.allocations IndexName:idx_allocations_deleted_at Statement:CREATE INDEX idx_allocations_deleted_at ON allocations (deleted_at) User:root MutationID:1}
I200109 05:07:21.844560 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=54 (allocations) version=3 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:07:26.125956 279 sql/backfill.go:143 [n3,client=10.128.0.109:59278,user=root,scExec] Running backfill for "allocations", v=3, m=1
I200109 05:07:33.747879 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=54 (allocations) version=4 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:07:36.699121 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root,scExec] Event: "finish_schema_change", target: 54, info: {MutationID:1}
I200109 05:07:37.428304 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{allocations 54 3}]
I200109 05:07:40.662192 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root] publish: descID=53 (resources) version=5 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:07:42.313880 279 sql/event_log.go:132 [n3,client=10.128.0.109:59278,user=root] Event: "create_index", target: 53, info: {TableName:ds.public.resources IndexName:idx_pk Statement:CREATE UNIQUE INDEX idx_pk ON resources (resource_id) User:root MutationID:2}
I200109 05:07:46.689986 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{resources 53 4}]
I200109 05:08:03.614645 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=53 (resources) version=6 mtime=1970-01-01 00:00:00 +0000 UTC
I200109 05:08:05.680050 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{resources 53 5}]
I200109 05:08:08.248063 279 sql/backfill.go:143 [n3,client=10.128.0.109:59278,user=root,scExec] Running backfill for "resources", v=6, m=2
One interesting thing we see here is multi-second pauses when waiting for leases to expire. @ajwerner said he'll take a look because this could be related to dropping the closed timestamp down to 3 seconds.
Okay, sounds good! We'll hold up the alpha until those get investigated, thanks!
cc @lnhsingh (Btw also want to make sure you noticed that the name of the alpha was wrong on the release calendar, it had 2019 in the date part of the version tag. I've fixed all occurrences of this error on the release calendar.)
One interesting thing we see here is multi-second pauses when waiting for leases to expire. @ajwerner said he'll take a look because this could be related to dropping the closed timestamp down to 3 seconds.
I'm trying to reproduce anything even remotely close to this sort of latency but I'm having a hard time. I dug in to some more details. One thing to note is that it took almost 20s at the beginning of the test to up-replicate all of the ranges (I see this from the rangelog).
Other things worth noting is that all of the jobs took 5s to start. Also orth noting is that the initial index creation for idx_resources_deleted_at took 15s after it started. Then all of the other jobs took a while each.
I've modified the test to fail if the schema portion of the test takes more than 30 and I'm running it at scale with roachtest and so far after 400 iterations it hasn't failed.
The question is why are these schema changes taking so long. I don't have a great answer but there's some evidence that there's some waiting for leases to expire. Additionally there's a stats job that seems to have happened in the middle here. I'm trying to understand what could be going on here. I don't have any evidence that this is in any way related to closed timestamps.
After more digging, it seems clear that somehow we're seeing an outstanding lease on every attempt to publish a new version. The other confounding factor is slow up-replication and some lease transfers due to it. All of the other node metrics seem fine. The storage latency numbers are good. The CPU is near zero. The question is whether it's possible for a slow initial lease acquisition to somehow always leave a node with a lease one version behind or something like that.
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:08.853128 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{resources 53 3}]
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:14.801515 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root] publish: descID=54 (allocations) version=2 mtime=1970-01-01 00:00:00 +0000 UTC
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:21.844560 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=54 (allocations) version=3 mtime=1970-01-01 00:00:00 +0000 UTC
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:33.747879 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=54 (allocations) version=4 mtime=1970-01-01 00:00:00 +0000 UTC
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:37.428304 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{allocations 54 3}]
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:40.662192 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root] publish: descID=53 (resources) version=5 mtime=1970-01-01 00:00:00 +0000 UTC
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:07:46.689986 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{resources 53 4}]
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:08:03.614645 279 sql/sqlbase/structured.go:1462 [n3,client=10.128.0.109:59278,user=root,scExec] publish: descID=53 (resources) version=6 mtime=1970-01-01 00:00:00 +0000 UTC
teamcity-1680508-1578546114-10-n4cpu4-0003> I200109 05:08:05.680050 279 sql/lease.go:326 [n3,client=10.128.0.109:59278,user=root,scExec] waiting for 1 leases to expire: desc=[{resources 53 5}]
The question at hand is, how is this lease getting leaked? I've modified the test like so and observed 1000 successful runs. Perhaps the vmodule logging has changed the behavior so I'm going to remove that and try again.
--- a/pkg/cmd/roachtest/scaledata.go
+++ b/pkg/cmd/roachtest/scaledata.go
@@ -38,11 +38,11 @@ func registerScaleData(r *testRegistry) {
for app, flags := range apps {
app, flags := app, flags // copy loop iterator vars
- const duration = 10 * time.Minute
+ const duration = 30 * time.Second
for _, n := range []int{3, 6} {
r.Add(testSpec{
Name: fmt.Sprintf("scaledata/%s/nodes=%d", app, n),
- Timeout: 2 * duration,
+ Timeout: 20 * duration,
Cluster: makeClusterSpec(n + 1),
Run: func(ctx context.Context, t *test, c *cluster) {
runSqlapp(ctx, t, c, app, flags, duration)
@@ -73,7 +73,7 @@ func runSqlapp(ctx context.Context, t *test, c *cluster, app, flags string, dur
c.Put(ctx, b, app, appNode)
c.Put(ctx, cockroach, "./cockroach", roachNodes)
- c.Start(ctx, t, roachNodes)
+ c.Start(ctx, t, roachNodes, startArgs("--args='--vmodule=schema*=2,lease=2,jobs=2,registry=2'"))
// TODO(nvanbenschoten): We are currently running these consistency checks with
// basic chaos. We should also run them in more chaotic environments which
@@ -106,17 +106,22 @@ func runSqlapp(ctx context.Context, t *test, c *cluster, app, flags string, dur
defer sqlappL.close()
t.Status("installing schema")
+ start := time.Now()
err = c.RunL(ctx, sqlappL, appNode, fmt.Sprintf("./%s --install_schema "+
"--cockroach_ip_addresses_csv='%s' %s", app, addrStr, flags))
if err != nil {
return err
}
+ if took := time.Since(start); took > 20*time.Second {
+ return fmt.Errorf("it took %v to set up the schema", took)
+ }
t.Status("running consistency checker")
const workers = 16
return c.RunL(ctx, sqlappL, appNode, fmt.Sprintf("./%s --duration_secs=%d "+
"--num_workers=%d --cockroach_ip_addresses_csv='%s' %s",
app, int(dur.Seconds()), workers, addrStr, flags))
+ return nil
})
m.Wait()
}
Okay I've discovered something interesting w.r.t. the scaledata failure. The nodes are geo-distributed:
https://teamcity.cockroachdb.com/repository/download/Cockroach_Nightlies_WorkloadNightly/1680508:id/scaledata/distributed_semaphore/nodes%3D3/roachprod_state/hosts/teamcity-1680508-1578546114-10-n4cpu4
# user@host locality vpcId
[email protected] cloud=gce,region=us-central1,zone=us-central1-b default
[email protected] cloud=gce,region=us-west1,zone=us-west1-b default
[email protected] cloud=gce,region=europe-west2,zone=europe-west2-b default
[email protected] cloud=gce,region=us-central1,zone=us-central1-b default
@nvanbenschoten confirms that this is the case for the other roachprod failure. Checking off the failures.
It seems that this is all fallout from https://github.com/cockroachdb/cockroach/issues/43898#issuecomment-573732961
@jlinder FYI
Thanks @ajwerner!
Okay, I'm going to let this bake on the long running clusters one more night. If nothing goes wrong, I'll bless the release tomorrow morning
@lnhsingh Binaries have been blessed, turning this over to docs and marketing
We have a late breaking release blocker found just before marketing comms had gone out. Docs PR has been reverted. We'll restart this alpha when there is a fix https://github.com/cockroachdb/cockroach/issues/43979