No subject


Thu Mar 14 15:04:54 GMT 2013


1370554962786: <Tracer-0> ch#1 <- {#method<channel.close>(reply-code=3D404,
reply-text=3DNOT_FOUND - no exchange 'foo' in vhost '/', class-id=3D60,
method-id=3D40), null, ""}
1370554962788: <Tracer-0> ch#1 -> {#method<channel.close-ok>(), null, ""}
1370554974891: <Tracer-0> ch#1 -> {#method<channel.open>(out-of-band=3D),
null, ""}
1370554974970: <Tracer-0> ch#1 <- {#method<channel.open-ok>(channel-id=3D),
null, ""}

Any ideas why things are hanging?

Thanks
- jonathan

--089e0102e0dccb73e204de840768
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div>I hit on a scenario where connection.createChannel() may hang forever.=
 The scenario: obtain a channel and attempt to publish to a non-existent ex=
change. The channel will be shutdown. Attempt to establish a new (replaceme=
nt) channel via Connection.createChannel(), which hangs forever. A simple v=
ersion of this scenario:</div>
<div><br></div><div>public Channel channelFor(final String tenantId) throws=
 Exception {</div><div>=A0 Channel channel =3D connection.createChannel();<=
/div><div>=A0 channel.addShutdownListener(new ShutdownListener() {</div><di=
v>
=A0 =A0 public void shutdownCompleted(ShutdownSignalException e) {</div><di=
v>=A0 =A0 =A0 if (!e.isInitiatedByApplication())=A0</div><div>=A0 =A0 =A0 =
=A0 channelFor(tenantId);</div><div>=A0 =A0 }</div><div>=A0 });</div><div><=
br></div><div>=A0 return channel;</div>
<div>}</div><div><br></div><div>Channel channel =3D channelFor(&quot;foo&qu=
ot;);</div><div>channel.basicPublish(someNonExistentExchange, =85</div><div=
><br></div><div>From Tracer:</div><div><br></div><div>1370554962786: &lt;Tr=
acer-0&gt; ch#1 &lt;- {#method&lt;channel.close&gt;(reply-code=3D404, reply=
-text=3DNOT_FOUND - no exchange &#39;foo&#39; in vhost &#39;/&#39;, class-i=
d=3D60, method-id=3D40), null, &quot;&quot;}</div>
<div>1370554962788: &lt;Tracer-0&gt; ch#1 -&gt; {#method&lt;channel.close-o=
k&gt;(), null, &quot;&quot;}</div><div>1370554974891: &lt;Tracer-0&gt; ch#1=
 -&gt; {#method&lt;channel.open&gt;(out-of-band=3D), null, &quot;&quot;}</d=
iv>
<div>1370554974970: &lt;Tracer-0&gt; ch#1 &lt;- {#method&lt;channel.open-ok=
&gt;(channel-id=3D), null, &quot;&quot;}</div><div><br></div><div>Any ideas=
 why things are hanging?</div><div><br></div><div>Thanks=A0</div><div>- jon=
athan</div>

--089e0102e0dccb73e204de840768--


More information about the rabbitmq-discuss mailing list