Github user m-hogue commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2010#discussion_r128622791
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/FileSystemRepository.java
---
@@ -149,6 +154,10 @@ public FileSystemRepository(final NiFiProperties
nifiProperties) throws IOExcept
for (final Path path : fileRespositoryPaths.values()) {
Files.createDirectories(path);
}
+ this.maxFlowFilesPerClaim =
nifiProperties.getMaxFlowFilesPerClaim();
+ this.writableClaimQueue = new
LinkedBlockingQueue<>(maxFlowFilesPerClaim);
+ final String maxAppendableClaimSize =
nifiProperties.getMaxAppendableClaimSize();
+ this.maxAppendableClaimLength =
DataUnit.parseDataSize(maxAppendableClaimSize, DataUnit.B).intValue();
--- End diff --
Yep - that makes total sense. Should the max be configurable or static? I
can do either way.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---