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

staging: Rename database objects #850

Merged
merged 1 commit into from
May 8, 2024
Merged

staging: Rename database objects #850

merged 1 commit into from
May 8, 2024

Conversation

bobvawter
Copy link
Member

@bobvawter bobvawter commented May 8, 2024

This commit changes the default staging database name from _cdc_sink to _replicator. The provider function for the staging database name is updated to look for the legacy name and use that instead.

Various references to the _cdc_sink database have been updated to reflect the new name. Existing documents in the migrations directory are not updated, since they are historical documents only.

The default name for the DLQ table has been adjusted without automatic backward-compatibility, since this has only been used in limited testing scenarios.


This change is Reviewable

This commit changes the default staging database name from _cdc_sink to
_replicator. The provider function for the staging database name is updated to
look for the legacy name and use that instead.

Various references to the _cdc_sink database have been updated to reflect the
new name. Existing documents in the migrations directory are not updated, since
they are historical documents only.

The default name for the DLQ table has been adjusted without automatic
backward-compatibility, since this has only been used in limited testing
scenarios.
@bobvawter bobvawter mentioned this pull request May 8, 2024
28 tasks
Copy link
Contributor

@sravotto sravotto left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 10 of 16 files at r1, all commit messages.
Reviewable status: 10 of 16 files reviewed, all discussions resolved (waiting on @BramGruneir)

Copy link
Member

@BramGruneir BramGruneir left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 16 of 16 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @bobvawter)


internal/sinktest/base/provider.go line 111 at r1 (raw file):

	SourcePool   *types.SourcePool       // Access to user-data tables and changefeed creation.
	SourceSchema sinktest.SourceSchema   // A container for tables within SourcePool.
	StagingPool  *types.StagingPool      // Access to _replicator database.

Why not just call these staging instead of _replicator?

@bobvawter bobvawter added this pull request to the merge queue May 8, 2024
Merged via the queue into master with commit 482cd09 May 8, 2024
47 of 48 checks passed
@bobvawter bobvawter deleted the legacy_staging branch May 8, 2024 19:01
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