[ 
https://issues.apache.org/jira/browse/NIFI-632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Bress updated NIFI-632:
---------------------------
    Attachment: 0001-Squashed-commit-of-the-following.patch

11th time is the charm on this one.  Look at the attached patch of 
[github|https://github.com/apache/incubator-nifi/compare/NIFI-632] both should 
have all the updates.

New things in this batch
1) adding VolatileContentRepository and VolatileFlowFileRepository to service 
definition files
2) moved thread startup out of VolatileContentRepository contructor and into 
initialize method

noticed all these things look good
a) no errors/warnings in logs during startup
b) all documentation appears to be generated
c) flow looks good and works as expected

this doesn't look so good.  On shutdown I see:
{noformat}
2015-06-13 12:30:33,853 ERROR [Provenance Repository Rollover Thread-1] 
o.a.n.p.PersistentProvenanceRepository Failed to merge Journal Files 
[.\provenance_repository\journals\1834.journal.0, 
.\provenance_repository\journals\1834.journal.1, 
.\provenance_repository\journals\1834.journal.2, 
.\provenance_repository\journals\1834.journal.3, 
.\provenance_repository\journals\1834.journal.4, 
.\provenance_repository\journals\1834.journal.5, 
.\provenance_repository\journals\1834.journal.6, 
.\provenance_repository\journals\1834.journal.7, 
.\provenance_repository\journals\1834.journal.8, 
.\provenance_repository\journals\1834.journal.9, 
.\provenance_repository\journals\1834.journal.10, 
.\provenance_repository\journals\1834.journal.11, 
.\provenance_repository\journals\1834.journal.12, 
.\provenance_repository\journals\1834.journal.13, 
.\provenance_repository\journals\1834.journal.14, 
.\provenance_repository\journals\1834.journal.15] into a Provenance Log File 
due to java.nio.channels.ClosedByInterruptException

2015-06-13 12:30:33,869 ERROR [Provenance Repository Rollover Thread-1] 
o.a.n.p.PersistentProvenanceRepository 
java.nio.channels.ClosedByInterruptException: null
        at 
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
 ~[na:1.7.0_71]
        at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:312) 
~[na:1.7.0_71]
        at 
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:199) ~[na:na]
        at org.apache.lucene.store.Directory.copy(Directory.java:193) ~[na:na]
        at 
org.apache.lucene.store.TrackingDirectoryWrapper.copy(TrackingDirectoryWrapper.java:50)
 ~[na:na]
        at 
org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4785) 
~[na:na]
        at 
org.apache.lucene.index.DocumentsWriterPerThread.sealFlushedSegment(DocumentsWriterPerThread.java:511)
 ~[na:na]
        at 
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:478)
 ~[na:na]
        at 
org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:521) 
~[na:na]
        at 
org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:632)
 ~[na:na]
        at 
org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2979)
 ~[na:na]
        at 
org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3134) 
~[na:na]
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3101) 
~[na:na]
        at 
org.apache.nifi.provenance.PersistentProvenanceRepository.mergeJournals(PersistentProvenanceRepository.java:1336)
 ~[na:na]
        at 
org.apache.nifi.provenance.PersistentProvenanceRepository$6.run(PersistentProvenanceRepository.java:976)
 ~[na:na]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
[na:1.7.0_71]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) 
[na:1.7.0_71]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 [na:1.7.0_71]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 [na:1.7.0_71]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_71]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_71]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
{noformat}

Is this related?

> Documentation Generation: Nar ClassLoader
> -----------------------------------------
>
>                 Key: NIFI-632
>                 URL: https://issues.apache.org/jira/browse/NIFI-632
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.1.0
>            Reporter: Matt Gilman
>            Assignee: Dan Bress
>            Priority: Minor
>             Fix For: 0.2.0
>
>         Attachments: 0001-Squashed-commit-of-the-following.patch
>
>
> When auto generating component documentation the NarThreadContextClassLoader 
> needs to be set in case the component attempts to load anything off of its 
> classpath. Without this, the documentation generation fails.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to