[ 
https://issues.apache.org/jira/browse/NIFI-8776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess resolved NIFI-8776.
--------------------------------
    Resolution: Fixed

> TestGetIgniteCache/TestPutIgniteCache can fail in some cases
> ------------------------------------------------------------
>
>                 Key: NIFI-8776
>                 URL: https://issues.apache.org/jira/browse/NIFI-8776
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>            Reporter: Joseph Gresock
>            Assignee: Joseph Gresock
>            Priority: Minor
>             Fix For: 1.15.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Though it's likely an edge case caused by udp ports not being able to be 
> bound, the following test failures can occur:
> {code:java}
> [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 9.3 s 
> <<< FAILURE! - in org.apache.nifi.processors.ignite.cache.TestGetIgniteCache
> [ERROR] org.apache.nifi.processors.ignite.cache.TestGetIgniteCache  Time 
> elapsed: 9.3 s  <<< ERROR!
> org.apache.ignite.IgniteException: Failed to start processor: 
> GridProcessorAdapter []
>       at 
> org.apache.nifi.processors.ignite.cache.TestGetIgniteCache.setUpClass(TestGetIgniteCache.java:60)
> Caused by: org.apache.ignite.IgniteCheckedException: Failed to start 
> processor: GridProcessorAdapter []
>       at 
> org.apache.nifi.processors.ignite.cache.TestGetIgniteCache.setUpClass(TestGetIgniteCache.java:60)
> Caused by: org.apache.ignite.IgniteCheckedException: Failed to bind time 
> server socket within specified port range [locHost=*****/0.0.40.205, 
> startPort=31100, endPort=31199]
>       at 
> org.apache.nifi.processors.ignite.cache.TestGetIgniteCache.setUpClass(TestGetIgniteCache.java:60)
> [ERROR] org.apache.nifi.processors.ignite.cache.TestGetIgniteCache  Time 
> elapsed: 9.3 s  <<< ERROR!
> java.lang.NullPointerException
>       at 
> org.apache.nifi.processors.ignite.cache.TestGetIgniteCache.tearDownClass(TestGetIgniteCache.java:67)
> [INFO] Running org.apache.nifi.processors.ignite.cache.TestPutIgniteCache
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.042 
> s <<< FAILURE! - in org.apache.nifi.processors.ignite.cache.TestPutIgniteCache
> [ERROR] org.apache.nifi.processors.ignite.cache.TestPutIgniteCache  Time 
> elapsed: 0.042 s  <<< ERROR!
> org.apache.ignite.IgniteException: Failed to start processor: 
> GridProcessorAdapter []
>       at 
> org.apache.nifi.processors.ignite.cache.TestPutIgniteCache.setUpClass(TestPutIgniteCache.java:64)
> Caused by: org.apache.ignite.IgniteCheckedException: Failed to start 
> processor: GridProcessorAdapter []
>       at 
> org.apache.nifi.processors.ignite.cache.TestPutIgniteCache.setUpClass(TestPutIgniteCache.java:64)
> Caused by: org.apache.ignite.IgniteCheckedException: Failed to bind time 
> server socket within specified port range [locHost=*****/0.0.40.205, 
> startPort=31100, endPort=31199]
>       at 
> org.apache.nifi.processors.ignite.cache.TestPutIgniteCache.setUpClass(TestPutIgniteCache.java:64)
> {code}
> Recommend refactoring these tests to use mocks instead of starting up an 
> embedded Ignite server, which is more of an integration test.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to