Github user mosermw commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1580#discussion_r105747874
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/FileSystemRepository.java
---
@@ -199,13 +199,13 @@ public FileSystemRepository(final NiFiProperties
nifiProperties) throws IOExcept
for (final Map.Entry<String, Path> container :
containers.entrySet()) {
final String containerName = container.getKey();
- final long capacity =
Files.getFileStore(container.getValue()).getTotalSpace();
+ final long capacity =
container.getValue().toFile().getTotalSpace();
--- End diff --
If there is a problem, FileStore.getTotalSpace() throws IOException but
File.getTotalSpace() returns 0. I think you should throw an IOException if
capacity == 0, in order to maintain similar behavior here.
---
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.
---