Commit 0199879
[SNOW-3249917] JDBC removal Step 10c (part 2): Remove SFSession from exceptions + telemetry
Remove SFSession/SFBaseSession from SnowflakeSQLLoggedException and
TelemetryClient. Session was always null from ingest callers.
SnowflakeSQLLoggedException:
- Remove SFBaseSession/SFSession from all 15 constructor signatures
- Remove IB telemetry dead code (session was always null, so ibInstance
was always null — only OOB path ever executed)
- Remove sendInBandTelemetryMessage, createIBValue (dead code)
- Simplify sendTelemetryData to always send OOB
- Remove Telemetry/TelemetryField(JDBC)/TelemetryUtil(JDBC) imports
- Update all callers (~12 files) to remove null session argument
TelemetryClient:
- Remove SFSession field and session-based constructor
- Remove createTelemetry(Connection/SFSession) factory methods
- Simplify isTelemetryEnabled() (no session check)
- Remove session-based auth header and HTTP call branch in sendBatch()
- Remove SFSession, SnowflakeConnectionV1, Connection, SQLException,
UnexpectedException imports
Remaining JDBC imports: 6 (HttpUtil + SnowflakeSQLException in
TelemetryClient, HttpUtil + RestRequest + ExecTimeTelemetryData +
HttpResponseContextDto in SnowflakeGCSClient)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 57ce4ac commit 0199879
File tree
15 files changed
+55
-394
lines changed- src
- main/java/net/snowflake/ingest
- connection/telemetry
- streaming/internal/fileTransferAgent
- test/java/net/snowflake/ingest/streaming/internal/fileTransferAgent
15 files changed
+55
-394
lines changedLines changed: 11 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
18 | | - | |
19 | | - | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
| |||
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | | - | |
48 | 41 | | |
49 | 42 | | |
50 | 43 | | |
| |||
67 | 60 | | |
68 | 61 | | |
69 | 62 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 63 | | |
88 | 64 | | |
89 | 65 | | |
| |||
94 | 70 | | |
95 | 71 | | |
96 | 72 | | |
97 | | - | |
98 | 73 | | |
99 | 74 | | |
100 | 75 | | |
| |||
127 | 102 | | |
128 | 103 | | |
129 | 104 | | |
130 | | - | |
131 | | - | |
| 105 | + | |
132 | 106 | | |
133 | 107 | | |
134 | 108 | | |
| |||
137 | 111 | | |
138 | 112 | | |
139 | 113 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 114 | | |
189 | 115 | | |
190 | 116 | | |
| |||
330 | 256 | | |
331 | 257 | | |
332 | 258 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | 259 | | |
338 | 260 | | |
339 | 261 | | |
340 | | - | |
341 | 262 | | |
342 | 263 | | |
343 | 264 | | |
| |||
346 | 267 | | |
347 | 268 | | |
348 | 269 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
358 | 273 | | |
359 | 274 | | |
360 | 275 | | |
361 | 276 | | |
362 | 277 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
378 | 285 | | |
379 | 286 | | |
380 | 287 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
| |||
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
257 | | - | |
258 | 256 | | |
259 | 257 | | |
260 | 258 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| |||
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
320 | | - | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
| |||
373 | 371 | | |
374 | 372 | | |
375 | 373 | | |
376 | | - | |
377 | 374 | | |
378 | 375 | | |
379 | 376 | | |
| |||
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
413 | | - | |
414 | 410 | | |
415 | 411 | | |
416 | 412 | | |
| |||
424 | 420 | | |
425 | 421 | | |
426 | 422 | | |
427 | | - | |
428 | 423 | | |
429 | 424 | | |
430 | 425 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
327 | | - | |
328 | 326 | | |
329 | 327 | | |
330 | 328 | | |
| |||
333 | 331 | | |
334 | 332 | | |
335 | 333 | | |
336 | | - | |
337 | 334 | | |
338 | 335 | | |
339 | 336 | | |
| |||
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | | - | |
372 | 368 | | |
373 | 369 | | |
374 | 370 | | |
| |||
403 | 399 | | |
404 | 400 | | |
405 | 401 | | |
406 | | - | |
407 | 402 | | |
408 | 403 | | |
409 | 404 | | |
| |||
417 | 412 | | |
418 | 413 | | |
419 | 414 | | |
420 | | - | |
421 | 415 | | |
422 | 416 | | |
423 | 417 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
| |||
433 | 432 | | |
434 | 433 | | |
435 | 434 | | |
436 | | - | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
| |||
442 | 440 | | |
443 | 441 | | |
444 | 442 | | |
445 | | - | |
446 | 443 | | |
447 | 444 | | |
448 | 445 | | |
| |||
486 | 483 | | |
487 | 484 | | |
488 | 485 | | |
489 | | - | |
490 | 486 | | |
491 | 487 | | |
492 | 488 | | |
| |||
498 | 494 | | |
499 | 495 | | |
500 | 496 | | |
501 | | - | |
502 | 497 | | |
503 | 498 | | |
504 | 499 | | |
| |||
546 | 541 | | |
547 | 542 | | |
548 | 543 | | |
549 | | - | |
550 | 544 | | |
551 | 545 | | |
552 | 546 | | |
| |||
560 | 554 | | |
561 | 555 | | |
562 | 556 | | |
563 | | - | |
564 | 557 | | |
565 | 558 | | |
566 | 559 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
0 commit comments