Documentation to Revert RTR back to MasterETL - #141
Draft
ericnagel wants to merge 6 commits into
Draft
Conversation
ericnagel
marked this pull request as draft
September 8, 2026 20:42
ericnagel
marked this pull request as ready for review
September 8, 2026 20:45
ericnagel
marked this pull request as draft
September 10, 2026 15:00
mpeels
reviewed
Sep 10, 2026
Comment on lines
+18
to
+19
| Reverting does **not** require undeploying [[nbs-7]]. If you want to remove RTR and keep NBS 7 running, | ||
| this page is the whole procedure. |
Author
There was a problem hiding this comment.
docs/undeploy-nbs7.md is titled "Undeploy NBS 7" so I think this should remain "undeploying"
Comment on lines
+419
to
+435
| ### 2d. Disable CDC on NBS_SRTE | ||
|
|
||
| `NBS_SRTE` is reference data and RTR is its only known CDC consumer. Confirm that for your environment, | ||
| then disable the capture instances and the database-level flag: | ||
|
|
||
| ```sql | ||
| USE NBS_SRTE; | ||
|
|
||
| -- Generate the per-table statements | ||
| SELECT 'EXEC sys.sp_cdc_disable_table @source_schema = N''' + s.name + | ||
| ''', @source_name = N''' + t.name + | ||
| ''', @capture_instance = N''' + ct.capture_instance + ''';' AS statement_to_run | ||
| FROM cdc.change_tables ct | ||
| JOIN sys.tables t ON t.object_id = ct.source_object_id | ||
| JOIN sys.schemas s ON s.schema_id = t.schema_id | ||
| ORDER BY t.name; | ||
| ``` |
There was a problem hiding this comment.
We could also provide a script that checks if CDC was enabled for any table other than what RTR requires. If so, that would indicate CDC was enabled for some other purpose on SRTE.
Author
There was a problem hiding this comment.
Added a script that looks for CDC-enabled tables that are outside of the scope of RTR
Although what if:
- Table already had CDC enabled
- Bootstrap script specifies to enable it
- We turn it off
That's bad. There's another method using timestamps, let me expand on this...
Author
There was a problem hiding this comment.
Step 2 is ready to be reviewed again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instructions on rolling back to MasterETL after installing RTR.
Related: BRDG-7