[
https://issues.apache.org/jira/browse/FLUME-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Muhammad Ehsan ul Haque resolved FLUME-2315.
--------------------------------------------
Resolution: Fixed
> org.apache.flume.sink.solr.morphline.BlobDeserializer is unable to handle
> empty streams
> ---------------------------------------------------------------------------------------
>
> Key: FLUME-2315
> URL: https://issues.apache.org/jira/browse/FLUME-2315
> Project: Flume
> Issue Type: Bug
> Components: Sinks+Sources
> Affects Versions: v1.4.0
> Reporter: Muhammad Ehsan ul Haque
> Fix For: v1.4.0
>
>
> 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
> {code}
> @Test
> public void testEmptyStream() throws IOException {
> mini = "";
> ResettableInputStream in = new ResettableTestStringInputStream(mini);
> EventDeserializer des = new BlobDeserializer(new Context(), in);
> validateMiniParse(des);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)