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

c2c: add CreateForSpanConfigs to the stream client #107077

Closed
wants to merge 2 commits into from

Conversation

msbutler
Copy link
Collaborator

@msbutler msbutler commented Jul 18, 2023

This patch adds a new call to the stream client and the new
crdb_internal.start_span_config_replication_stream() sql call which will
begin a replication stream on the system tenant's span configuration table to
stream updates specific to the passed in application tenant. The ForSpanConfigs
flag is now persisted to the producer job record to indicate this flavour of
replication stream.

A future PR will plumb this info through the StreamPartition spec.

Informs #106823

Release note: None

This patch fixes a papercut where we were storing pointers to spans in the
producer job proto. This isn't a correctness bug, as protocol buffers will
dereference pointers to objects during unmarshalling, but rather, it seems
dangerous to work with slices of pointers to spans.

Release note: None
@msbutler msbutler self-assigned this Jul 18, 2023
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@msbutler msbutler changed the title Butler c2c new plumbing c2c: add CreateForSpanConfigs to the stream client Jul 18, 2023
@msbutler msbutler force-pushed the butler-c2c-new-plumbing branch 2 times, most recently from 88f4180 to 08d2dea Compare July 18, 2023 15:58
@msbutler msbutler marked this pull request as ready for review July 18, 2023 15:58
@msbutler msbutler requested review from a team as code owners July 18, 2023 15:58
@msbutler msbutler requested review from adityamaru, stevendanna and lidorcarmel and removed request for a team July 18, 2023 15:58
@msbutler msbutler removed the request for review from adityamaru July 18, 2023 16:58
@rafiss rafiss removed the request for review from a team July 20, 2023 20:00
This patch adds a new call to the stream client and the new
`crdb_internal.start_span_config_replication_stream()` sql call which will
begin a replication stream on the _system_ tenant's span configuration table to
stream updates specific to the passed in application tenant. The ForSpanConfigs
flag is now persisted to the producer job record to indicate this flavour of
replication stream.

A future PR will plumb this info through the StreamPartition spec.

Informs cockroachdb#106823

Release note: None
@msbutler
Copy link
Collaborator Author

closing in favor of #107671

@msbutler msbutler closed this Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants