Skip to content

Commit 4540bdd

Browse files
committed
Adding another affinity related error
1 parent b3fa263 commit 4540bdd

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

articles/connectors/connectors-create-api-servicebus.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: how-to
8-
ms.date: 08/26/2024
8+
ms.date: 09/03/2024
99
ms.custom: engagement-fy23
1010
---
1111

@@ -587,16 +587,26 @@ Occasionally, operations such as completing a message or renewing a session prod
587587
``` json
588588
{
589589
"status": 400,
590-
"message": "No session available to complete the message with the lock token 'ce440818-f26f-4a04-aca8-555555555555'. clientRequestId: facae905-9ba4-44f4-a42a-888888888888",
591590
"error": {
592591
"message": "No session available to complete the message with the lock token 'ce440818-f26f-4a04-aca8-555555555555'."
593592
}
594593
}
595594
```
596595

596+
Occasionally, session-based trigger may fail with the following error:
597+
598+
``` json
599+
{
600+
"status": 400,
601+
"error": {
602+
"message": "Communication with the Service Bus namespace 'xxxx' and 'yyyy' entity failed. The requested session 'zzzz' cannot be accepted. It may be locked by another receiver."
603+
}
604+
}
605+
```
606+
597607
The Service Bus connector uses in-memory cache to support all operations associated with the sessions. The Service Bus message receiver is cached in the memory of the role instance (virtual machine) that receives the messages. To process all requests, all calls for the connection get routed to this same role instance. This behavior is required because all the Service Bus operations in a session require the same receiver that receives the messages for a specific session.
598608

599-
The chance exists that requests might not get routed to the same role instance, due to reasons such as an infrastructure update, connector deployment, and so on. If this event happens, requests fail because the receiver that performs the operations in the session isn't available in the role instance that serves the request.
609+
The chance exists that requests might not get routed to the same role instance, due to reasons such as an infrastructure update, connector deployment, and so on. If this event happens, requests fail because the receiver that performs the operations in the session isn't available in the role instance that serves the request, or because the new role instance attempts to obtain the session which has not been closed or timed out in the old role instance.
600610

601611
As long as this error happens only occasionally, the error is expected. When the error happens, the message is still preserved in the service bus. The next trigger or workflow run tries to process the message again.
602612

0 commit comments

Comments
 (0)