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

release-2.1: changefeedccl: ux fixes and tighter tracked spans #30009

Merged
merged 5 commits into from
Sep 10, 2018

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented Sep 10, 2018

Backport 5/5 commits from #29825.

/cc @cockroachdb/release


see commits for details

I thought the SpanResolverIterator was doing span trimming, etc, but it
turns out this lives in level up in `PartitionSpans`. Reuse it.

This was causing performance issues in tests when we grabbed a pre-split
range and didn't trim it, so too much of the keyspace was being watched.
Very occasionally, it would also cause flakes if we ended up watching
part of the timeseries data (which ExportRequest doesn't support).

All `sql` package changes generated mechanically with:

    $ gorename -from '"./pkg/sql".DistSQLPlanner.partitionSpans' -to PartitionSpans
    $ gorename -from '"./pkg/sql".spanPartition' -to SpanPartition
    $ gorename -from '"./pkg/sql".SpanPartition.spans' -to Spans
    $ gorename -from '"./pkg/sql".SpanPartition.node' -to Node

Plus a couple updates to the new name in comments, found via git grep.

Release note (bug fix): avoids a very rare premature failure in
CHANGEFEEDs caused by a race condition with range splits
These came from development partner feedback.

The following options metioned in the rfc now throw a specific "<option>
not yet implemented" error: `format=avro`, `envelope=diff`,
`confluent_schema_registry`, `schema_topic`.

Unrecognized sink parameters now throw an error instead of being
silently ignored.

Release note: None
It snuck in.

Release note: None
Adding stuff to the buffer can take longer than it did to fetch if the
sink is being slow. Definitely worth timing and logging on the nightly
roachtests.

Release note: None
There's a bit of variation in how long each poll takes (tends to be
between 1m and 4m). I'd like to see what happens if we run the test
longer.

Also sneak in a couple fixes while I'm here. Increase vlog to catch
resolved timestamp updates. Make starting kafka more idempotent (for dev
iteration). Make kafka installation quieter.

Release note: None
@danhhz danhhz requested review from mrtracy and a team September 10, 2018 17:17
@danhhz danhhz requested a review from a team as a code owner September 10, 2018 17:17
@danhhz danhhz requested review from a team September 10, 2018 17:17
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@vivekmenezes
Copy link
Contributor

lgtm

@danhhz
Copy link
Contributor Author

danhhz commented Sep 10, 2018

Thanks for the review!

@danhhz danhhz merged commit 78721a3 into cockroachdb:release-2.1 Sep 10, 2018
@danhhz danhhz deleted the backport2.1-29825 branch September 10, 2018 17:51
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.

None yet

3 participants