mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
10 hours ago 4a462adaa29230742739b64af01ceea01d1ee560
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Thursday, November 26, 2026 06:36 +0100
committer GitHub <noreply@github.com>
Thursday, November 26, 2026 06:36 +0100
commit4a462adaa29230742739b64af01ceea01d1ee560
tree 24730f277a774a47dd71e9381f94a665c4b23051 tree | zip | gz
parent 0bc642c94610ed0cdd162533dd086fbd45a415bc view | diff
Speed up Linux precommit integration tests (#1329)

## Summary

- Default Maven precommit to four Failsafe JVMs and use that default
across the Linux matrix. Keep a fresh JVM per test class and isolate
test ports, QuickSetup installations, and TestNG reports by fork. Give
the file rename tests unique temporary targets and the changelog tests
separate directories per class.
- Close work queue admission and wake blocked submitters before shutting
down connection handlers. Wake idle workers at queue finalization,
preserve FIFO order when capacity changes, and account for operations
aborted on shutdown, including operations already dequeued by a worker.
- During server shutdown and restart, wait for Grizzly to process the
cancelled accept key and release the listening socket. Drain established
connections separately. Verify that a connection accepted during
finalization gives back its address slot when it closes.
- During live disable or delete, close the LDAP listener on its handler
thread so the configuration request can complete while a selector waits
for queue space. Log listener close failures on the handler thread.
- Limit no-acknowledgement reads to five seconds in 22 assured
replication server cases and three assured replication plugin cases. The
plugin cases verify replay first. Use older replication timestamps to
exercise historical purge without a 90-second sleep. Keep one
unfinished-bind cancellation check and verify every bind constructor
variant after completion.
- Clean up `AciTests` fixtures with synchronous internal deletes.
Post-response delete plugins finish before a subsequent test recreates
the same DN. The ACI assertions still exercise LDAP.
- In the assured replication tests, wait for the fake replication server
to finish its scenario and check that the add returned after ACK
publication began. In the restore test, send the delete to an isolated
replication server and reconnect the restored domain to the server that
holds the backup state. Verify that its changelog contains only the
update made after the restore.

## Validation

- On macOS with Java 27, Maven precommit passed all 84 tests in the two
affected classes (14 in `AssuredReplicationPluginTest` and 70 in
`HistoricalCsnOrderingTest`), with zero failures, errors or skips. The
previous Ubuntu run exposed the ACK race on Java 25 and replayed the
delete after restore on Java 27. [Java 25
job](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45692294498/job/139480607425)
· [Java 27
job](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45692294498/job/139480607812)
- In that run, the Ubuntu Maven step took 48, 60 and 44 minutes on Java
11, 17 and 21 respectively. The same jobs on the PR base took 140, 125
and 144 minutes. All six jobs passed. [PR
run](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45692294498)
· [Base
run](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45675806177)
- A focused Maven precommit run on macOS with Java 21 passed 767 tests
with zero failures or skips across four Failsafe forks, including all
515 `AciTests` cases. The cleanup change addresses the delayed
disconnect seen on Ubuntu with Java 21. [CI
failure](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45639995046/job/139295681109)
- A focused Maven precommit run on macOS with Java 17 passed 58 tests
with zero failures or skips. The live disable and delete cases use one
worker and a full queue. Both verify LDAP success, the saved
configuration, another request over the same administrative connection,
and port release when the queue resumes. The run also covers immediate
port reuse and embedded server restart.
- A focused Maven Failsafe run on Java 17 passed 1,359 changelog tests
with zero skips. `LogFileTest`, `LogTest`, and
`BlockLogReaderWriterTest` overlapped in separate JVMs with the
four-fork configuration. The shared-directory failure was reproduced
before the fix. [Java 17 CI
failure](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45565658345/job/139039676382)
- A focused Maven `verify` on Linux with Java 25 and four CPUs passed
1,215 tests with zero skips. All four Failsafe forks ran and wrote
separate reports. The run includes immediate port reuse, connection
accounting, and two blocked submitters waking with `UNAVAILABLE` before
the worker completes.
- On Linux with Java 25, 100 out of 100 first-attempt binds succeeded
immediately after listener close. A separate embedded-server restart
test passed with a full work queue and a selector waiting for space.
- Verified the Maven profile default and the explicit one-fork override,
checked the profile arguments for every matrix entry, and ran
`actionlint` and `git diff --check`.
26 files modified
1 files added
1937 ■■■■■ changed files
.github/workflows/build.yml 4 ●●●●● diff | view | raw | blame | history
opendj-grizzly/src/main/java/org/forgerock/opendj/grizzly/GrizzlyLDAPListener.java 88 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/pom.xml 9 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/forgerock/opendj/reactive/LDAPConnectionHandler2.java 93 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/api/ConnectionHandler.java 13 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/api/WorkQueue.java 13 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/ConnectionHandlerConfigManager.java 4 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/DirectoryServer.java 6 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/extensions/TraditionalWorkQueue.java 529 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/extensions/TraditionalWorkerThread.java 85 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/quicksetup/TestUtilities.java 8 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/quicksetup/util/FileManagerTest.java 9 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java 95 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/TestListener.java 12 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/AciTests.java 53 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/core/BindOperationTestCase.java 30 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/extensions/TraditionalWorkQueueShutdownTest.java 277 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LDAPConnectionHandler2TransportTestCase.java 176 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LDAPConnectionLimitsTestCase.java 80 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java 163 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/HistoricalCsnOrderingTest.java 17 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/HistoricalTest.java 131 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/server/AssuredReplicationServerTest.java 16 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/server/changelog/file/BlockLogReaderWriterTest.java 3 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/server/changelog/file/LogFileTest.java 2 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/server/changelog/file/LogTest.java 2 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/util/TestStaticUtils.java 19 ●●●●● diff | view | raw | blame | history