FLUME-2089 ElasticsearchSink blocks and raises exceptions when event body has unexpected encoding
Review Request #13509 - Created Aug. 12, 2013 and updated
The ElasticsearchSink is quite aggressive in assuming that the incoming event is JSON. However, if it is not JSON or YAML then an exception is thrown which would block the queue from processing further messages. This patch catches Exception and writes the data as a simple field.
Mvn install passes. A custom build with this patch is currently running in many of our environments with no problems and the event which caused the issue was safely stored.