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

Valery Kharseko
43 mins ago 70f1d20362f4a89f425ad1bfa51ae7be5f9e3eb1
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Saturday, November 28, 2026 10:45 +0100
committer GitHub <noreply@github.com>
Saturday, November 28, 2026 10:45 +0100
commit70f1d20362f4a89f425ad1bfa51ae7be5f9e3eb1
tree 4c06e8c3560bae7cca293427dbb83da7d4e7a892 tree | zip | gz
parent ef7010639a3859f48bee38b76567d1b84eb097e3 view | diff
Fix assured replication tests with interleaved topology messages (#1344)

## Summary

- Let the fake replication server read past topology messages and the
expected generation ID warning while waiting for an ACK.
- Match the ACK to the update by CSN and preserve the five-second read
budget in cases that expect no ACK.
- Send a topology message before the update in every
`testSafeDataFromRS` case to exercise both the ACK and timeout paths
deterministically.
- Wait for SAFE_READ monitoring to record the ACK outcome before
checking counters in `testSafeReadOneRSComplex` and
`testSafeReadModeReply`.

## Verification

- Before the reader fix, all 24 cases reproduced the
`ClassCastException` seen in [Ubuntu / Java 17
CI](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/46069438883/job/140742690311).
- On macOS with Java 11, all 360 `AssuredReplicationServerTest` cases
and all 14 `AssuredReplicationPluginTest` cases passed. This includes
all 24 `testSafeDataFromRS` cases.
2 files modified
78 ■■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java 2 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/server/AssuredReplicationServerTest.java 76 ●●●●● diff | view | raw | blame | history