Skip to content

Commit 5c74da2

Browse files
authored
[Cosmos] update versions for release (Azure#30435)
* update versions * Update _version.py * Update _timeout_failover_retry_policy.py * Update _cosmos_client_connection.py
1 parent 1466289 commit 5c74da2

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
## Release History
22

3-
### 4.4.0b2 (Unreleased)
4-
5-
#### Features Added
6-
7-
#### Breaking Changes
3+
### 4.4.0b2 (2023-05-17)
84

95
#### Bugs Fixed
106
* Fixed bug with non english locales causing an error with the RFC 1123 Date Format. See [PR 30125](https://github.com/Azure/azure-sdk-for-python/pull/30125).
@@ -18,7 +14,6 @@
1814
- Added **preview** delete all items by partition key functionality. See [PR 29186](https://github.com/Azure/azure-sdk-for-python/pull/29186).
1915
- Added **preview** partial document update (Patch API) functionality and container methods for patching items with operations. See [PR 29497](https://github.com/Azure/azure-sdk-for-python/pull/29497). For more information on Patch, please see [Azure Cosmos DB Partial Document Update](https://learn.microsoft.com/azure/cosmos-db/partial-document-update).
2016

21-
2217
#### Bugs Fixed
2318
* Fixed bug in method `create_container_if_not_exists()` of async database client for unexpected kwargs being passed into `read()` method used internally. See [PR 29136](https://github.com/Azure/azure-sdk-for-python/pull/29136).
2419
* Fixed bug with method `query_items()` of our async container class, where partition key and cross partition headers would both be set when using partition keys. See [PR 29366](https://github.com/Azure/azure-sdk-for-python/pull/29366/).

sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def __init__(
160160
retry_connect=self.connection_policy.ConnectionRetryConfiguration.connect,
161161
retry_read=self.connection_policy.ConnectionRetryConfiguration.read,
162162
retry_status=self.connection_policy.ConnectionRetryConfiguration.status,
163-
retry_backoff_max=self.connection_policy.ConnectionRetryConfiguration.backoff_max,
163+
retry_backoff_max=self.connection_policy.ConnectionRetryConfiguration.BACKOFF_MAX,
164164
retry_on_status_codes=list(self.connection_policy.ConnectionRetryConfiguration.status_forcelist),
165165
retry_backoff_factor=self.connection_policy.ConnectionRetryConfiguration.backoff_factor
166166
)

sdk/cosmos/azure-cosmos/azure/cosmos/_timeout_failover_retry_policy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def __init__(self, connection_policy, global_endpoint_manager, *args):
3737
self.failover_retry_count = 0
3838
self.connection_policy = connection_policy
3939
self.request = args[0] if args else None
40-
self.location_endpoint = self.global_endpoint_manager.resolve_service_endpoint(self.request)
40+
if self.request:
41+
self.location_endpoint = self.global_endpoint_manager.resolve_service_endpoint(self.request)
4142

4243
def needsRetry(self):
4344
if self.args:

0 commit comments

Comments
 (0)