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
3e1e6656
Commit
3e1e6656
authored
Oct 23, 2020
by
Changzheng Liu
Committed by
Robert Speicher
Oct 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken rake task test:index_size
parent
2c0cdc7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ee/changelogs/unreleased/267563-rake-index-size-fix.yml
ee/changelogs/unreleased/267563-rake-index-size-fix.yml
+5
-0
ee/lib/tasks/gitlab/elastic/test.rake
ee/lib/tasks/gitlab/elastic/test.rake
+1
-1
No files found.
ee/changelogs/unreleased/267563-rake-index-size-fix.yml
0 → 100644
View file @
3e1e6656
---
title
:
Fix broken rake task test:index_size
merge_request
:
45960
author
:
type
:
fixed
ee/lib/tasks/gitlab/elastic/test.rake
View file @
3e1e6656
...
@@ -4,7 +4,7 @@ namespace :gitlab do
...
@@ -4,7 +4,7 @@ namespace :gitlab do
desc
'GitLab | Elasticsearch | Test | Measure space taken by ES indices'
desc
'GitLab | Elasticsearch | Test | Measure space taken by ES indices'
task
index_size: :environment
do
task
index_size: :environment
do
puts
"===== Size stats for index:
#{
Project
.
__elasticsearch__
.
index_name
}
====="
puts
"===== Size stats for index:
#{
Project
.
__elasticsearch__
.
index_name
}
====="
pp
Gitlab
::
Elastic
::
Helper
.
index_size
(
::
Elastic
::
MultiVersionUtil
::
TARGET_VERSION
)
.
slice
(
*
%w(docs store)
)
pp
Gitlab
::
Elastic
::
Helper
.
default
.
index_size
.
slice
(
*
%w(docs store)
)
end
end
desc
'GitLab | Elasticsearch | Test | Measure space taken by ES indices, reindex, and measure space taken again'
desc
'GitLab | Elasticsearch | Test | Measure space taken by ES indices, reindex, and measure space taken again'
...
...
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