Commit e230167
Merging latest hotfix released back to main branch (Azure#39584)
* add new policy, add logic to use policy
* added small test file I was using
* initial regional endpoint work
* groundwork
* re-add AzureError logic, refactor, fix tests
* Update _retry_utility.py
* Updated location_cache with new design
* Fixed key error with most_preferred_location
* Update test_cosmos_http_logging_policy.py
* Update _retry_utility.py
* Added logic to refresh cache on previous endpoint usage
* Added business logic update the regional endpoint based on success or failures
* implementation
* Update _retry_utility_async.py
* fix some tests
* changelog, versions, fixes
* fixes
* fix some tests
* remove fake logic, count fix
* fix some tests
* Update _service_request_retry_policy.py
* Update _retry_utility_async.py
* retry utilities fixing
* Update _retry_utility.py
* additional enhancements
* Update setup.py
* Update _retry_utility_async.py
* add tests, remove previous retry logic for ServiceRequestExceptions
* clean up with finally
* tests
* retry utilities
* disable tests
* add logging to policies
* GetDatabaseAccount Fix
* Update _base.py
* retry utilities fixes
* Update _retry_utility.py
* retry utulities part 34
* Update _service_request_retry_policy.py
* remove extra logs
* policy updates
* Update _service_response_retry_policy.py
* Update _service_response_retry_policy.py
* policies updates and update operation types
* trying out fixes
* Update sdk/cosmos/azure-cosmos/CHANGELOG.md
Co-authored-by: Abhijeet Mohanty <[email protected]>
* Update sdk/cosmos/azure-cosmos/CHANGELOG.md
Co-authored-by: Abhijeet Mohanty <[email protected]>
* Skipped proxy test for debugging
* annotation fix
* Fixed some tests cases
* test fixes
* Update test_service_retry_policies_async.py
* Fixed some mocking behavior
* fixed pylint issues
* Added aiohttp minimum dependency
* Updated changelog and setup.py
* Updated changelog
* Add changelog and fix tests.
* Fix tests
* bootstrapping with global endpoint as previous for writes
* Add headers and cleanup
* cleanup and retry all service request headers
* Don't retry on a none previous
* Updated the business logic with current and previous, fixed database account refresh and some retry policies
* fix client id
* Reacting to comments
* Added print statements and fixed some retry logic
* Revert getDatabase in mark endpoint
* Fixed some pylint and changelog issues
* Fixed version
* fix bug with type check, update tests
* Update test_service_retry_policies_async.py
* sync tests updates
* Reacting to comments and fixing service request retry policy
* Code review comments and pylint issues
* Fixed tests and pylint
* more sync mock tests - missing async copies
* Fixed min aiohttp requirements
* Update _retry_utility_async.py
* Change to check operation type in operations
* push initial GEM mock test
* Update test_service_retry_policies.py
* Fixed extra retries
* sync tests
* Update test_service_retry_policies_async.py
* Fixed extra retries and relevant tests
* Only delay retry by one second
* async tests - need to split up inheritance ones since endpoint unavailable stops extra retries
* Change retry strategy
* add sub-class errors tests
* change old tests, refactoring, fix mocking bleed
* Fix a test
* clear last routed location pythonic
* Removed aiohttp dependency
* catch import errors
* Skipped global endpoint manager test for debugging
* Fixed tests
* Removed skips
* fix live tests and print statements for debugging
* cleanup of few tests
* updated globaldb mock
* Moved some of the high offer throughput tests to live tests
* Fixed global endpoint retry async test
* Tried fixing global endpoint retry async test
* no swaps on success test
* fix import
* Tried fixing global endpoint retry async test
* Added separate split live tests
* Added live platform matrix
* some test fixes
* Fixed live test pipeline
* Moved test resource id to cosmosLong
* Updated live tests
* Running live tests with proper flag
* testing logging experiments
* fix tests
* honor testmark argument through a safe environment variable, versus accessing the value directly
* more test fixes
* remove accidental log files
* Fixed issues with swapping and retry policies
* Fixed issues with swapping and retry policies
* Marking endpoint as down fix
* more test fixes
* Remove print statements
* Fixed some minor issues with emulator tests
* split change feed tests
* Fixed emulator tests
* updated changelog
* Fixed emulator tests again
* Fixed emulator tests and event loop
* vector/fts query tests
* Fix session token live tests
* hybrid search query fixes
* Fixed live test name
* fallback to regional
* fix ci tests
* Update conftest.py
* Database accounts call will timeout in 5 seconds
* Change timeouts and update docs
* call updates to endpoint policy and location cache
* Health check for endpoitns
* database account retry policy
* Fix parameter error
* Retry on cosmos error fix
* Retry on service request error fix
* None checks for request in retry utilities
* lowercase constructed regional endpoint
* fix global endpoint as unhealthy
* fix parsing test
* Added logic for swapping on health check failed
* Fixed log statement
* fix pylint, docs, and remove print statements
* fix pylint
* fix some tests
* Prepared for release
* Increment package version after release of azure-cosmos (Azure#39570)
* Moved container create tests to emulator
* Fix timeout test
* Optimized tests to run live tests with correct configs
* Fixed some errors
* combine session token split tests
* Moved query split test to query
* Update sdk/cosmos/azure-cosmos/test/test_latest_session_token_async.py
Co-authored-by: Simon Moreno <[email protected]>
* rename to async
* remove unnecessary imports
---------
Co-authored-by: Simon Moreno <[email protected]>
Co-authored-by: tvaron3 <[email protected]>
Co-authored-by: Abhijeet Mohanty <[email protected]>
Co-authored-by: Tomas Varon Saldarriaga <[email protected]>
Co-authored-by: Scott Beddall <[email protected]>
Co-authored-by: Azure SDK Bot <[email protected]>
Co-authored-by: Tomas Varon <[email protected]>1 parent 5aacaae commit e230167
File tree
24 files changed
+265
-299
lines changed- sdk/cosmos
- azure-cosmos
- azure/cosmos
- test
24 files changed
+265
-299
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 49 | + | |
55 | 50 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 51 | | |
69 | 52 | | |
70 | 53 | | |
| |||
Lines changed: 3 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 62 | + | |
| 63 | + | |
81 | 64 | | |
82 | 65 | | |
83 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
176 | 219 | | |
177 | 220 | | |
178 | 221 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | 1711 | | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1726 | 1721 | | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
| 1722 | + | |
| 1723 | + | |
1737 | 1724 | | |
1738 | | - | |
1739 | | - | |
1740 | | - | |
1741 | | - | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
1742 | 1729 | | |
1743 | 1730 | | |
1744 | 1731 | | |
| |||
2501 | 2488 | | |
2502 | 2489 | | |
2503 | 2490 | | |
2504 | | - | |
| 2491 | + | |
2505 | 2492 | | |
2506 | 2493 | | |
2507 | 2494 | | |
| |||
0 commit comments