Skip to content

Reduce OraclePoolTest pressure on the test database - #1784

Merged
tsegismont merged 1 commit into
eclipse-vertx:masterfrom
tsegismont:fix-oracle-pool-test-resource-usage
Nov 6, 2026
Merged

tsegismont merged 1 commit into
eclipse-vertx:masterfrom
tsegismont:fix-oracle-pool-test-resource-usage

Conversation

@tsegismont

Copy link
Copy Markdown
Member

The nightly Oracle build failed with 14 errors, all of them ORA-12516 ("Listener does not have a protocol handler for TCP ready or registered for service freepdb1").

An idle gvenzl/oracle-free:23-slim-faststart instance already uses about 90 of the 200 server processes it allows. testPool and testQuery each opened a pool of 40 connections, which pushed the whole suite to a peak of ~130 processes. When utilization gets close to the limit, PMON marks the dedicated server handler as blocked, and the listener rejects every connection until it refreshes, so the test classes running afterwards failed too.

Lower the pool size to 16, which brings the peak down to ~108 processes.

Also report only the first unexpected failure in testUpdateWithParams. Requests still in flight when the pool is closed fail as well, and asserting on each of the 1000 of them turned a single failure into a 4.6 MB job log. In a reproduction of the failure, this brings the output down from 35621 lines to 456.

Assisted-by: Anthropic Claude (claude-opus-5)

The nightly Oracle build failed with 14 errors, all of them ORA-12516 ("Listener does not have a protocol handler for TCP ready or registered for service freepdb1").

An idle `gvenzl/oracle-free:23-slim-faststart` instance already uses about 90 of the 200 server processes it allows.
`testPool` and `testQuery` each opened a pool of 40 connections, which pushed the whole suite to a peak of ~130 processes.
When utilization gets close to the limit, PMON marks the dedicated server handler as blocked, and the listener rejects every connection until it refreshes, so the test classes running afterwards failed too.

Lower the pool size to 16, which brings the peak down to ~108 processes.

Also report only the first unexpected failure in `testUpdateWithParams`.
Requests still in flight when the pool is closed fail as well, and asserting on each of the 1000 of them turned a single failure into a 4.6 MB job log.
In a reproduction of the failure, this brings the output down from 35621 lines to 456.

Assisted-by: Anthropic Claude (claude-opus-5)
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
tsegismont merged commit 0251bd4 into eclipse-vertx:master Nov 6, 2026
20 checks passed
@tsegismont
tsegismont deleted the fix-oracle-pool-test-resource-usage branch November 6, 2026 16:42
tsegismont added a commit that referenced this pull request Nov 6, 2026
The nightly Oracle build failed with 14 errors, all of them ORA-12516 ("Listener does not have a protocol handler for TCP ready or registered for service freepdb1").

An idle `gvenzl/oracle-free:23-slim-faststart` instance already uses about 90 of the 200 server processes it allows.
`testPool` and `testQuery` each opened a pool of 40 connections, which pushed the whole suite to a peak of ~130 processes.
When utilization gets close to the limit, PMON marks the dedicated server handler as blocked, and the listener rejects every connection until it refreshes, so the test classes running afterwards failed too.

Lower the pool size to 16, which brings the peak down to ~108 processes.

Also report only the first unexpected failure in `testUpdateWithParams`.
Requests still in flight when the pool is closed fail as well, and asserting on each of the 1000 of them turned a single failure into a 4.6 MB job log.
In a reproduction of the failure, this brings the output down from 35621 lines to 456.

Assisted-by: Anthropic Claude (claude-opus-5)


(cherry picked from commit 0251bd4)

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant