Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1076

Provenance Repository will sometimes spew error messages about ZLIB End-of-File messages on restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • Extensions
    • None

    Description

      We see the following error message sometimes on restart of NiFi. This seems to be due to the fact that the file was created but had no data written to it.

      This shouldn't really hurt anything, as there is no data in the file. The file could simply be ignored. It is probably best to change the ERROR message to a WARN or even an INFO message, though, and indicate that the file had no data and so is being skipped.

      2015-10-27 12:33:36,905 ERROR [main] o.a.n.p.PersistentProvenanceRepository Failed to read Provenance Event File ./provenance_repository/43401826.prov.gz due to {}
      java.io.EOFException: Unexpected end of ZLIB input stream
      at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) ~[na:1.8.0_60]
      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[na:1.8.0_60]
      at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:117) ~[na:1.8.0_60]
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[na:1.8.0_60]
      at java.io.BufferedInputStream.read(BufferedInputStream.java:265) ~[na:1.8.0_60]
      at org.apache.nifi.stream.io.ByteCountingInputStream.read(ByteCountingInputStream.java:41) ~[nifi-utils-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:337) ~[na:1.8.0_60]
      at java.io.DataInputStream.readUTF(DataInputStream.java:589) ~[na:1.8.0_60]
      at java.io.DataInputStream.readUTF(DataInputStream.java:564) ~[na:1.8.0_60]
      at org.apache.nifi.provenance.StandardRecordReader.<init>(StandardRecordReader.java:91) ~[nifi-persistent-provenance-repository-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.nifi.provenance.serialization.RecordReaders.newRecordReader(RecordReaders.java:106) ~[nifi-persistent-provenance-repository-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.nifi.provenance.PersistentProvenanceRepository.recover(PersistentProvenanceRepository.java:548) [nifi-persistent-provenance-repository-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.nifi.provenance.PersistentProvenanceRepository.initialize(PersistentProvenanceRepository.java:219) [nifi-persistent-provenance-repository-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.nifi.controller.FlowController.<init>(FlowController.java:406) [nifi-framework-core-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:349) [nifi-framework-core-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:63) [nifi-framework-core-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) [spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]

      Attachments

        Activity

          People

            Unassigned Unassigned
            markap14 Mark Payne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: