Skip to content

Commit 413ace8

Browse files
Added exceptions that can occur for Geo-Replication feature
1 parent c6e1b38 commit 413ace8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

articles/service-bus-messaging/service-bus-messaging-exceptions-latest.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,41 @@ We recommend that you follow these verification steps, depending on the type of
200200
- [Verify the SAS token was generated correctly](service-bus-sas.md)
201201
- [Verify the correct role-based access control (RBAC) roles were granted](service-bus-managed-service-identity.md)
202202

203+
## Geo-Replication exceptions
204+
205+
### ServerBusyException
206+
207+
#### Cause
208+
209+
- During asynchronous replication (replication lag greater than zero), the client tries to perform an operation on a service bus entity (queue, topic) or performs a management operation, but the operation cannot be completed because the replication lag between the primary and the secondary regions has exceeded the maximum allowed replication lag in seconds.
210+
211+
#### Resolution
212+
213+
The client should back off to give time for the service to process its given workload, then the client should retry.
214+
215+
### TimeoutException
216+
217+
#### Cause
218+
219+
- A timeout exception in Geo DR means that the operation did not complete within the client-provided timeout.
220+
- In synchronous replication, an operation’s primary region write and replication to secondary regions are within the scope of the operation’s timeout.
221+
- In asynchronous replication, an operation’s primary region write is within the scope of the operation’s timeout, but an operation’s replication to secondary regions is not within the scope of the operation’s timeout.
222+
223+
#### Resolution
224+
225+
The client should retry the operation.
226+
227+
Note that some steps of a timed-out operation may have been completed. It’s possible that a timed-out operation may have been written to the primary region and some secondary regions. If an operation has been written to the primary region, it will eventually be replicated to all secondary regions regardless of client timeout.
228+
229+
### BadRequest
230+
231+
#### Cause
232+
233+
- During a planned failover, the primary region is temporarily set as read-only in order to allow the secondary region to catch up. If the client attempts a write operation to the primary region while it is in this temporary read-only state, then the client will be receive a BadRequest exception.
234+
235+
#### Resolution
236+
237+
The client must wait for planned failover to complete before write operations will succeed.
203238

204239
## Next steps
205240

0 commit comments

Comments
 (0)