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: deflake TestSchemaChangeReverseMutations #31515

Merged
merged 1 commit into from Oct 17, 2018

Conversation

Projects
None yet
3 participants
@eriktrinh
Contributor

eriktrinh commented Oct 16, 2018

Fixes #31462.

Release note: None

@eriktrinh eriktrinh requested a review from vivekmenezes Oct 16, 2018

@eriktrinh eriktrinh requested a review from cockroachdb/sql-async-prs as a code owner Oct 16, 2018

@cockroach-teamcity

This comment has been minimized.

Show comment
Hide comment
@cockroach-teamcity

cockroach-teamcity Oct 16, 2018

Member

This change is Reviewable

Member

cockroach-teamcity commented Oct 16, 2018

This change is Reviewable

@vivekmenezes

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/sql/schema_changer_test.go, line 1779 at r1 (raw file):

	if _, err := addDefaultZoneConfig(sqlDB, tableDesc.ID); err != nil {
		t.Fatal(err)
	}

Any particular reason to need to reset it?

@eriktrinh

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/sql/schema_changer_test.go, line 1779 at r1 (raw file):

Previously, vivekmenezes wrote…

Any particular reason to need to reset it?

The error is the same as #31177 and probably happens because the GC TTL is set to 0 so there is a race between the gc running and when the subsequent reads of this test occur. Resetting the GC TTL should prevent that.

@eriktrinh

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/sql/schema_changer_test.go, line 1779 at r1 (raw file):

Previously, eriktrinh (Erik Trinh) wrote…

The error is the same as #31177 and probably happens because the GC TTL is set to 0 so there is a race between the gc running and when the subsequent reads of this test occur. Resetting the GC TTL should prevent that.

Restructured as discussed.

@vivekmenezes

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/sql/schema_changer_test.go, line 1771 at r2 (raw file):

	// Wait until all the mutations have been processed.
	var rows *gosql.Rows

Do we need this to be defined?

@eriktrinh

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/sql/schema_changer_test.go, line 1771 at r2 (raw file):

Previously, vivekmenezes wrote…

Do we need this to be defined?

Done.

@eriktrinh

This comment has been minimized.

Show comment
Hide comment
@eriktrinh

eriktrinh Oct 17, 2018

Contributor

bors r+

Contributor

eriktrinh commented Oct 17, 2018

bors r+

craig bot pushed a commit that referenced this pull request Oct 17, 2018

Merge #31515
31515: sql: deflake TestSchemaChangeReverseMutations r=eriktrinh a=eriktrinh

Fixes #31462.

Release note: None

Co-authored-by: Erik Trinh <erik@cockroachlabs.com>
@craig

This comment has been minimized.

Show comment
Hide comment
@craig

craig bot commented Oct 17, 2018

Build succeeded

@craig craig bot merged commit 18cddd6 into cockroachdb:master Oct 17, 2018

3 checks passed

GitHub CI (Cockroach) TeamCity build finished
Details
bors Build succeeded
Details
license/cla Contributor License Agreement is signed.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment