This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit 040578eb7b5a9711b3de7f96ac78d2d4e8a3567b
Author: Andrew Stitcher <[email protected]>
AuthorDate: Thu Dec 11 23:34:28 2025 -0500

    PROTON-2890: [Python] Example broker shouldn't settle on rollback
    
    Rollbacks shouldn't settle incoming deliveries.
---
 python/examples/broker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/examples/broker.py b/python/examples/broker.py
index cc4408421..5876a6181 100755
--- a/python/examples/broker.py
+++ b/python/examples/broker.py
@@ -98,7 +98,7 @@ class QueueMessage(TransactionAction):
         self.delivery.settle()
 
     def rollback(self, broker):
-        self.delivery.settle()
+        pass
 
 
 @dataclass
@@ -109,7 +109,7 @@ class RejectDelivery(TransactionAction):
         self.delivery.settle()
 
     def rollback(self, broker):
-        self.delivery.settle()
+        pass
 
 
 @dataclass


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

Reply via email to