Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2315

org.apache.flume.sink.solr.morphline.BlobDeserializer is unable to handle empty streams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • Sinks+Sources
    • 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);
        }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ehsan Muhammad Ehsan ul Haque
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: