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 2026/09/17 19:09:00 UTC
[jira] [Commented] (NIFI-16357) Override number of sections per container for FileSystemRepository tests
[ https://issues.apache.org/jira/browse/NIFI-16357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116465#comment-18116465 ]
ASF subversion and git services commented on NIFI-16357:
--------------------------------------------------------
Commit 1a57774cab455b04fac9f030b0ce8c26f4d0160c in nifi's branch refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=1a57774cab4 ]
NIFI-16357: Use 12 sections per container for FileSystemRepository in unit tests instead of 1024; this reduced run time from 2+ minutes to 24 seconds. Additionally, made a few minor tweaks to improve timing-based reliability of tests. (#11691)
> Override number of sections per container for FileSystemRepository tests
> ------------------------------------------------------------------------
>
> Key: NIFI-16357
> URL: https://issues.apache.org/jira/browse/NIFI-16357
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The {{FileSystemRepository}} implementation uses 1024 sections for each container. This is reasonable and useful for production. However, it leads to a significant amount of disk I/O when running tests. The {{TestFileSystemRepository}} currently takes just over 2 minutes per run on my Macbook. Updating it from 1024 sections per container to 12 sections per container resulted in the full test suite taking 24 seconds instead.
> We do not want to make this configurable. However, it does make sense to provide a package-level constructor that allows us to override the value for tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)