Skip to content

Commit 89a10b0

Browse files
authored
Merge pull request #1464 from ydb-platform/pool-leak
* Fixed connections pool leak on failed `ydb.Open` call
2 parents a827ded + a4da503 commit 89a10b0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Fixed connections pool leak on failed `ydb.Open` call
2+
13
## v3.80.4
24
* Fixed panic on usage metrics package from prometheus adapter on `trace.Driver.OnNewStream` callback
35

driver.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ func Open(ctx context.Context, dsn string, opts ...Option) (_ *Driver, _ error)
274274
}()
275275

276276
if err = d.connect(ctx); err != nil {
277+
_ = d.pool.Release(ctx)
278+
277279
return nil, xerrors.WithStackTrace(err)
278280
}
279281

0 commit comments

Comments
 (0)