You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[azservicebus] Handle 410 properly for session and non-session based links. (#17382)
410 (lock lost) handling needed to be separated for sessions and non-session links.
For non-session links losing a link is essentially unrecoverable - the lock cannot be reobtained with just the lock token so further retries will always fail.
For _session_ based links it's different since you actually obtain a session lock by opening a link for a particular session ID. You can retry re-opening the link and there are cases where, on detach, that you might have some overlap until the session is actually available again (this is shown in the `TestSessionReceiver_Detach` test).
So the split here is simple - all retrying is really handled in amqpLinks, so now it takes a parameter giving it the proper function to determine if an error is fatal or retryable. As part of this I also made the parameters to amqpLinks an arg, which had some small rippling effects in callers.
Fixes#17325
(probable fix for the latest issue mentioned in #17017 since this affects settlement time)
Copy file name to clipboardexpand all lines: sdk/messaging/azservicebus/CHANGELOG.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@
6
6
7
7
- Support for using a SharedAccessSignature in a connection string. Ex: `Endpoint=sb://<sb>.servicebus.windows.net;SharedAccessSignature=SharedAccessSignature sr=<sb>.servicebus.windows.net&sig=<base64-sig>&se=<expiry>&skn=<keyname>` (#17314)
8
8
9
-
### Breaking Changes
10
-
11
9
### Bugs Fixed
12
10
13
11
- Fixed bug where message batch size calculation was inaccurate, resulting in batches that were too large to be sent. (#17318)
14
-
15
-
### Other Changes
12
+
- Fixing an issue with an entity not being found leading to a longer timeout than needed. (#17279)
13
+
- Fixed the RPCLink so it does better handling of connection/link failures. (#17389)
14
+
- Fixed issue where a message lock expiring would cause unnecessary retries. These retries could cause message settlement calls (ex: Receiver.CompleteMessage)
0 commit comments