You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (Jira)" <ji...@apache.org> on 2020/04/22 14:25:00 UTC
[jira] [Commented] (DISPATCH-1626) On released callback invoked
twice for same delivery tag
[ https://issues.apache.org/jira/browse/DISPATCH-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089728#comment-17089728 ]
Ganesh Murthy commented on DISPATCH-1626:
-----------------------------------------
The router started sending these two part dispositions right after commit 417975e17406dcc48a648d9fc6da38651a4ff956
The pn_delivery_update() is called by a worker thread and control returns to proton followed by another worker thread calling pn_delivery_settle(). This causes proton to send the two part disposition. I have a patch that will add a minor fix to the previous commit which will make sure the pn_delivery_update() and pn_delivery_settle() will be called back to back by the same thread during a single execution of the same function.
> On released callback invoked twice for same delivery tag
> --------------------------------------------------------
>
> Key: DISPATCH-1626
> URL: https://issues.apache.org/jira/browse/DISPATCH-1626
> Project: Qpid Dispatch
> Issue Type: Improvement
> Components: Container
> Affects Versions: 1.11.0
> Reporter: Ganesh Murthy
> Assignee: Ganesh Murthy
> Priority: Major
> Fix For: 1.12.0
>
>
> In a python client application, that is connected to a dispatch router, I have observed that the on_released callback was invoked twice for the same delivery tag.
> Here are the disposition frames I was able to capture for the respective delivery:
> {noformat}
> [0x562a0083ed80]:0 <- @disposition(21) [role=true, first=981, state=@released(38) []]
> [0x562a0083ed80]:0 <- @disposition(21) [role=true, first=981, last=982, settled=true, state=@released(38) []]{noformat}
> The delivery tag 981 came first without the settlement and next with the settled as true. And the on_released was called twice for the 981 delivery tag.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org