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

Jean-Noel Rouvignac
04.19.2013 899a2d886b25770087baf5f64cc3be7cdc5c946d
OPENDJ-1190 (CR-2523) Under rare circumstances the DS replication recovery thread (RSUpdater) can spin


This change is linked to the misbehaving RSUpdater thread which (wrongly):
- could be started multiple times
- would not shutdown willingly when the server is shutting down
- would try to look for replay operations in the future



LDAPReplicationDomain.java:
In now(), ensured now() will always come last with isNewerThan() test.
1 files modified
4 ■■■ changed files
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java 4 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -4504,7 +4504,9 @@
  private static CSN now()
  {
    return new CSN(TimeThread.getTime(), 0, 0);
    // ensure now() will always come last with isNewerThan() test,
    // even though the timestamp, or the timestamp and seqnum would be the same
    return new CSN(TimeThread.getTime(), Integer.MAX_VALUE, Integer.MAX_VALUE);
  }
  /**