You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/09/13 13:35:00 UTC
[jira] [Commented] (NIFI-6660) Occasional test failure in
TestIndexDirectoryManager
[ https://issues.apache.org/jira/browse/NIFI-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929197#comment-16929197 ]
ASF subversion and git services commented on NIFI-6660:
-------------------------------------------------------
Commit af94b035cbb1e71ee9bca59e4215044ecc97f116 in nifi's branch refs/heads/master from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=af94b03 ]
NIFI-6660: Fixed ordering of directory creation and timestamp gathering
This closes #3731.
> Occasional test failure in TestIndexDirectoryManager
> ----------------------------------------------------
>
> Key: NIFI-6660
> URL: https://issues.apache.org/jira/browse/NIFI-6660
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Occasionally the TestIndexDirectoryManager test will fail, in the testGetDirectoriesBefore method. The assertion on Line 160 fails: `assertEquals(2, dirsBefore.size());`
> This appears to be due to the fact that in lines 152 and 153, we obtain a timestamp, then create a directory, and the assertion assumes that the last modified date of the directory will be <= the timestamp. However, if the timestamp changes between when we obtain the timestamp and when the file is created, this won't be true.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)