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
7096af19
Commit
7096af19
authored
Aug 19, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'es_add_explanation_comments' into 'master'
[ES] Add explanation comments See merge request !650
parents
76c26cab
a19c93a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
app/workers/elastic_indexer_worker.rb
app/workers/elastic_indexer_worker.rb
+7
-1
lib/gitlab/elastic/indexer.rb
lib/gitlab/elastic/indexer.rb
+3
-0
No files found.
app/workers/elastic_indexer_worker.rb
View file @
7096af19
...
...
@@ -36,7 +36,13 @@ class ElasticIndexerWorker
clear_project_indexes
(
record_id
)
if
klass
==
Project
end
rescue
Elasticsearch
::
Transport
::
Transport
::
Errors
::
NotFound
,
ActiveRecord
::
RecordNotFound
true
# Less work to do!
# These errors can happen in several cases, including:
# - A record is updated, then removed before the update is handled
# - Indexing is enabled, but not every item has been indexed yet - updating
# and deleting the un-indexed records will raise exception
#
# We can ignore these.
true
end
private
...
...
lib/gitlab/elastic/indexer.rb
View file @
7096af19
# Create a separate process, which does not load the Rails environment, to index
# each repository. This prevents memory leaks in the indexer from affecting the
# rest of the application.
module
Gitlab
module
Elastic
class
Indexer
...
...
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