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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: Sinks+Sources
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: