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

Valery Kharseko
yesterday 3be885b70108e0efd3cd8508c1a0b6169a8003cd
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Monday, November 30, 2026 07:33 +0100
committer GitHub <noreply@github.com>
Monday, November 30, 2026 07:33 +0100
commit3be885b70108e0efd3cd8508c1a0b6169a8003cd
tree 12fbce6bfacd81558e81c74f70ac6712b0a2982a tree | zip | gz
parent 29a7662d10dede94fd8c022fafc082693dc44e13 view | diff
Wait for replication monitor counters in ProtocolWindowTest (#1348)

## Summary

Replace the fixed delay after filling the replication window with a
bounded `TestTimer` wait. Check `sent-updates` and `missing-changes` on
the same broker monitor entry and include both actual values if the
assertion fails. Keep the check that the broker receives all 120
changes.

The background monitor refresh can lag behind the test's original
two-second pause. The failure surfaced in the Maven build for #1311.
[Ubuntu / Java 17
job](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/46256902401/job/141327530619#step:16)

## Verification

- With the monitoring interval temporarily set to 12 seconds, reproduced
the original `missing-changes` assertion failure and verified that the
updated test passed at the same interval.
- With the default interval, all 16 targeted tests passed on macOS with
Java 17 across `ProtocolWindowTest`, `ReplicationDomainMonitorTest`, and
`ReplicationServerDomainMonitorTest`.
- `git diff --check` passed.
1 files modified
47 ■■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/replication/ProtocolWindowTest.java 47 ●●●●● diff | view | raw | blame | history