Commit 37c99f0
Per Partition Circuit Breaker (Azure#40302)
* change default read timeout
* fix tests
* Add read timeout tests for database account calls
* fix timeout retry policy
* Fixed the timeout logic
* Fixed the timeout retry policy
* Mock tests for timeout and failover retry policy
* Create test_dummy.py
* Update test_dummy.py
* Update test_dummy.py
* Update test_dummy.py
* Iterating on fault injection tooling
* Refactoring to have FaultInjectionTransport in its own file
* Update test_dummy.py
* Reafctoring FaultInjectionTransport
* Iterating on tests
* Prettifying tests
* small refactoring
* Adding MM topology on Emulator
* Adding cross region retry tests
* Add Excluded Locations Feature
* initial ppcb changes
* add missing changes
* fix mypy errors
* Refactored gem for ppcb and hooked up retryconfigurations with failure tracking
* fix use multiple write locations bug
* clean up and revert vs env variable changes
* remove async await
* refactor and fix tests
* Fix refactoring
* Fix tests
* fix tests
* add more tests
* add more tests
* Add tests
* fix tests
* fix tests
* fix tests
* fix test
* fix test
* fix tests
* fix async in test
* Added multi-region tests
* Fix _AddParitionKey to pass options to sub methods
* Added initial live tests
* Updated live-platform-matrix for multi-region tests
* initial sync version of fault injection
* add all sync tests
* add new error and fix logs
* fix test
* Add cosmosQuery mark to TestQuery
* Correct spelling
* Fixed live platform matrix syntax
* Changed Multi-regions
* first ppcb test
* fix test
* refactor due to pk range wrapper needing io call and pylint
* Added client level ExcludedLocation for async
* Update Live test settings
* Added Async tests
* Add more live tests for all other Python versions
* Fix Async test failure
* add test for failure_rate threshold
* Fix live test failures
* fix pylint and cspell
* Fix live test failures
* fix pylint
* Fix live test failures
* Add test_delete_all_items_by_partition_key
* Remove test_delete_all_items_by_partition_key
* fix and add tests
* add collection rid to batch
* add partition key range id to partition key range to cache
* address failures
* update tests
* Added missing doc for excluded_locations in async client
* Remove duplicate functions
* add more operations
* Fix live tests with multi write locations
* Fixed bug with endpoint routing with multi write region partition key API calls
* Adding emulator tests for delete_all_items_by_partition_key API
* minimized duplicate codes
* Added Async emulator tests
* Nit: Changed test names
* Addressed comments about documents
* live tests
* fix tests
* add container rid
* fix mm tests
* test improvements
* recovering optimizations, lower request timeout, disable in region retries
* recovering optimizations, lower request timeout, disable in region retries
* fix transitions from a success
* Implement exponential backoff
* fix pylint
* add sync tests
* refactor tests
* sync changes
* sync changes and cleanup
* container cache changes
* revert change
* add extra mapping to container cache
* fix emulator tests
* add sync single master tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* test changes
* fix some tests
* fix tests
* Rename test files
* fix tests and setup ppcb pipeline
* fix tests
* fix ci tests
* move all ppcb tests to live tests
* add logger for ppcb test
* fix ci tests
* fix tests
* fixed resource token bug and tests
* fix tests and split up them up across to live tests pipelines
* fix tests and cspell
* add sync deleta all item partiton key tests
* fix tests
* fix ci tests
* fix tests
* fix ci
* fix ci
* refactor tests, removed print statements, and added async emulator delete all items by partition key tests
* fix tests
* fix ci tests
* fix live tests
* fix tests
* remove unnecessary line
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* remove unused logger
* add regression testing for cross partition queries
* react to comments
* react to comments
* react to async client changes from merge
* react to comments
* fix tests
* react to comments and fix tests
* react to comments and fix tests
* fix tests
---------
Co-authored-by: Kushagra Thapar <[email protected]>
Co-authored-by: Kushagra Thapar <[email protected]>
Co-authored-by: Fabian Meiswinkel <[email protected]>
Co-authored-by: Allen Kim <[email protected]>
Co-authored-by: Allen Kim <[email protected]>1 parent 2da0f5c commit 37c99f0
File tree
58 files changed
+3131
-325
lines changed- sdk/cosmos
- azure-cosmos
- azure/cosmos
- _routing
- aio
- aio
- tests
- routing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+3131
-325
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
| 882 | + | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
Lines changed: 60 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
1295 | 1296 | | |
1296 | 1297 | | |
1297 | 1298 | | |
1298 | | - | |
1299 | | - | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1300 | 1306 | | |
1301 | 1307 | | |
1302 | 1308 | | |
| |||
1332 | 1338 | | |
1333 | 1339 | | |
1334 | 1340 | | |
1335 | | - | |
1336 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1337 | 1348 | | |
1338 | 1349 | | |
1339 | 1350 | | |
| |||
2020 | 2031 | | |
2021 | 2032 | | |
2022 | 2033 | | |
2023 | | - | |
2024 | | - | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
2025 | 2041 | | |
2026 | 2042 | | |
2027 | 2043 | | |
| |||
2052 | 2068 | | |
2053 | 2069 | | |
2054 | 2070 | | |
2055 | | - | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2056 | 2074 | | |
2057 | 2075 | | |
2058 | 2076 | | |
| |||
2142 | 2160 | | |
2143 | 2161 | | |
2144 | 2162 | | |
2145 | | - | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
2146 | 2166 | | |
2147 | 2167 | | |
2148 | 2168 | | |
| |||
2203 | 2223 | | |
2204 | 2224 | | |
2205 | 2225 | | |
2206 | | - | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
2207 | 2229 | | |
2208 | 2230 | | |
2209 | 2231 | | |
| |||
2377 | 2399 | | |
2378 | 2400 | | |
2379 | 2401 | | |
2380 | | - | |
| 2402 | + | |
2381 | 2403 | | |
2382 | 2404 | | |
2383 | 2405 | | |
| |||
2573 | 2595 | | |
2574 | 2596 | | |
2575 | 2597 | | |
2576 | | - | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
2577 | 2601 | | |
2578 | 2602 | | |
2579 | 2603 | | |
| |||
2623 | 2647 | | |
2624 | 2648 | | |
2625 | 2649 | | |
2626 | | - | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
2627 | 2653 | | |
2628 | 2654 | | |
2629 | 2655 | | |
| |||
2663 | 2689 | | |
2664 | 2690 | | |
2665 | 2691 | | |
2666 | | - | |
| 2692 | + | |
2667 | 2693 | | |
2668 | 2694 | | |
2669 | 2695 | | |
| |||
2710 | 2736 | | |
2711 | 2737 | | |
2712 | 2738 | | |
2713 | | - | |
| 2739 | + | |
2714 | 2740 | | |
2715 | 2741 | | |
2716 | 2742 | | |
| |||
2754 | 2780 | | |
2755 | 2781 | | |
2756 | 2782 | | |
2757 | | - | |
| 2783 | + | |
2758 | 2784 | | |
2759 | 2785 | | |
2760 | 2786 | | |
| |||
2796 | 2822 | | |
2797 | 2823 | | |
2798 | 2824 | | |
2799 | | - | |
| 2825 | + | |
2800 | 2826 | | |
2801 | 2827 | | |
2802 | 2828 | | |
| |||
2836 | 2862 | | |
2837 | 2863 | | |
2838 | 2864 | | |
2839 | | - | |
| 2865 | + | |
2840 | 2866 | | |
2841 | 2867 | | |
2842 | 2868 | | |
| |||
3069 | 3095 | | |
3070 | 3096 | | |
3071 | 3097 | | |
| 3098 | + | |
3072 | 3099 | | |
3073 | | - | |
3074 | | - | |
3075 | | - | |
3076 | | - | |
3077 | | - | |
3078 | 3100 | | |
3079 | 3101 | | |
3080 | 3102 | | |
3081 | 3103 | | |
3082 | 3104 | | |
3083 | 3105 | | |
3084 | 3106 | | |
3085 | | - | |
| 3107 | + | |
3086 | 3108 | | |
3087 | 3109 | | |
3088 | 3110 | | |
3089 | 3111 | | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
3090 | 3119 | | |
3091 | 3120 | | |
3092 | 3121 | | |
| |||
3115 | 3144 | | |
3116 | 3145 | | |
3117 | 3146 | | |
3118 | | - | |
3119 | | - | |
3120 | 3147 | | |
3121 | 3148 | | |
3122 | 3149 | | |
| |||
3129 | 3156 | | |
3130 | 3157 | | |
3131 | 3158 | | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
3132 | 3162 | | |
3133 | 3163 | | |
3134 | 3164 | | |
| |||
3364 | 3394 | | |
3365 | 3395 | | |
3366 | 3396 | | |
3367 | | - | |
| 3397 | + | |
3368 | 3398 | | |
3369 | 3399 | | |
3370 | 3400 | | |
| |||
3407 | 3437 | | |
3408 | 3438 | | |
3409 | 3439 | | |
3410 | | - | |
| 3440 | + | |
3411 | 3441 | | |
0 commit comments