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

Charles E. Rolke commented on PROTON-2180:
------------------------------------------

Attached two files:
 * A log file running the attached test
 * A hacked test file that sends a single message that triggers the issue.

The test file requires an installed version of qpid-dispatch master to get the 
test Logger feature.

The problem may be solved theoretically from the log file: the delivery is 
marked 'released' at first but then is changed to 'modified'. Does that change 
the expectation that on_modified must be called?

> [python binding] on_released called when delivery is MODIFIED
> -------------------------------------------------------------
>
>                 Key: PROTON-2180
>                 URL: https://issues.apache.org/jira/browse/PROTON-2180
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: proton-c-0.28.0
>            Reporter: Charles E. Rolke
>            Priority: Major
>         Attachments: PROTON-2180-test-log.txt, 
> system_tests_multicast-PROTON-2180.py
>
>
> Reproducer:
> qpid-dispatch self test system_tests_multicast: 
> test_63_unsettled_3ack_outcomes
> Description:
> qpid-dispatch test code has an on_released method in class MulticastBase. The 
> comments are dated April 2, 2019 so the issue has been in play since then:
> {quote}{color:#000080}def {color}on_released({color:#94558d}self{color}, 
> event):
>      {color:#808080}# for some reason Proton 'helpfully' calls on_released 
> even though the
> {color}{color:#808080}     # delivery state is actually MODIFIED
> {color}    {color:#000080}if {color}event.delivery.remote_state == 
> Delivery.MODIFIED:
>         {color:#000080}return 
> {color}{color:#94558d}self{color}.on_modified(event)
> {quote}
> The self test today triggers the if statement six times on every run.



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

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

Reply via email to