pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feed[pgjdbc/pgjdbc] issue #4037: StatementTest fails with JDK 8
3+ messages / 2 participants
[nested] [flat]
* [pgjdbc/pgjdbc] issue #4037: StatementTest fails with JDK 8
@ 2026-04-22 08:20 "harudini (@harudini)" <[email protected]>
0 siblings, 0 replies; 3+ messages in thread
From: harudini (@harudini) @ 2026-04-22 08:20 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
**Describe the issue**
Running the test suite with JDK 8 fails, while it succeeds on JDK 11 and later.
The failure appears during execution of StatementTest, eventually resulting in an OutOfMemoryError.
This issue started after the following commit (https://github.com/pgjdbc/pgjdbc/commit/bdd930bf458e3d490d93edc4dc24a67e3a2d5964).
**Driver Version?**
**Java Version?**
OpenJDK 8
**OS Version?**
RHEL8
**PostgreSQL Version?**
18.3
**To Reproduce**
`./gradlew -PjdkBuildVersion=17 -PjdkTestVersion=8 test`
**Expected behaviour**
All test to pass.
**Logs**
```
StatementTest > fastCloses() STANDARD_OUT
[testFastCloses] total counts for each sql state: {0=102, 55000=898}
2.4sec, org.postgresql.test.jdbc2.StatementTest > cancelQueryWithBrokenNetwork()
FAILURE 0.0sec, UnknownClass > executionError
org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to execute tests
Caused by: org.junit.platform.commons.JUnitException: Error executing tests for engine junit-jupiter
Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError
at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
Caused by: java.lang.OutOfMemoryError
at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1005)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.postgresql.test.jdbc2.StatementTest.sideStatementFinalizers(StatementTest.java:1076
```
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [pgjdbc/pgjdbc] issue #4037: StatementTest fails with JDK 8
@ 2026-04-22 09:22 "vlsi (@vlsi)" <[email protected]>
1 sibling, 0 replies; 3+ messages in thread
From: vlsi (@vlsi) @ 2026-04-22 09:22 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
Does it reproduce every time?
Could you capture a heap dump and analyze the reason for OOM?
PS. We execute tests with Java 8 in CI and it does not fail with OOM: https://github.com/pgjdbc/pgjdbc/actions/runs/24677228987/job/72164505739
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [pgjdbc/pgjdbc] issue #4037: StatementTest fails with JDK 8
@ 2026-04-22 10:32 "vlsi (@vlsi)" <[email protected]>
1 sibling, 0 replies; 3+ messages in thread
From: vlsi (@vlsi) @ 2026-04-22 10:32 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
Interestingly, I was able to reproduce the failure with `-XX:ActiveProcessorCount=2` locally, and https://github.com/pgjdbc/pgjdbc/pull/4038 helps.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-04-22 10:32 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-04-22 08:20 [pgjdbc/pgjdbc] issue #4037: StatementTest fails with JDK 8 "harudini (@harudini)" <[email protected]>
2026-04-22 09:22 ` "vlsi (@vlsi)" <[email protected]>
2026-04-22 10:32 ` "vlsi (@vlsi)" <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox