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
0f7f22d2
Commit
0f7f22d2
authored
Feb 26, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'es_checker' of gitlab.com:gitlab-org/gitlab-ee into ee_master
parents
8151efa5
852615b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
CHANGELOG-EE
CHANGELOG-EE
+4
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+24
-0
No files found.
CHANGELOG-EE
View file @
0f7f22d2
...
...
@@ -8,6 +8,10 @@ v 8.5.1
v 8.5.0
- Fix Elasticsearch blob results linking to the wrong reference ID (Stan Hu)
v 8.6.0(unreleased)
- [Elastic] Add elastic checker to gitlab:check
v 8.5.0
- Show warning when mirror repository default branch could not be updated because it has diverged from upstream.
- More reliable wiki indexer
- GitLab Pages gets support for custom domain and custom certificate
...
...
lib/tasks/gitlab/check.rake
View file @
0f7f22d2
...
...
@@ -30,6 +30,7 @@ namespace :gitlab do
check_ruby_version
check_git_version
check_active_users
check_elasticsearch
if
Gitlab
.
config
.
elasticsearch
.
enabled
finished_checking
"GitLab"
end
...
...
@@ -981,4 +982,27 @@ namespace :gitlab do
puts
"No ref lock files exist"
.
green
end
end
def
check_elasticsearch
client
=
Elasticsearch
::
Client
.
new
(
host:
Gitlab
.
config
.
elasticsearch
.
host
,
port:
Gitlab
.
config
.
elasticsearch
.
port
)
print
"Elasticsearch version >= 2.0? ... "
version
=
client
.
info
[
"version"
][
"number"
]
if
version
.
starts_with?
(
"2"
)
puts
"yes (
#{
version
}
)"
.
green
else
puts
"no"
.
red
end
print
"Elasticsearch has plugin delete-by-query installed? ... "
if
client
.
cat
.
plugins
.
include?
(
"delete-by-query"
)
puts
"yes"
.
green
else
puts
"no"
.
red
end
end
end
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