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

Valery Kharseko
8 hours ago ded55f7c56af085886768fe8e21961c359b2cd29
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Wednesday, November 25, 2026 07:20 +0100
committer GitHub <noreply@github.com>
Wednesday, November 25, 2026 07:20 +0100
commitded55f7c56af085886768fe8e21961c359b2cd29
tree 2cf511170e74bab40ff1dafb945ea4288cd0ca8e tree | zip | gz
parent 17f7f07e9af3c481f345df913157191eac3a7d8d view | diff
Wait for replica registration before starting test imports (#1328)

## Summary

`ReplayDuringImportTest` could send `InitializeTargetMsg` as soon as the
broker reported a reconnect. The replication server could still be
registering the replica and reject the message because it had no route
to the target. The import timed out in the [Ubuntu / JDK 21 job for PR
#1316](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45351125404/job/138297669225#step:16:53327).

Wait for the target to appear in the replication server's routing table
before publishing the request in `startImportInto()`.

## Verification

- With a temporary 500 ms registration delay, 9 of 28 cases failed on
`master`. All 28 passed with the fix and the same delay.
- All 28 cases also passed in a normal Maven Failsafe run of
`ReplayDuringImportTest` on JDK 21.
1 files modified
6 ■■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/ReplayDuringImportTest.java 6 ●●●●● diff | view | raw | blame | history