Commit 363bc93
[SNOW-3249917] JDBC removal Step 11a: Replicate RestRequest and HTTP retry infrastructure (#1143)
* Update JDBC removal plan: add Step 11 (final cleanup)
Step 10c/10c2 done (remove SFSession). After those, 6 JDBC imports +
~70 FQN references remain. Split final cleanup into Step 11:
- 11a: Create HttpRequestHelper, replace 6 JDBC HTTP calls
- 11b: Remove 47 FQN SnowflakeSQLException from throws clauses
- 11c: Clean up remaining FQN refs (HttpClientSettingsKey, HttpProtocol,
OCSPMode, SnowflakeUtil, setSessionlessProxyForAzure, AwsSdkGCPSigner)
- 11d: Demote JDBC to test scope + remove shade rules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* [SNOW-3249917] JDBC removal Step 11a: Replicate RestRequest and HTTP retry infrastructure
Replicate the following JDBC classes (v3.25.1) verbatim into the ingest
fileTransferAgent package:
- ThrowingBiFunction (functional interface for retry callbacks)
- OCSPErrorCode (OCSP error code enum)
- SFOCSPException (OCSP exception)
- URLUtil (URL validation and request ID extraction)
- DecorrelatedJitterBackoff (already existed, now tracked)
- RetryContext (retry state holder)
- RetryContextManager (retry callback registration)
- HttpExecutingContext (HTTP request execution state)
- HttpExecutingContextBuilder (builder for HttpExecutingContext)
- SnowflakeUseDPoPNonceException (DPoP nonce error)
- RestRequest (1265-line HTTP request retry engine)
Import swaps applied per the JDBC removal plan. HttpUtil references kept
as FQN (net.snowflake.client.core.HttpUtil) pending future replication.
SessionUtil.isNewRetryStrategyRequest kept as FQN. SnowflakeUtil.logResponseDetails
inlined as a local method since it requires JDBC's SFLogger type.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent c3f03a8 commit 363bc93
File tree
12 files changed
+2321
-22
lines changed- .plans
- src/main/java/net/snowflake/ingest/streaming/internal/fileTransferAgent
12 files changed
+2321
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
616 | 620 | | |
617 | 621 | | |
618 | 622 | | |
619 | | - | |
| 623 | + | |
620 | 624 | | |
621 | | - | |
622 | | - | |
623 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
624 | 628 | | |
625 | 629 | | |
626 | 630 | | |
627 | | - | |
| 631 | + | |
628 | 632 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
641 | 636 | | |
642 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
643 | 688 | | |
644 | 689 | | |
645 | | - | |
646 | | - | |
| 690 | + | |
647 | 691 | | |
648 | 692 | | |
649 | 693 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments