Commit 83245b9
authored
fix: retry ExceptionHandler not retrying on IOException (#3668)
* fix: retry ExceptionHandler not retrying on IOException due to exception translation
* fix: retry ExceptionHandler not retrying on IOException due to exception translation
* fix: retry ExceptionHandler not retrying on IOException due to exception translation
* fix: retry ExceptionHandler not retrying on IOException due to exception translation
* fix: retry ExceptionHandler not retrying on IOException due to exception translation
* cast to HttpBigQueryRpc
* cast to HttpBigQueryRpc
* fix BigQueryRpc mocks in unit tests
* fix clirr check and format
* fix clirr
* fix clirr
* refactor HttpBigQueryRpc.write
* refactor HttpBigQueryRpc.write
* refactor ConnectionImpl HttpBigQueryRpc call
* refactor ConnectionImpl HttpBigQueryRpc call
* refactor create table
* refactor create table
* refactor BigQueryImpl
* refactor ConnectionImpl
* add missing unit test for BigQueryImpl deleteJob
* add tests to validate retry on BIGQUERY_EXCEPTION_HANDLER
* handle exception wrapping/unwrapping with new methods
* update runWithRetries to use BigQuery ruWithRetries to correctly handle thrown IOExceptions
* fix unit test
* add unit tests for retry in TableDataWriteChannel
* remove unnecessary null check
* fix unit test where null is returned in mocks causing errors1 parent 11b5809 commit 83245b9
File tree
11 files changed
+1791
-1138
lines changed- google-cloud-bigquery
- src
- main/java/com/google/cloud/bigquery
- spi/v2
- test/java/com/google/cloud/bigquery
11 files changed
+1791
-1138
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
Lines changed: 273 additions & 188 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | | - | |
| 134 | + | |
| 135 | + | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
Lines changed: 48 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | 30 | | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
469 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
470 | 474 | | |
471 | 475 | | |
472 | 476 | | |
473 | 477 | | |
474 | | - | |
| 478 | + | |
475 | 479 | | |
476 | 480 | | |
477 | 481 | | |
| |||
914 | 918 | | |
915 | 919 | | |
916 | 920 | | |
917 | | - | |
| 921 | + | |
918 | 922 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
923 | 929 | | |
924 | 930 | | |
925 | | - | |
926 | | - | |
927 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
928 | 941 | | |
929 | | - | |
930 | 942 | | |
931 | 943 | | |
| 944 | + | |
932 | 945 | | |
933 | 946 | | |
934 | 947 | | |
| |||
948 | 961 | | |
949 | 962 | | |
950 | 963 | | |
951 | | - | |
| 964 | + | |
952 | 965 | | |
953 | 966 | | |
954 | 967 | | |
955 | | - | |
| 968 | + | |
956 | 969 | | |
957 | 970 | | |
958 | 971 | | |
959 | 972 | | |
960 | 973 | | |
961 | 974 | | |
962 | 975 | | |
963 | | - | |
| 976 | + | |
| 977 | + | |
964 | 978 | | |
965 | 979 | | |
966 | | - | |
| 980 | + | |
967 | 981 | | |
968 | 982 | | |
969 | 983 | | |
| |||
1177 | 1191 | | |
1178 | 1192 | | |
1179 | 1193 | | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1186 | 1202 | | |
1187 | 1203 | | |
1188 | 1204 | | |
| |||
1197 | 1213 | | |
1198 | 1214 | | |
1199 | 1215 | | |
1200 | | - | |
| 1216 | + | |
1201 | 1217 | | |
1202 | 1218 | | |
1203 | 1219 | | |
| |||
1442 | 1458 | | |
1443 | 1459 | | |
1444 | 1460 | | |
1445 | | - | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1446 | 1465 | | |
1447 | 1466 | | |
1448 | 1467 | | |
| |||
1482 | 1501 | | |
1483 | 1502 | | |
1484 | 1503 | | |
1485 | | - | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1486 | 1508 | | |
1487 | 1509 | | |
1488 | 1510 | | |
| |||
Lines changed: 18 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | 21 | | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | | - | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | | - | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
96 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
0 commit comments