Commit 042dfda
authored
Session consistency improvement with bloom filter approach (Azure#38003)
* Adding tests.
* Adding tests.
* Adding PK-scoped session token map.
* Refactoring.
* Addind client-level options for session consistency.
* Adding client-level options for session consistency.
* Adding client-level options for session consistency.
* Added read my writes test.
* Added PartitionKeyMetadata.
* Added SessionTokenMetadata.
* Fixing bugs.
* Added a registry for session tokens.
* Added a registry for session tokens.
* Refactorings.
* Adding LRU-based eviction.
* Refactorings.
* Shade Guava BloomFilter and its dependencies.
* Adding bloom filter based PK tracking.
* Adding bloom filter based PK tracking.
* Fixing custom type for bloom filter key.
* Refactoring.
* Refactoring.
* Refactoring.
* Refactoring.
* Fixing SessionContainerTest.java.
* Reverting changes.
* Refactoring and bug fixes.
* Refactoring and bug fixes.
* Refactoring and bug fixes.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Code clean up.
* Code clean up.
* Code clean up.
* Code clean up.
* Code clean up.
* Code clean up.
* Code clean up.
* Fixing bugs.
* Fixing bugs.
* Fixing bugs.
* Fixing bugs.
* Refactoring.
* Refactoring.
* Fixing ConsistencyTests*.
* Refactoring tests.
* Store regionId to regionName mappings.
* Store regionId to regionName mappings.
* Store regionId to regionName mappings.
* Modified tests.
* Fixing CI pipeline.
* Refactoring and tests.
* Session scoping changes.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Refactoring.
* Refactoring.
* Revert "Refactoring."
This reverts commit 7f236fd.
* Refactoring.
* Refactoring.
* Adding tests.
* Wiring PartitionKeyDefinition into query-based request targeted to single logical partition.
* PR clean up.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Fixing CI pipeline.
* Run live test and CI with RegionScopedSessionContainer enabled.
* Run live test and CI with RegionScopedSessionContainer enabled.
* Fixing tests.
* Revert RegionScopedSessionContainer injection.
* Adding comments.
* Adding comments.
* Force use of region-scoped session container for benchmarks.
* Change expected insertion type to `long` from `int`.
* Attempt to use cached effective partition key.
* Fix bottleneck.
* Attempt at fixing tests.
* Reacting to review comments.
* Adding tests around bulk, readMany, batch and change feed (pull-model).
* Adding tests around patch.
* Adding tests.
* Adding tests.
* Logging changes.
* Fixing faulty merge.
* Fixing tests.
* Added region-scoped session container capability in benchmarks.
* Force RegionScopedSessionContainer usage for live tests.
* Revert RegionScopedSessionContainer usage for live tests.
* Fixing tests.
* Improving diagnostics to captured RegionScopedSessionContainer related metadata.
* Wire up effective partition key string resolution from upstream classes.
* Wire up effective partition key string resolution from upstream classes.
* Code clean up.
* Improve javadoc.
* Updated CHANGELOG.md.
* Fixing merge.
* Updated CHANGELOG.md.
* Modify logger level.
* Reacting to review comments.
* Reacting to review comments.
* Added diagnostic tracking of session token record and resolution flows.
* Remove unneeded static methods.
* Added additional null checks.
* Fixing tests.
* Adding code comments.
* Adding license headers.
* Reacting to review comments.
* Fixing tests.
* Reacting to review comments.
* Reacting to review comments.
* Reacting to review comments.
* Reacting to review comments.
* Reacting to review comments.
* Reacting to review comments.
* Fixing tests.
* Force RegionScopedSessionContainer for live tests.
* Reacting to review comments.
* Fixing diagnostics.
* Adding tests.
* Reacting to review comments.
* Reacting to review comments.
* Reacting to review comments.
* Reacting to review comments.
* Test changes.
* Test changes.1 parent 85eeca7 commit 042dfda
File tree
86 files changed
+14785
-194
lines changed- sdk/cosmos
- azure-cosmos-benchmark/src/main/java/com/azure/cosmos/benchmark
- azure-cosmos-tests/src/test/java/com/azure/cosmos
- implementation
- directconnectivity
- azure-cosmos-test/src/main/java/com/azure/cosmos/test/implementation/faultinjection
- azure-cosmos
- src/main/java/com/azure/cosmos
- implementation
- directconnectivity
- guava25
- annotations
- errorprone/annotations
- hash
- math
- primitives
- query
- routing
- models
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+14785
-194
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
632 | 635 | | |
633 | 636 | | |
634 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
635 | 642 | | |
636 | 643 | | |
637 | 644 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
121 | 129 | | |
122 | 130 | | |
123 | 131 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 71 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
205 | 224 | | |
206 | | - | |
207 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
208 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
209 | 242 | | |
210 | | - | |
211 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
212 | 270 | | |
213 | 271 | | |
0 commit comments