Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
65793e64
Commit
65793e64
authored
Jul 17, 2020
by
Shinya Maeda
Committed by
Mike Jang
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example to the multi-version-compatibility
parent
0fa1d604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
doc/development/multi_version_compatibility.md
doc/development/multi_version_compatibility.md
+15
-0
No files found.
doc/development/multi_version_compatibility.md
View file @
65793e64
...
...
@@ -60,3 +60,18 @@ We added a `NOT NULL` constraint to a column and marked it as a `NOT VALID` cons
But even with that, this was still a problem because the old servers were still inserting new rows with null values.
For more information, see
[
the relevant issue
](
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/1944
)
.
### Downtime on release features between canary and production deployment
To address the issue, we added a new column to an existing table with a
`NOT NULL`
constraint without
specifying a default value. In other words, this requires the application to set a value to the column.
The older version of the application didn't set the
`NOT NULL`
constraint since the entity/concept didn't
exist before.
The problem starts right after the canary deployment is complete. At that moment,
the database migration (to add the column) has successfully run and canary instance starts using
the new application code, hence QA was successful. Unfortunately, the production
instance still uses the older code, so it started failing to insert a new release entry.
For more information, see
[
this issue related to the Releases API
](
https://gitlab.com/gitlab-org/gitlab-foss/-/issues/64151
)
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment