Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.0
-
None
Description
org.apache.flume.sink.solr.morphline.BlobDeserializer does not handles empty streams correctly. For example if the deserializer is used with a spooling directory containing empty files then the empty files will not be consumed and through exception.
Also following test will also fail in org.apache.flume.sink.solr.morphline.TestBlobDeserializer
@Test public void testEmptyStream() throws IOException { mini = ""; ResettableInputStream in = new ResettableTestStringInputStream(mini); EventDeserializer des = new BlobDeserializer(new Context(), in); validateMiniParse(des); }