28 Nov, 2013

3 commits


27 Nov, 2013

9 commits


26 Nov, 2013

6 commits


23 Nov, 2013

3 commits


22 Nov, 2013

7 commits

  • git-svn-id: https://svn.forgerock.org/opendj/trunk@9832 41b1ffd8-f28e-4786-ab96-9950f0a78031
    violette
     
  • ExternalChangeLogTest.java:
    In getAttributeValue(), added null check.
    Removed getAttributeValueOrNull() replaced by getAttributeValue().
    Removed checkPossibleValues(), replaced by checkValue().
    In readLastCookie(), called getAttributeValue() and removed useless catch.
    Extracted method checkAttributeValue().Used Assertions.as() - thanks Nicolas for the trick.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9831 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • ReplicationDB.java:
    Always unlock the readLock when no cursor is held. Fix is similar to r9542 for DraftCNDB.DraftCNDBCursor .
    Do not release read lock twice.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9830 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • ReplicationDB.java:
    Always unlock the readLock when no cursor is held. Fix is similar to r9542 for DraftCNDB.DraftCNDBCursor .
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9829 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • …ngeNumberIndexDB to ChangelogDB
    
    
    Properly implemented the medium consistency point algorithm with heartbeats and replicas going offline.
    
    
    ChangeNumberIndexer.java:
    Added replicasOffline instance field.
    Added methods replicaOffline() and removeCursor().
    In moveForwardMediumConsistencyPoint(), updated the code to cater for offline replica.
    
    ChangeNumberIndexerTest.java:
    Added new tests for heartbeat and replica going offline.
    
    
    MultiDomainServerState.java, ServerState.java:
    Added removeCSN().
    
    MultiDomainServerStateTest.java, ServerStateTest.java:
    Added more tests.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9828 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • …ngeNumberIndexDB to ChangelogDB
    
    
    Properly implemented the medium consistency point algorithm.
    
    
    ChangeNumberIndexer.java:
    Renamed instance field previousCookie to mediumConsistencyRUV and mediumConsistencyPoint to lastSeenUpdates.
    Added mediumConsistencyCSN instance field.
    Changed newCursors from ConcurrentMap<Integer, DN> to ConcurrentMap<CSN, DN>.
    In tryNotify(), removed CSN parameter.
    Added methods canMoveForwardMediumConsistencyPoint() and moveForwardMediumConsistencyPoint().
    
    
    ChangeNumberIndexerTest.java:
    Updated to reflect how the medium consistency point algorithm should work.
    
    MultiDomainServerState.java:
    Renamed get() to getCSN().
    
    ServerState.java
    In update(), updated javadocs + renamed local variables.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9827 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • Extracted methods findFirstNonSpaceCharPosition(), base64Decode() and decodeDN().
    In readAttribute(), moved common code out of if/else branches.
    Used early exits.
    Removed useless parenthesis.
    Condensed code and comments on one line where possible.
    
    LDIFWriter.java:
    Extracted methods writeDN(), writeAttribute().
    In writeEntries(), simplified the code.
    In writeModifyChangeRecord(), removed useless switch statement.
    In appendLDIFSeparatorAndValue(), removed duplicate code.
    Removed useless parenthesis.
    Comments => javadocs
    Condensed code and comments on one line where possible.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9826 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

21 Nov, 2013

8 commits


20 Nov, 2013

1 commit


19 Nov, 2013

3 commits