Commit 8d2b0b0
authored
Avoid
* Make session container and bloom filter insertions atomic.
* Make session container and bloom filter insertions atomic.
* Make session container and bloom filter insertions atomic.
* Fixing tests.
* Ensure once a global session is used to not go back to using region-scoped session tokens.
* Ensure once a global session is used to not go back to using region-scoped session tokens.
* Ensure bloom filter is updated atomically with session container update.
* Add a test which concurrently updates and reads from the RegionScopedSessionContainer which "occasional" cross region calls.
* Fixing tests.
* Clean up PR.
* Add user-agent suffix and try-catch block in PartitionScopedRegionLevelProgress.
* Track globalLsn progress when hub region is seen in bloom filter.
* Centralize fallback to global session token flows and introduce use hub flow.
* Fixing baseSessionToken resolution flow.
* Enhancing RegionScopedSessionContainerConcurrencyTest to make lsns decrease from service perspective yet session token resolutions client-side should be monotonically increasing.
* Enhancing RegionScopedSessionContainerConcurrencyTest to make lsns decrease from service perspective yet session token resolutions client-side should be monotonically increasing.
* Enhancing RegionScopedSessionContainerConcurrencyTest to make lsns decrease from service perspective yet session token resolutions client-side should be monotonically increasing.
* Add license header.
* Fixing compilation errors.
* Addressing review comments.
* Addressing review comments.
* Addressing review comments.
* Updating CHANGELOG.mdNullPointerException when x-region calls are made under high concurrency when using region scoped session container. (#46758)1 parent dc2e088 commit 8d2b0b0
File tree
9 files changed
+1119
-347
lines changed- sdk/cosmos
- azure-cosmos-tests/src/test/java/com/azure/cosmos/implementation
- azure-cosmos
- src/main/java/com/azure/cosmos/implementation
9 files changed
+1119
-347
lines changedLines changed: 639 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
484 | | - | |
| 483 | + | |
| 484 | + | |
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
| |||
Lines changed: 423 additions & 196 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 113 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 205 | | |
212 | 206 | | |
213 | 207 | | |
| |||
217 | 211 | | |
218 | 212 | | |
219 | 213 | | |
220 | | - | |
| 214 | + | |
221 | 215 | | |
222 | 216 | | |
223 | 217 | | |
| |||
339 | 333 | | |
340 | 334 | | |
341 | 335 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | 336 | | |
378 | 337 | | |
379 | 338 | | |
| |||
399 | 358 | | |
400 | 359 | | |
401 | 360 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 361 | | |
418 | 362 | | |
419 | 363 | | |
420 | 364 | | |
| 365 | + | |
421 | 366 | | |
422 | | - | |
| 367 | + | |
| 368 | + | |
423 | 369 | | |
424 | 370 | | |
425 | 371 | | |
| |||
444 | 390 | | |
445 | 391 | | |
446 | 392 | | |
| 393 | + | |
447 | 394 | | |
448 | | - | |
| 395 | + | |
| 396 | + | |
449 | 397 | | |
| 398 | + | |
| 399 | + | |
450 | 400 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
457 | 408 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
466 | 418 | | |
467 | 419 | | |
468 | 420 | | |
| |||
472 | 424 | | |
473 | 425 | | |
474 | 426 | | |
475 | | - | |
| 427 | + | |
476 | 428 | | |
477 | 429 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | 430 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
| 431 | + | |
500 | 432 | | |
501 | | - | |
502 | | - | |
503 | | - | |
| 433 | + | |
504 | 434 | | |
505 | | - | |
| 435 | + | |
| 436 | + | |
506 | 437 | | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
519 | 446 | | |
520 | 447 | | |
521 | | - | |
| 448 | + | |
522 | 449 | | |
523 | 450 | | |
524 | 451 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1535 | 1535 | | |
1536 | 1536 | | |
1537 | 1537 | | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1538 | 1542 | | |
1539 | 1543 | | |
1540 | 1544 | | |
| |||
Lines changed: 7 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | 180 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 181 | | |
203 | 182 | | |
204 | 183 | | |
205 | | - | |
| 184 | + | |
206 | 185 | | |
207 | 186 | | |
208 | | - | |
| 187 | + | |
| 188 | + | |
209 | 189 | | |
210 | 190 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 191 | | |
221 | 192 | | |
222 | 193 | | |
| |||
232 | 203 | | |
233 | 204 | | |
234 | 205 | | |
235 | | - | |
| 206 | + | |
236 | 207 | | |
237 | 208 | | |
238 | | - | |
| 209 | + | |
| 210 | + | |
239 | 211 | | |
240 | 212 | | |
241 | 213 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments