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
c9e4a145
Commit
c9e4a145
authored
Jul 20, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Elastic] Suppress ActiveRecord::RecordNotFound error in ElasticIndexWorker
parent
b4eed194
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG-EE
CHANGELOG-EE
+1
-0
app/workers/elastic_indexer_worker.rb
app/workers/elastic_indexer_worker.rb
+1
-1
No files found.
CHANGELOG-EE
View file @
c9e4a145
...
@@ -9,6 +9,7 @@ v 8.10.0 (unreleased)
...
@@ -9,6 +9,7 @@ v 8.10.0 (unreleased)
- Make Elasticsearch indexer run as an async task
- Make Elasticsearch indexer run as an async task
- Fix of removing wiki data from index when project is deleted
- Fix of removing wiki data from index when project is deleted
- Ticket-based Kerberos authentication (SPNEGO)
- Ticket-based Kerberos authentication (SPNEGO)
- [Elastic] Suppress ActiveRecord::RecordNotFound error in ElasticIndexWorker
v.8.9.7 (unreleased)
v.8.9.7 (unreleased)
- Fix error in admin dashboard when Geo is enabled and current node is nil.
- Fix error in admin dashboard when Geo is enabled and current node is nil.
...
...
app/workers/elastic_indexer_worker.rb
View file @
c9e4a145
...
@@ -21,7 +21,7 @@ class ElasticIndexerWorker
...
@@ -21,7 +21,7 @@ class ElasticIndexerWorker
clear_project_indexes
(
record_id
)
if
klass
==
Project
clear_project_indexes
(
record_id
)
if
klass
==
Project
end
end
rescue
Elasticsearch
::
Transport
::
Transport
::
Errors
::
NotFound
rescue
Elasticsearch
::
Transport
::
Transport
::
Errors
::
NotFound
,
ActiveRecord
::
RecordNotFound
true
# Less work to do!
true
# Less work to do!
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