Commit 10c3563
chore(x-goog-spanner-request-id): plumb for BatchCreateSessions (#3815)
* chore(x-goog-spanner-request-id): plumb for BatchCreateSessions
This change plumbs x-goog-spanner-request-id into BatchCreateSessions
and asserts that the header is present for that method.
Updates #3537
* test: fix failing test cases
* Add setRequestIdCreator inside session tests
* Plumb in test for DatabaseClientImpl.runWithSessionRetry behavior
* Remove unnecessary debugs
* Address review feedback
* More code review updates
* Ensure that requestIdCreator is non-null
* More code review updates
* More updates
* DatabaseClientImpl.runWithSessionRetry update on ID
* Move reqId attempt increase out of runWithRetries
* Apply allOptions copy everywhere
* Update tests for createMultiplexedSession
* chore(x-goog-spanner-request-id): plumb for BatchCreateSessions
This change plumbs x-goog-spanner-request-id into BatchCreateSessions
and asserts that the header is present for that method.
Updates #3537
* test: fix failing test cases
* Add setRequestIdCreator inside session tests
* Remove unnecessary debugs
* Address review feedback
* More code review updates
* More code review updates
More updates
DatabaseClientImpl.runWithSessionRetry update on ID
Move reqId attempt increase out of runWithRetries
Apply allOptions copy everywhere
Complete testrunWithSessionRetry_withRequestId
* chore: fix failing test cases
---------
Co-authored-by: Knut Olav Løite <[email protected]>1 parent 140c02f commit 10c3563
File tree
16 files changed
+688
-60
lines changed- google-cloud-spanner/src
- main/java/com/google/cloud/spanner
- spi/v1
- test/java/com/google/cloud/spanner
16 files changed
+688
-60
lines changedLines changed: 81 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
94 | 114 | | |
95 | 115 | | |
96 | 116 | | |
| |||
188 | 208 | | |
189 | 209 | | |
190 | 210 | | |
191 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
192 | 216 | | |
193 | 217 | | |
194 | 218 | | |
| |||
213 | 237 | | |
214 | 238 | | |
215 | 239 | | |
216 | | - | |
| 240 | + | |
| 241 | + | |
217 | 242 | | |
218 | 243 | | |
219 | 244 | | |
| |||
222 | 247 | | |
223 | 248 | | |
224 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
225 | 259 | | |
226 | 260 | | |
227 | 261 | | |
| |||
231 | 265 | | |
232 | 266 | | |
233 | 267 | | |
234 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
235 | 271 | | |
236 | 272 | | |
237 | 273 | | |
| |||
383 | 419 | | |
384 | 420 | | |
385 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
386 | 450 | | |
387 | 451 | | |
388 | 452 | | |
389 | 453 | | |
390 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
391 | 458 | | |
392 | 459 | | |
393 | 460 | | |
394 | 461 | | |
395 | 462 | | |
396 | 463 | | |
397 | 464 | | |
398 | | - | |
| 465 | + | |
| 466 | + | |
399 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
400 | 471 | | |
401 | 472 | | |
402 | | - | |
| 473 | + | |
403 | 474 | | |
404 | 475 | | |
405 | 476 | | |
406 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
407 | 481 | | |
408 | 482 | | |
409 | 483 | | |
| |||
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| |||
535 | 539 | | |
536 | 540 | | |
537 | 541 | | |
| 542 | + | |
538 | 543 | | |
539 | 544 | | |
540 | 545 | | |
| |||
599 | 604 | | |
600 | 605 | | |
601 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
602 | 615 | | |
603 | 616 | | |
604 | 617 | | |
| |||
756 | 769 | | |
757 | 770 | | |
758 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
759 | 775 | | |
760 | 776 | | |
761 | 777 | | |
| |||
798 | 814 | | |
799 | 815 | | |
800 | 816 | | |
801 | | - | |
| 817 | + | |
| 818 | + | |
802 | 819 | | |
803 | 820 | | |
804 | 821 | | |
| |||
867 | 884 | | |
868 | 885 | | |
869 | 886 | | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
870 | 890 | | |
871 | 891 | | |
872 | 892 | | |
| |||
1052 | 1072 | | |
1053 | 1073 | | |
1054 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1055 | 1099 | | |
0 commit comments