Closed
Bug 791381
Opened 14 years ago
Closed 14 years ago
handle elasticsearch errors
Categories
(Input Graveyard :: Dashboard, defect, P1)
Input Graveyard
Dashboard
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Assigned: willkg)
References
Details
(Whiteboard: u=dev c=infrastructure p=2)
The dashboard view code currently throws an HTTP 500 error if any ElasticSearch errors pop up. It should handle them.
There are a couple of situations we definitely want to handle:
1. when the index is missing
2. when ES is down
3. when the query times out
We can crib the try/except block from the Kitsune code.
Options to handle icky ES situations:
1. we could wrap the ES-using code and use good default values when ES isn't around and show whatever dashboard page it can render
2. we could write a decorator that catches ES-related exceptions and show a specially prepared "Search Unavailable" (or whatever text makes sense) page when ES is down, not available, missing indexes, ...
| Assignee | ||
Comment 1•14 years ago
|
||
I think this is a 2 pointer given that we can crib most of it from Kitsune.
Priority: -- → P1
Whiteboard: u=dev c=infrastructure p=2
| Assignee | ||
Comment 2•14 years ago
|
||
I added some code to the dashboard page that alleviates the symptoms, but it's probably not what we want to do. So while the symptoms are gone, this isn't fixed, yet.
| Assignee | ||
Comment 3•14 years ago
|
||
Given that the dashboard is entirely ES driven, I think we should do an "Unavailable..." decorator.
I'll work on that.
Assignee: nobody → willkg
| Assignee | ||
Comment 4•14 years ago
|
||
In a pull request: https://github.com/mozilla/fjord/pull/36
| Assignee | ||
Comment 5•14 years ago
|
||
Landed in master in: https://github.com/mozilla/fjord/commit/7cea16d6ff7c4753546e8fbe5425ba98b03c2206
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Input → Input Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•