Closed Bug 791381 Opened 14 years ago Closed 14 years ago

handle elasticsearch errors

Categories

(Input Graveyard :: Dashboard, defect, P1)

defect

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, ...
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
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.
Given that the dashboard is entirely ES driven, I think we should do an "Unavailable..." decorator. I'll work on that.
Assignee: nobody → willkg
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.