You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2017/03/29 20:29:41 UTC

[jira] [Closed] (QPIDJMS-277) Examples create unused AMQP session

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

Timothy Bish closed QPIDJMS-277.
--------------------------------
    Resolution: Not A Problem

This is intentional.  The seemingly unused session is actually used when temporary destinations are created as a way to link the lifetime of the temporary destination to that of the connection and not to the session under which the temporary destination create was created by.  

> Examples create unused AMQP session
> -----------------------------------
>
>                 Key: QPIDJMS-277
>                 URL: https://issues.apache.org/jira/browse/QPIDJMS-277
>             Project: Qpid JMS
>          Issue Type: Bug
>          Components: qpid-jms-client
>    Affects Versions: 0.21.0
>         Environment: Fedora 25; ActiveMQ Artemis broker on port 5672 with existing queue for test.
>            Reporter: Chuck Rolke
>
> Running any example like HelloWorld produces two sessions on the connection to the broker. The first session consists of a Begin in each direction with no other traffic.
> {noformat}
> ◊  ◊◊ 30.693893  Frame 206  127.0.0.1:49002  -> 127.0.0.1:5672  ->   init SASL (3): (1.0.0)
> ◊  ◊◊ 30.828034  Frame 208  127.0.0.1:49002 <-  127.0.0.1:5672 <-    init SASL (3): (1.0.0), method Method:
> ◊  ◊◊ 30.836368  Frame 210  127.0.0.1:49002  -> 127.0.0.1:5672  ->   method Method:
> ◊  ◊◊ 30.841047  Frame 212  127.0.0.1:49002 <-  127.0.0.1:5672 <-    method Method:
> ◊  ◊◊ 30.841534  Frame 213  127.0.0.1:49002 <-  127.0.0.1:5672 <-    init AMQP (0): (1.0.0)
> ◊  ◊◊ 30.843338  Frame 215  127.0.0.1:49002  -> 127.0.0.1:5672  ->   init AMQP (0): (1.0.0)
> ◊  ◊◊ 30.853214  Frame 216  127.0.0.1:49002  -> 127.0.0.1:5672  ->   open [0]
> ◊  ◊◊ 30.859039  Frame 218  127.0.0.1:49002 <-  127.0.0.1:5672 <-    open [0]
> ◊  ◊◊ 30.864557  Frame 219  127.0.0.1:49002  -> 127.0.0.1:5672  ->   begin [0,null]
> ◊  ◊◊ 30.880325  Frame 220  127.0.0.1:49002 <-  127.0.0.1:5672 <-    begin [0,0]
> ◊  ◊◊ 30.890504  Frame 221  127.0.0.1:49002  -> 127.0.0.1:5672  ->   begin [1,null]
> ◊  ◊◊ 30.893458  Frame 222  127.0.0.1:49002 <-  127.0.0.1:5672 <-    begin [1,1]
> ◊  ◊◊ 30.902995  Frame 223  127.0.0.1:49002  -> 127.0.0.1:5672  ->   attach [1,0] sender link_0 (source: endpoint_0, target: queue)
> ◊  ◊◊ 30.912137  Frame 224  127.0.0.1:49002 <-  127.0.0.1:5672 <-    attach [1,0] receiver link_0 (source: endpoint_0, target: queue), flow [1,0] (0,100)
> ◊  ◊◊ 30.921187  Frame 225  127.0.0.1:49002  -> 127.0.0.1:5672  ->   attach [1,1] receiver link_1 (source: queue, target: null)
> ◊  ◊◊ 30.938664  Frame 226  127.0.0.1:49002 <-  127.0.0.1:5672 <-    attach [1,1] sender link_1 (source: queue, target: null)
> ◊  ◊◊ 30.940795  Frame 227  127.0.0.1:49002  -> 127.0.0.1:5672  ->   flow [1,1] (0,1000)
> ◊  ◊◊ 30.953207  Frame 228  127.0.0.1:49002  -> 127.0.0.1:5672  ->   transfer [1,0] (0)
> ◊  ◊◊ 30.961151  Frame 230  127.0.0.1:49002 <-  127.0.0.1:5672 <-    disposition [1] (receiver 0-0)
> ◊  ◊◊ 30.970108  Frame 231  127.0.0.1:49002 <-  127.0.0.1:5672 <-    transfer [1,1] (0)
> ◊  ◊◊ 30.973945  Frame 233  127.0.0.1:49002  -> 127.0.0.1:5672  ->   disposition [1] (receiver 0-0)
> ◊  ◊◊ 30.976020  Frame 234  127.0.0.1:49002  -> 127.0.0.1:5672  ->   close [0]
> ◊  ◊◊ 30.980397  Frame 236  127.0.0.1:49002 <-  127.0.0.1:5672 <-    close [0]
> {noformat}
> At issue in this trace are frames 219 and 220. Session 0 is created but not used. Right after that Session 1 is created and HelloWorld sends its traffic through it.
> Examples Sender and Receiver do the same thing.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org