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
c6591acd
Commit
c6591acd
authored
Nov 08, 2021
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase reindexing timeout to 24 hours
Relates to
https://gitlab.com/gitlab-org/gitlab/-/issues/345134
parent
85cc12e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/database/reindexing/reindex_concurrently.rb
lib/gitlab/database/reindexing/reindex_concurrently.rb
+1
-1
spec/lib/gitlab/database/reindexing/reindex_concurrently_spec.rb
...b/gitlab/database/reindexing/reindex_concurrently_spec.rb
+2
-2
No files found.
lib/gitlab/database/reindexing/reindex_concurrently.rb
View file @
c6591acd
...
...
@@ -8,7 +8,7 @@ module Gitlab
ReindexError
=
Class
.
new
(
StandardError
)
TEMPORARY_INDEX_PATTERN
=
'\_ccnew[0-9]*'
STATEMENT_TIMEOUT
=
9
.
hours
STATEMENT_TIMEOUT
=
24
.
hours
PG_MAX_INDEX_NAME_LENGTH
=
63
attr_reader
:index
,
:logger
...
...
spec/lib/gitlab/database/reindexing/reindex_concurrently_spec.rb
View file @
c6591acd
...
...
@@ -62,7 +62,7 @@ RSpec.describe Gitlab::Database::Reindexing::ReindexConcurrently, '#perform' do
it
'recreates the index using REINDEX with a long statement timeout'
do
expect_to_execute_in_order
(
"SET statement_timeout TO '
32
400s'"
,
"SET statement_timeout TO '
86
400s'"
,
"REINDEX INDEX CONCURRENTLY
\"
public
\"
.
\"
#{
index
.
name
}
\"
"
,
"RESET statement_timeout"
)
...
...
@@ -84,7 +84,7 @@ RSpec.describe Gitlab::Database::Reindexing::ReindexConcurrently, '#perform' do
it
'drops the dangling indexes while controlling lock_timeout'
do
expect_to_execute_in_order
(
# Regular index rebuild
"SET statement_timeout TO '
32
400s'"
,
"SET statement_timeout TO '
86
400s'"
,
"REINDEX INDEX CONCURRENTLY
\"
public
\"
.
\"
#{
index_name
}
\"
"
,
"RESET statement_timeout"
,
# Drop _ccnew index
...
...
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