Commit 5a6318a
committed
Fix issue where connection was closed during retry.
- Resolved an issue where SnowflakeOutputConnection was prematurely closed during retries in the COPY operation.
- Refactored the code to use try-with-resources for managing SnowflakeOutputConnection, ensuring a new connection is created for each retry.
- Removed the explicit con.close() call in the finally block, as connections are now safely managed within the retry loop.1 parent 76dc706 commit 5a6318a
File tree
1 file changed
+2
-4
lines changed- src/main/java/org/embulk/output/snowflake
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | 428 | | |
430 | 429 | | |
431 | | - | |
| 430 | + | |
| 431 | + | |
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
465 | | - | |
466 | 464 | | |
467 | 465 | | |
468 | 466 | | |
| |||
0 commit comments