Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Delete and truncate problematic tables #patch#115

Merged
Omaaarz merged 8 commits intomicrosoft:mainfrom
Antonstockmarr:deleteNumberSequence
Nov 12, 2021
Merged

Delete and truncate problematic tables #patch#115
Omaaarz merged 8 commits intomicrosoft:mainfrom
Antonstockmarr:deleteNumberSequence

Conversation

@Antonstockmarr
Copy link
Copy Markdown
Contributor

The step to "truncate potentially problematic tables" left out tables that might cause issues. Only the NumberSequenceReference tables was truncated. NumberSequenceScope and NumberSequenceTable had rows that were related, but they were not deleted.
The step to remove problematic tables is now part of scale Unit Installation. This means that NumberSequence records can no longer be created between initializing the environment and installing workloads, which could cause the SYS package to fail.
This has been tested by running full deployment on SingleOnebox.
Resolves #113

Problematic tables will be cleared on the spoke just before the sys workload is installed instead of doing it as part of initialization. Clearing is only done before SYS, and only if SYS is not already running.
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
Comment thread src/ScaleUnitManagement/WorkloadSetupOrchestrator/ScaleUnitWorkloadInstaller.cs Outdated
@Antonstockmarr
Copy link
Copy Markdown
Contributor Author

Tested using the single execution deploy option, everything works as expected

@Omaaarz Omaaarz merged commit 6648eb3 into microsoft:main Nov 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Truncate NUMBERSEQUENCEREFERENCE table during initialization

3 participants