Github user josephxsxn commented on the issue:
https://github.com/apache/nifi/pull/1747
Test fails when building Looks trivial see below. Also built it with
skipTests anyway just to run it again, on 1 Cluster I am getting a null.
```
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.nifi.toolkit.FlowAnalyzerDriverTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
<<< FAILURE! - in org.apache.nifi.toolkit.FlowAnalyzerDriverTest
convertBytesToGB(org.apache.nifi.toolkit.FlowAnalyzerDriverTest) Time
elapsed: 0.006 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<13[]> but was:<13[.000000000]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at
org.apache.nifi.toolkit.FlowAnalyzerDriverTest.convertBytesToGB(FlowAnalyzerDriverTest.java:37)
Results :
Failed tests:
FlowAnalyzerDriverTest.convertBytesToGB:37 expected:<13[]> but
was:<13[.000000000]>
```
```
/usr/jdk64/jdk1.8.0_60/bin/java -cp
./nifi-toolkit-flowanalyzer-1.2.0-SNAPSHOT.jar
org.apache.nifi.toolkit.flowanalyzer.FlowAnalyzerDriver
/usr/hdf/nifi/conf/flow.xml.gz
Using flowfile=/usr/hdf/nifi/conf/flow.xml.gz
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact
representable decimal result.
at java.math.BigDecimal.divide(BigDecimal.java:1690)
at
org.apache.nifi.toolkit.flowanalyzer.FlowAnalyzerDriver.main(FlowAnalyzerDriver.java:91)
Exception Occured while attempting to parse Flowfile.xml. Cause: null
```
---
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.
---