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

Robbie Gemmell commented on PROTON-2313:
----------------------------------------

I wouldn't consider it trying to reconnect to be a bug, unless it was 
configured not to of course. Certainly some of our other clients do exactly the 
same in this situation, and doing otherwise wouldnt be easy. Plus a DNS failure 
is likely temporary, your second set of logs explicitly saying it is for 
example, which I think is the problem.

 

To me it looks like it has probably always been reconnecting, and the Dispatch 
test is fine with it reconnecting, but the test fails for you in the second 
environment because the log message being emitted isnt matching the precise one 
the test is looking for to indicate the situation occurred as expected (which 
your snippets above would likely show if the test continued / hadnt already 
succeeded in the first case):

[https://github.com/apache/qpid-dispatch/blob/0634a070aa6f902bf5b6f9537a5406e4cfc5a0d5/tests/system_tests_bad_configuration.py#L115]

 

I'd say it seems more like the Dispatch test needs to change, adding another 
entry to the expected messages.

> [proton-c] Connection to unresolvable address returns retry instead of failure
> ------------------------------------------------------------------------------
>
>                 Key: PROTON-2313
>                 URL: https://issues.apache.org/jira/browse/PROTON-2313
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.33.0
>            Reporter: Charles E. Rolke
>            Priority: Major
>
> A qpid-dispatch self test tries to open a connector (outgoing connection) to 
> an unresolvable address. 
> [https://github.com/apache/qpid-dispatch/blob/0634a070aa6f902bf5b6f9537a5406e4cfc5a0d5/tests/system_tests_bad_configuration.py#L105]
> The expectation is that proton will return a proton:io error. This does not 
> appear to be a regression as the issue exists in 0.33.0.
> {code:java}
> Fedora 31 64-bit bare metal
> Proton git branch master @ e4c179855. Dispatch git branch master @ 0634a070
> 2020-12-21 11:04:51.294685 -0500 SERVER (trace) [C1] Connecting to 
> unresolvable.host.name:amqp (/home/chug/git/qpid-dispatch/src/server.c:1204)
> 2020-12-21 11:04:51.555518 -0500 SERVER (info) [C1] Connection to 
> unresolvable.host.name:amqp failed: proton:io Name or service not known - 
> connect to  unresolvable.host.name:5672 
> (/home/chug/git/qpid-dispatch/src/server.c:1065)
> {code}
> In some cases proton never returns an error but retries indefinitely.
> {code:java}
> Host: Fedora 32 x86_64
> VM: whatever one gets from qpid-dispatch/dockerfiles/Dockerfile-fedora
>     in VM uname -a shows: Linux 879605af38a6 5.9.14-100.fc32.x86_64 #1 SMP 
> Fri Dec 11 14:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> 2020-12-21 15:53:46.738685 +0000 SERVER (trace) [C1] Connecting to 
> unresolvable.host.name:amqp (/main/qpid-dispatch/src/server.c:1204)
> 2020-12-21 15:53:46.919237 +0000 SERVER (info) [C1] Connection to 
> unresolvable.host.name:amqp failed: proton:io Temporary failure in name 
> resolution - connect to  unresolvable.host.name:5672 
> (/main/qpid-dispatch/src/server.c:1065)
> 2020-12-21 15:53:51.919149 +0000 SERVER (trace) [C2] Connecting to 
> unresolvable.host.name:amqp (/main/qpid-dispatch/src/server.c:1204)
> 2020-12-21 15:53:52.107100 +0000 SERVER (info) [C2] Connection to 
> unresolvable.host.name:amqp failed: proton:io Temporary failure in name 
> resolution - connect to  unresolvable.host.name:5672 
> (/main/qpid-dispatch/src/server.c:1065)
> 2020-12-21 15:53:57.108089 +0000 SERVER (trace) [C3] Connecting to 
> unresolvable.host.name:amqp (/main/qpid-dispatch/src/server.c:1204)
> 2020-12-21 15:53:57.247889 +0000 SERVER (info) [C3] Connection to 
> unresolvable.host.name:amqp failed: proton:io Temporary failure in name 
> resolution - connect to  unresolvable.host.name:5672 
> (/main/qpid-dispatch/src/server.c:1065)
> {code}
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to