Commit 1b15e34
Port cross region retries functionality shipped as hotfix to main branch (Azure#39417)
* implementation
* Update _retry_utility_async.py
* changelog, versions, fixes
* fixes
* remove fake logic, count fix
* 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
---------
Co-authored-by: Simon Moreno <[email protected]>
Co-authored-by: tvaron3 <[email protected]>
Co-authored-by: Abhijeet Mohanty <[email protected]>1 parent 8ac2529 commit 1b15e34
File tree
18 files changed
+850
-66
lines changed- sdk/cosmos/azure-cosmos
- azure/cosmos
- aio
- test
18 files changed
+850
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
326 | 333 | | |
327 | 334 | | |
328 | 335 | | |
| |||
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2038 | 2038 | | |
2039 | 2039 | | |
2040 | 2040 | | |
2041 | | - | |
| 2041 | + | |
| 2042 | + | |
2042 | 2043 | | |
2043 | 2044 | | |
2044 | 2045 | | |
| |||
2126 | 2127 | | |
2127 | 2128 | | |
2128 | 2129 | | |
2129 | | - | |
| 2130 | + | |
| 2131 | + | |
2130 | 2132 | | |
2131 | 2133 | | |
2132 | 2134 | | |
| |||
2185 | 2187 | | |
2186 | 2188 | | |
2187 | 2189 | | |
2188 | | - | |
| 2190 | + | |
| 2191 | + | |
2189 | 2192 | | |
2190 | 2193 | | |
2191 | 2194 | | |
| |||
2353 | 2356 | | |
2354 | 2357 | | |
2355 | 2358 | | |
2356 | | - | |
| 2359 | + | |
| 2360 | + | |
2357 | 2361 | | |
2358 | 2362 | | |
2359 | 2363 | | |
| |||
2550 | 2554 | | |
2551 | 2555 | | |
2552 | 2556 | | |
2553 | | - | |
| 2557 | + | |
| 2558 | + | |
2554 | 2559 | | |
2555 | 2560 | | |
2556 | 2561 | | |
| |||
2615 | 2620 | | |
2616 | 2621 | | |
2617 | 2622 | | |
2618 | | - | |
| 2623 | + | |
| 2624 | + | |
2619 | 2625 | | |
2620 | 2626 | | |
2621 | 2627 | | |
| |||
2659 | 2665 | | |
2660 | 2666 | | |
2661 | 2667 | | |
2662 | | - | |
| 2668 | + | |
| 2669 | + | |
2663 | 2670 | | |
2664 | 2671 | | |
2665 | 2672 | | |
| |||
2703 | 2710 | | |
2704 | 2711 | | |
2705 | 2712 | | |
2706 | | - | |
| 2713 | + | |
| 2714 | + | |
2707 | 2715 | | |
2708 | 2716 | | |
2709 | 2717 | | |
| |||
2744 | 2752 | | |
2745 | 2753 | | |
2746 | 2754 | | |
2747 | | - | |
| 2755 | + | |
2748 | 2756 | | |
2749 | 2757 | | |
2750 | 2758 | | |
| |||
2782 | 2790 | | |
2783 | 2791 | | |
2784 | 2792 | | |
2785 | | - | |
| 2793 | + | |
| 2794 | + | |
2786 | 2795 | | |
2787 | 2796 | | |
2788 | 2797 | | |
| |||
3027 | 3036 | | |
3028 | 3037 | | |
3029 | 3038 | | |
| 3039 | + | |
3030 | 3040 | | |
3031 | 3041 | | |
3032 | 3042 | | |
| |||
3064 | 3074 | | |
3065 | 3075 | | |
3066 | 3076 | | |
| 3077 | + | |
3067 | 3078 | | |
3068 | 3079 | | |
3069 | 3080 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
170 | 167 | | |
| 168 | + | |
| 169 | + | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
| 177 | + | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
| |||
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
190 | 210 | | |
191 | 211 | | |
192 | 212 | | |
| |||
197 | 217 | | |
198 | 218 | | |
199 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
200 | 245 | | |
201 | 246 | | |
202 | 247 | | |
| |||
242 | 287 | | |
243 | 288 | | |
244 | 289 | | |
245 | | - | |
246 | 290 | | |
247 | 291 | | |
248 | 292 | | |
| |||
261 | 305 | | |
262 | 306 | | |
263 | 307 | | |
264 | | - | |
265 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
266 | 319 | | |
267 | 320 | | |
268 | 321 | | |
| |||
0 commit comments