Azure/azure-cosmos-js

Regional failover doesn't work in the middle of a request

christopheranderson opened this issue · 0 comments

Due to a bug introduced after this commit: https://github.com/Azure/azure-cosmos-js/blame/b22194817b958aa117205c059b513c9a54f413f3/src/retry/retryUtility.ts#L120-L122

Need to apply the newUrl to the request options, which got removed during multi-master refactor.

This only impacts the requests that failover happens during. Subsequent requests would use the "new" available region.