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

ASF subversion and git services commented on NIFI-10738:
--------------------------------------------------------

Commit d237fd228f9189e1c605525598923f5ad905a275 in nifi's branch 
refs/heads/main from Nathan Gough
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d237fd228f ]

NIFI-10738 Updated SNMP tests to retry BindExceptions

This closes #6606

Co-authored-by: David Handermann <exceptionfact...@apache.org>
Signed-off-by: David Handermann <exceptionfact...@apache.org>


> 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
>            Priority: Minor
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to