[
https://issues.apache.org/jira/browse/NIFI-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367277#comment-14367277
]
Joseph Witt commented on NIFI-432:
----------------------------------
oops - maybe less awesome just yet.
Tests run: 17, Failures: 0, Errors: 2, Skipped: 1, Time elapsed: 38.902 sec <<<
FAILURE! - in org.apache.nifi.provenance.TestPersistentProvenanceRepository
testIndexDirectoryRemoved(org.apache.nifi.provenance.TestPersistentProvenanceRepository)
Time elapsed: 4.817 sec <<< ERROR!
java.io.IOException: Could not find Provenance Log File with basename 0 in the
Provenance Repository
at
org.apache.nifi.provenance.PersistentProvenanceRepository.queryEvents(PersistentProvenanceRepository.java:1309)
at
org.apache.nifi.provenance.TestPersistentProvenanceRepository.testIndexDirectoryRemoved(TestPersistentProvenanceRepository.java:992)
testIndexAndCompressOnRolloverAndSubsequentSearchAsync(org.apache.nifi.provenance.TestPersistentProvenanceRepository)
Time elapsed: 4.811 sec <<< ERROR!
java.io.IOException: Could not find Provenance Log File with basename 0 in the
Provenance Repository
at
org.apache.nifi.provenance.PersistentProvenanceRepository.queryEvents(PersistentProvenanceRepository.java:1309)
at
org.apache.nifi.provenance.TestPersistentProvenanceRepository.testIndexAndCompressOnRolloverAndSubsequentSearchAsync(TestPersistentProvenanceRepository.java:532)
Results :
Tests in error:
TestPersistentProvenanceRepository.testIndexAndCompressOnRolloverAndSubsequentSearchAsync:532
» IO
TestPersistentProvenanceRepository.testIndexDirectoryRemoved:992 » IO Could
no...
----
> PersistentProvenanceRepository unit tests take a very long time
> ---------------------------------------------------------------
>
> Key: NIFI-432
> URL: https://issues.apache.org/jira/browse/NIFI-432
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Mark Payne
> Fix For: 0.1.0
>
> Attachments:
> 0002-NIFI-432-Reduced-amount-of-time-needed-for-rollovers.patch
>
>
> Unit tests take a really long time because they wait for the repo to
> rollover. This is because we only check if it's time to rollover
> infrequently. We can fix this by allowing the RepositoryConfiguration to
> specify how long we should wait to check and setting the value much smaller
> for unit tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)