Nathan Gough created NIFI-10738:
-----------------------------------
Summary: Improve V3SNMPFactoryTest intermittent failures
Key: NIFI-10738
URL: https://issues.apache.org/jira/browse/NIFI-10738
Project: Apache NiFi
Issue Type: Improvement
Affects Versions: 1.18.0
Reporter: Nathan Gough
Assignee: Nathan Gough
The V3SNMPFactoryTest fails intermittently due to a failure to bind to
interface exception. There is likely a race condition occurring between when we
try to claim an available port to use in the test and when the server attempts
to bind to that address. Currently I can't think of an atomic way to reserve a
port and provide it to the server without that server library supporting such a
feature, so instead we may have to create a testing method which provides
multiple binding attempts by catching a bind exception and retrying some number
of times.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)