Commit fe6b4c7
Replace Endpoints with Regional Endpoints (Azure#39390)
* 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
---------
Co-authored-by: Simon Moreno <[email protected]>
Co-authored-by: Kushagra Thapar <[email protected]>
Co-authored-by: Abhijeet Mohanty <[email protected]>
Co-authored-by: Scott Beddall <[email protected]>1 parent aee42e7 commit fe6b4c7
File tree
77 files changed
+2365
-1187
lines changed- eng/pipelines/templates/steps
- sdk/cosmos
- azure-cosmos
- azure/cosmos
- aio
- docs
- samples
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+2365
-1187
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
90 | | - | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
107 | 122 | | |
108 | 123 | | |
109 | 124 | | |
110 | | - | |
| 125 | + | |
111 | 126 | | |
112 | 127 | | |
113 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
3 | 20 | | |
4 | 21 | | |
5 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
| |||
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
2555 | 2557 | | |
2556 | 2558 | | |
2557 | 2559 | | |
2558 | | - | |
| 2560 | + | |
2559 | 2561 | | |
2560 | 2562 | | |
2561 | 2563 | | |
| |||
2589 | 2591 | | |
2590 | 2592 | | |
2591 | 2593 | | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
2592 | 2614 | | |
2593 | 2615 | | |
2594 | 2616 | | |
| |||
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 53 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
| |||
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
80 | | - | |
| 73 | + | |
81 | 74 | | |
82 | 75 | | |
83 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
84 | 79 | | |
85 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| |||
Lines changed: 41 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | | - | |
76 | | - | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | | - | |
79 | | - | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | | - | |
82 | | - | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | | - | |
85 | | - | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| 123 | + | |
| 124 | + | |
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
| |||
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
140 | | - | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
149 | 178 | | |
150 | 179 | | |
151 | 180 | | |
| |||
155 | 184 | | |
156 | 185 | | |
157 | 186 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| |||
0 commit comments