[ 
https://issues.apache.org/jira/browse/NIFI-3716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16000668#comment-16000668
 ] 

ASF GitHub Bot commented on NIFI-3716:
--------------------------------------

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
    ```
    



> Utility to calculate MAX storage required for BackPressure on a Node
> --------------------------------------------------------------------
>
>                 Key: NIFI-3716
>                 URL: https://issues.apache.org/jira/browse/NIFI-3716
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Niemiec
>            Assignee: Eric Ulicny
>            Priority: Trivial
>
> Today there is no way to understand the max amount of data which can be 
> stored in backpressure for a given flow. Personally have had users configure 
> queues with impossible backpressure amounts that would definitely fill the 
> disk, having an operational tool to understand if anyone has done something 
> so dramatic would be helpful. 
> I see this produce a report by analyzing the FlowFile.xml.gz.
> * Total Storage for all queues Backpressure 
> * Average Storage of all queues  Backpressure
> * Min and Max of all queues  Backpressure over the entire flow. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to