Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

Original PR: #680

Currently, the provider doesn't backoff all replicas as expected.

Expected
If there are 2 or more endpoints (1 store endpoint and 1+ replicas) and a request to the first endpoint fails with an exception that the provider does not consider "failoverable" (requesting another endpoint will not solve the issue), all endpoints will be backed off with an exponential backoff factoring in 1 failed request. This means the initial backoff will be around the minimum backoff time of 30 seconds.

Actual
If there are 2 or more endpoints (1 store endpoint and 1+ replicas) and a request to the first endpoint fails with an exception that the provider does not consider "failoverable" (requesting another endpoint will not solve the issue), only the current endpoint will be backed off. The backoff is also incorrectly calculated to be longer than expected.

@zhiyuanliang-ms zhiyuanliang-ms merged commit ba88464 into main Aug 5, 2025
5 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the ajusupovic/backoffallclients-bug branch August 5, 2025 11:48
zhiyuanliang-ms added a commit that referenced this pull request Aug 21, 2025
* Merge pull request #684 from Azure/zhiyuanliang/fix-test

Fix activity source test bug

* Fix bug with endpoint failover (#686)

* update endpoint in do while

* add test

* in progress

* update test, update logic to backoff using correct endpoint

* make test more specific

---------

Co-authored-by: AMER JUSUPOVIC <[email protected]>
Co-authored-by: Amer Jusupovic <[email protected]>

* Support comment in json key value (#685)

* support jsonc

* remove unused reference

* use private static option

* Add request tracing for Aspire usage (#687)

* add request tracing for aspire component

* update tag name

* version bump 8.4.0 (#690)

---------

Co-authored-by: AMER JUSUPOVIC <[email protected]>
Co-authored-by: Amer Jusupovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants