elasticsearch/elasticsearch — Issue #1410: river-twitter needs better error handling
Author: abh
Created: 2011-10-19 17:20:34+00:00
State: open

I setup a river with

```{
"type" : "twitter",
"twitter" : {
"user" : "me",
"password" : "1234",
"index" : {
"index" : "twitter-google",
"type" : "status",
"bulk_size" : 10
},
"filter" : {
"tracks" : "google"
}
}
}```

It kept getting disconnected, showing two problems:

* Lack of logging (see #1409)
* Lack of error handling. If it keeps getting disconnected it should back off for a bit and wait a little between each connection. I'm not sure if it got disconnected because it had two connections going (I think not, but maybe) or because it was getting an error. If the latter it wasn't being logged and the client wasn't behaving properly.