Github user PuspenduBanerjee commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1580#discussion_r105752431
--- 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 --
I agree with you that exception should be thrown. I would prefer a
RuntimeException with a message like
> System returned total space of the partition for {reponame} is zero
byte. Nifi can not create a zero sized FileSystemRepository
As Javadoc says that IOException signals that an I/O exception of some sort
has occurred. This class is the general class of exceptions produced by failed
or interrupted I/O operations.
---
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.
---