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 TestSchemaChangePurgeFailure #31355

Merged
merged 1 commit into from Oct 15, 2018

Conversation

Projects
None yet
3 participants
@eriktrinh
Contributor

eriktrinh commented Oct 15, 2018

Initially disable fast exec async schema changes in the test until the
error is seen and index drop is queued.

Fixes #31296.

Release note: None

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

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

@cockroach-teamcity

This comment has been minimized.

Show comment
Hide comment
@cockroach-teamcity

cockroach-teamcity Oct 15, 2018

Member

This change is Reviewable

Member

cockroach-teamcity commented Oct 15, 2018

This change is Reviewable

@vivekmenezes

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


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

	// Allow schema change purge to attempt backfill.
	atomic.StoreUint32(&enableAsyncSchemaChanges, 1)

why do we need to turn it on here?

@eriktrinh

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


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

Previously, vivekmenezes wrote…

why do we need to turn it on here?

This test tests that an error during the rollback backfill can be recovered via the async schema changer trying to apply mutation again. We allow async schema changes here to allow the backfill from the rollback (which is the dropping of the failed index creation) to occur so we can return an error to test this.

sql: deflake TestSchemaChangePurgeFailure
Initially disable fast exec async schema changes in the test until the
error is seen and index drop is queued.

Fixes #31296.

Release note: None
@eriktrinh

This comment has been minimized.

Show comment
Hide comment
@eriktrinh

eriktrinh Oct 15, 2018

Contributor

Updated as discussed offline

Contributor

eriktrinh commented Oct 15, 2018

Updated as discussed offline

@vivekmenezes

:lgtm:

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

@eriktrinh

This comment has been minimized.

Show comment
Hide comment
@eriktrinh

eriktrinh Oct 15, 2018

Contributor

bors r+

Contributor

eriktrinh commented Oct 15, 2018

bors r+

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

Merge #31355 #31382
31355: sql: deflake TestSchemaChangePurgeFailure r=eriktrinh a=eriktrinh

Initially disable fast exec async schema changes in the test until the
error is seen and index drop is queued.

Fixes #31296.

Release note: None

31382: roachtest: Deflake bank/zerosum-splits' RelocateRange problem r=a-robinson a=a-robinson

Touches #31287

Release note: None

Co-authored-by: Erik Trinh <erik@cockroachlabs.com>
Co-authored-by: Alex Robinson <alexdwanerobinson@gmail.com>
@craig

This comment has been minimized.

Show comment
Hide comment
@craig

craig bot commented Oct 15, 2018

Build succeeded

@craig craig bot merged commit e164763 into cockroachdb:master Oct 15, 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