Skip to content

PgPoolTest.testEventLoopSize fails on AMD 9950X CPU #1569

@adamdickmeiss

Description

@adamdickmeiss

Version

5.0.5

Context

Test PgPoolTest.testEventLoopSize fails on AMD 9950X CPU.

Problem: in testEventLoopSize , then num becomes 64 (2 * CpuCoreSensor.availableProcessors()) Reducing this value to 50 makes the test pass. This is probably due to default connection limit in Postgres of 100 = 2 * 50.

Steps to reproduce

mvn compile
cd vertx-pg-client
mvn test

Produces:

*** Iteration 49/50 of test testNoConnectionLeaks(io.vertx.tests.pgclient.PgPoolTest)
*** Iteration 50/50 of test testNoConnectionLeaks(io.vertx.tests.pgclient.PgPoolTest)
[ERROR] Tests run: 28, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 24.06 s <<< FAILURE! -- in io.vertx.tests.pgclient.PgPoolTest
[ERROR] io.vertx.tests.pgclient.PgPoolTest.testEventLoopSize -- Time elapsed: 0.105 s <<< ERROR!
io.vertx.pgclient.PgException: FATAL: sorry, too many clients already (53300)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   PgPoolTest.testEventLoopSize » Pg FATAL: sorry, too many clients already (53300)
[INFO] 
[ERROR] Tests run: 28, Failures: 0, Errors: 1, Skipped: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions