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

streamingccl: rename Create and Plan in client interface #125572

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

msbutler
Copy link
Collaborator

This patch renames Create to CreateForTenant and Plan to PlanPhysicalReplication to better destinguish which api calls relate to PCR vs LDR.

Follow up work will move CreateForTenant and PlanPhysicalReplication into its own client interface wrapper for PCR.

Epic: none

Release note: none

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@msbutler
Copy link
Collaborator Author

unrelated flakes

@msbutler msbutler marked this pull request as ready for review June 12, 2024 21:05
@msbutler msbutler requested review from a team as code owners June 12, 2024 21:05
@msbutler msbutler requested review from stevendanna and removed request for a team June 12, 2024 21:05
// Create implements Client interface.
func (p *partitionedStreamClient) Create(
// CreateForTenant implements Client interface.
func (p *partitionedStreamClient) CreateForTenant(
ctx context.Context, tenantName roachpb.TenantName, req streampb.ReplicationProducerRequest,
) (streampb.ReplicationProducerSpec, error) {
ctx, sp := tracing.ChildSpan(ctx, "streamclient.Client.Create")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update span name.

… interface

This patch renames Create to CreateForTenant and Plan to
PlanPhysicalReplication in Client and PartitionSpans to PlanLogicalReplication
in LogicalReplicationClieng to better destinguish which api calls relate to PCR
vs LDR.

Follow up work will move CreateForTenant and PlanPhysicalReplication into its
own client interface wrapper for PCR.

Epic: none

Release note: none
This patch renames crdb_internal.partition_spans to
crdb_internal.plan_logical_replication, and on replicationStreamManager,
PartitionSpans to PlanLogicalReplication and GetReplicationStreamSpec to
GetPhysicalReplicationStreamSpec. I intentionally did not rename
crdb_internal.replication_stream_specover cross version compatability concerns.

Epic: none

Release note: none
@msbutler
Copy link
Collaborator Author

TFTR!

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Jun 13, 2024

Build failed:

@msbutler
Copy link
Collaborator Author

bors r+

@craig craig bot merged commit 45957cf into cockroachdb:master Jun 13, 2024
22 checks passed
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.

3 participants