Skip to content

Conversation

@anders-swanson
Copy link
Member

Trying something for #258 - I noticed the ODPI CGO layer may crash if you rapidly acquire connections. The goal here is to "slowly" warm the connection pool for each database. In practice, I didn't see any more crashes (ran this hundreds of times with a few databases).

It's not very neat, and would be nice if we didn't have to do this. I had to put a time.sleep in the warmup code, since even serially acquiring connections required some backoff in a single goroutine.

Signed-off-by: Anders Swanson <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 18, 2025
Copy link
Member

@markxnelson markxnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anders-swanson anders-swanson merged commit 9ae6002 into main Jun 19, 2025
2 checks passed
@anders-swanson anders-swanson deleted the connection-pool-warmup branch June 19, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants