Skip to content

Updating 2.30.0 to 2.33.0 caused connection pool depletion #4624

@gregsdennis

Description

@gregsdennis

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.32.0

Steps to Reproduce

I don't have explicit reproduction step for this, but we did narrow it down to this particular package update.

We had this package unpinned in our requirements.txt. When we released a build on 18 Jun, the latest package was 2.30.0. This worked fine for us.

Earlier this week, when releasing a new build, our app started reporting a lot of timeouts from the API. Looking into it, we found that the authentication library we were using was unable to establish a connection to the authority while attempting to verify the JWT.

Performing a diff of the two deployments found that this package was updated from 2.30.0 to 2.33.0. Today, we pinned the package to 2.30.0 and the issue has been resolved for us.


Looking at the diff between the two versions, it appears that sessions appear to be handled more aggressively. This was introduced in 2.32.0.

We believe that this change in session handling is what caused our problems. The theory is that by more quickly shutting down sessions, new sessions need to be created, which depletes the connection pool.

This is all we know. Sorry I can't give you more.

Expected Result

Don't deplete the connection pool.

Actual Result

Other activity which needs to open HTTP connections can't.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions