Skip to content

Commit 0918c2e

Browse files
authored
Fix intermittent GenerationIdTest.testMultiRS by re-advertising genId on change (#725)
1 parent 06e91a1 commit 0918c2e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

opendj-server-legacy/src/main/java/org/opends/server/replication/server/ReplicationServerDomain.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2010 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyrighted 2026 3A Systems, LLC.
1617
*/
1718
package org.opends.server.replication.server;
1819

@@ -1722,6 +1723,14 @@ public long changeGenerationId(long generationId)
17221723

17231724
this.generationId = generationId;
17241725
this.generationIdSavedStatus = false;
1726+
1727+
// generationId gossip is purely event-driven: it only travels in the
1728+
// topology messages sent on connect/disconnect/status events. Re-advertise
1729+
// on every real transition so a peer that missed one converges on the next.
1730+
if (generationId > 0)
1731+
{
1732+
sendTopoInfoToAll();
1733+
}
17251734
}
17261735
return oldGenerationId;
17271736
}

0 commit comments

Comments
 (0)