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

changefeedccl: fix TestAvroSchema/DECIMAL flake #31152

Merged
merged 1 commit into from
Oct 9, 2018

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented Oct 9, 2018

The precision is really meant to be in [1,10], but it sure looks like
there's an off by one error in the avro library that makes this test
flake if it picks precision of 1.

Release note: None

The precision is really meant to be in [1,10], but it sure looks like
there's an off by one error in the avro library that makes this test
flake if it picks precision of 1.

Release note: None
@danhhz danhhz requested review from mrtracy and a team October 9, 2018 18:40
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@mrtracy mrtracy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danhhz
Copy link
Contributor Author

danhhz commented Oct 9, 2018

bors r=mrtracy

craig bot pushed a commit that referenced this pull request Oct 9, 2018
30566: sql: asynchronously drop non-interleaved indexes r=eriktrinh a=eriktrinh

This change drops non-interleaved indexes asynchronously by performing
the deletion of data using an asynchronous schema changer. This is in
preparation to eventually remove index data using `ClearRange` after the
GC TTL period has passed. The initial schema changer runs through the
state machine but does not perform the deletion of index data. Instead
the mutation is moved to a separate list and has a timestamp attached.
The created asynchronous schema changer uses the timestamp and index's
configured GC TTL value to determine when it should begin execution and
actually truncate the index.

When the async schema changer deletes the index data two things occur:
the job is marked as succeeded and the index zone config is removed.

The job can immediately be marked as succeeded because currently a
separate job is created for each index that is dropped.

Interleaved indexes are unaffected and have their data deleted
immediately.

Related to #20696

Fixes #28859.

31020: cdc: Test for falling behind schema TTL r=danhhz a=mrtracy

Add a test that ensures that changefeeds properly exit if they fall far
enough behind that schema information has been lost due to the GC TTL
(that is, a historical row version can no longer be read because the
schema at its timestamp has been garbage collected).

I have also discovered why the sister test (for the table TTL, not the
schema) required a 3 second sleep: the GC queue enforces that replicas
must have an appropriately high "score" before being GCed, even when the
"shouldQueue" process is skipped. To get around this, I have changed
"ManuallyEnqueueSpan" to a more explicit "ManuallyGCSpan", which
directly calls the processing implementation of the gcQueue on the
appropriate replicas. Both that sister test, and the new schema TTL
test, now only require a more predictable 1 second sleep.

Resolves #28644

Release note: None

31152: changefeedccl: fix TestAvroSchema/DECIMAL flake r=mrtracy a=danhhz

The precision is really meant to be in [1,10], but it sure looks like
there's an off by one error in the avro library that makes this test
flake if it picks precision of 1.

Release note: None

31154: kubernetes: Add multiregion channel, add channel to daemonset configs r=a-robinson a=a-robinson

Release note: None

Fixes #31144

Co-authored-by: Erik Trinh <[email protected]>
Co-authored-by: Matt Tracy <[email protected]>
Co-authored-by: Daniel Harrison <[email protected]>
Co-authored-by: Alex Robinson <[email protected]>
@craig
Copy link
Contributor

craig bot commented Oct 9, 2018

Build succeeded

@craig craig bot merged commit 004c6cb into cockroachdb:master Oct 9, 2018
@danhhz danhhz deleted the cdc_flake branch October 9, 2018 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants