Commit fb6306f
authored
fix: resolve Goroutine leak in database connection close (apache#3491)
When a connection is opened via databaseImpl, the cache clientCache
initializes
*flightsql.Client objects which require proper cleanup on connection
close to
prevent Goroutine leaks.
Previously, closing a connection released only 3 of the 6 Goroutines
created per
connection, leaving 3 Goroutines associated with the cached client
unmanaged.
This resulted in accumulated Goroutine leaks over time.
The fix ensures all Goroutines are properly cleaned up when connections
are closed.1 parent 3774b82 commit fb6306f
File tree
2 files changed
+8
-1
lines changed- go/adbc/driver/flightsql
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| 1134 | + | |
1134 | 1135 | | |
1135 | 1136 | | |
1136 | 1137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
| |||
0 commit comments