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
e388e780
Commit
e388e780
authored
Jan 31, 2022
by
Valery Sizov
Committed by
Douglas Barbosa Alexandre
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo: Improvements to SSF guides
Changef migrations and models
parent
28ea4f63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
36 deletions
+32
-36
.gitlab/issue_templates/Geo Replicate a new Git repository type.md
...ssue_templates/Geo Replicate a new Git repository type.md
+16
-18
.gitlab/issue_templates/Geo Replicate a new blob type.md
.gitlab/issue_templates/Geo Replicate a new blob type.md
+16
-18
No files found.
.gitlab/issue_templates/Geo Replicate a new Git repository type.md
View file @
e388e780
...
...
@@ -130,25 +130,23 @@ The Geo primary site needs to checksum every replicable so secondaries can verif
FAILED_VERIFICATION_INDEX_NAME
=
"index_cool_widget_states_failed_verification"
NEEDS_VERIFICATION_INDEX_NAME
=
"index_cool_widget_states_needs_verification"
disable_ddl_transaction
!
enable_lock_retries
!
def
up
with_lock_retries
do
create_table
:cool_widget_states
,
id:
false
do
|
t
|
t
.
references
:cool_widget
,
primary_key:
true
,
null:
false
,
foreign_key:
{
on_delete: :cascade
}
t
.
integer
:verification_state
,
default:
0
,
limit:
2
,
null:
false
t
.
column
:verification_started_at
,
:datetime_with_timezone
t
.
datetime_with_timezone
:verification_retry_at
t
.
datetime_with_timezone
:verified_at
t
.
integer
:verification_retry_count
,
limit:
2
t
.
binary
:verification_checksum
,
using:
'verification_checksum::bytea'
t
.
text
:verification_failure
,
limit:
255
t
.
index
:verification_state
,
name:
VERIFICATION_STATE_INDEX_NAME
t
.
index
:verified_at
,
where:
"(verification_state = 0)"
,
order:
{
verified_at:
'ASC NULLS FIRST'
},
name:
PENDING_VERIFICATION_INDEX_NAME
t
.
index
:verification_retry_at
,
where:
"(verification_state = 3)"
,
order:
{
verification_retry_at:
'ASC NULLS FIRST'
},
name:
FAILED_VERIFICATION_INDEX_NAME
t
.
index
:verification_state
,
where:
"(verification_state = 0 OR verification_state = 3)"
,
name:
NEEDS_VERIFICATION_INDEX_NAME
end
create_table
:cool_widget_states
,
id:
false
do
|
t
|
t
.
datetime_with_timezone
:verification_started_at
t
.
datetime_with_timezone
:verification_retry_at
t
.
datetime_with_timezone
:verified_at
t
.
references
:cool_widget
,
primary_key:
true
,
null:
false
,
foreign_key:
{
on_delete: :cascade
}
t
.
integer
:verification_state
,
default:
0
,
limit:
2
,
null:
false
t
.
integer
:verification_retry_count
,
limit:
2
t
.
binary
:verification_checksum
,
using:
'verification_checksum::bytea'
t
.
text
:verification_failure
,
limit:
255
t
.
index
:verification_state
,
name:
VERIFICATION_STATE_INDEX_NAME
t
.
index
:verified_at
,
where:
"(verification_state = 0)"
,
order:
{
verified_at:
'ASC NULLS FIRST'
},
name:
PENDING_VERIFICATION_INDEX_NAME
t
.
index
:verification_retry_at
,
where:
"(verification_state = 3)"
,
order:
{
verification_retry_at:
'ASC NULLS FIRST'
},
name:
FAILED_VERIFICATION_INDEX_NAME
t
.
index
:verification_state
,
where:
"(verification_state = 0 OR verification_state = 3)"
,
name:
NEEDS_VERIFICATION_INDEX_NAME
end
end
...
...
@@ -489,7 +487,7 @@ That's all of the required database changes.
module
Geo
class
CoolWidgetState
<
ApplicationRecord
include
EachBatch
self
.
primary_key
=
:cool_widget_id
belongs_to
:cool_widget
,
inverse_of: :cool_widget_state
...
...
.gitlab/issue_templates/Geo Replicate a new blob type.md
View file @
e388e780
...
...
@@ -132,25 +132,23 @@ The Geo primary site needs to checksum every replicable so secondaries can verif
FAILED_VERIFICATION_INDEX_NAME
=
"index_cool_widget_states_failed_verification"
NEEDS_VERIFICATION_INDEX_NAME
=
"index_cool_widget_states_needs_verification"
disable_ddl_transaction
!
enable_lock_retries
!
def
up
with_lock_retries
do
create_table
:cool_widget_states
,
id:
false
do
|
t
|
t
.
references
:cool_widget
,
primary_key:
true
,
null:
false
,
foreign_key:
{
on_delete: :cascade
}
t
.
integer
:verification_state
,
default:
0
,
limit:
2
,
null:
false
t
.
column
:verification_started_at
,
:datetime_with_timezone
t
.
datetime_with_timezone
:verification_retry_at
t
.
datetime_with_timezone
:verified_at
t
.
integer
:verification_retry_count
,
limit:
2
t
.
binary
:verification_checksum
,
using:
'verification_checksum::bytea'
t
.
text
:verification_failure
,
limit:
255
t
.
index
:verification_state
,
name:
VERIFICATION_STATE_INDEX_NAME
t
.
index
:verified_at
,
where:
"(verification_state = 0)"
,
order:
{
verified_at:
'ASC NULLS FIRST'
},
name:
PENDING_VERIFICATION_INDEX_NAME
t
.
index
:verification_retry_at
,
where:
"(verification_state = 3)"
,
order:
{
verification_retry_at:
'ASC NULLS FIRST'
},
name:
FAILED_VERIFICATION_INDEX_NAME
t
.
index
:verification_state
,
where:
"(verification_state = 0 OR verification_state = 3)"
,
name:
NEEDS_VERIFICATION_INDEX_NAME
end
create_table
:cool_widget_states
,
id:
false
do
|
t
|
t
.
datetime_with_timezone
:verification_started_at
t
.
datetime_with_timezone
:verification_retry_at
t
.
datetime_with_timezone
:verified_at
t
.
references
:cool_widget
,
primary_key:
true
,
null:
false
,
foreign_key:
{
on_delete: :cascade
}
t
.
integer
:verification_state
,
default:
0
,
limit:
2
,
null:
false
t
.
integer
:verification_retry_count
,
limit:
2
t
.
binary
:verification_checksum
,
using:
'verification_checksum::bytea'
t
.
text
:verification_failure
,
limit:
255
t
.
index
:verification_state
,
name:
VERIFICATION_STATE_INDEX_NAME
t
.
index
:verified_at
,
where:
"(verification_state = 0)"
,
order:
{
verified_at:
'ASC NULLS FIRST'
},
name:
PENDING_VERIFICATION_INDEX_NAME
t
.
index
:verification_retry_at
,
where:
"(verification_state = 3)"
,
order:
{
verification_retry_at:
'ASC NULLS FIRST'
},
name:
FAILED_VERIFICATION_INDEX_NAME
t
.
index
:verification_state
,
where:
"(verification_state = 0 OR verification_state = 3)"
,
name:
NEEDS_VERIFICATION_INDEX_NAME
end
end
...
...
@@ -453,7 +451,7 @@ That's all of the required database changes.
module
Geo
class
CoolWidgetState
<
ApplicationRecord
include
EachBatch
self
.
primary_key
=
:cool_widget_id
belongs_to
:cool_widget
,
inverse_of: :cool_widget_state
...
...
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