[BUG] ServiceBus receiver refuses to accept messages with unbounded TTL #17444
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Track 1
Describe the bug
Bug found in SDK:
microsoft-azure-servicebus 3.5.0
(notazure-messaging-servicebus
)The service bus receiver refuses to accept messages with unbounded TTL, producing
IllegalArgumentException
exceptions.We can create a queue with unbounded (unlimited, -1) TTL. So a message may not have a positive TTL. When the client receives such a message, it refuses to accepted the message because it expects a positive TTL.
This issue was introduced in #13586. I suggest rollback this change or fix the TTL check when receiving a message.
Exception or Stack Trace
To Reproduce
IllegalArgumentException
.Code Snippet
N.A. Just create a
IMessageReceiver
and call itsreceive()
orreceiveAsync()
.Expected behavior
Messages are received successfully.
Screenshots
N.A.
Setup (please complete the following information):
microsoft-azure-servicebus 3.5.0
Additional context
N.A.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: