Update the org.opends.server.synchronization.UpdateOperationTest.getEntryUUID method
to fix the timeout mechanism so that this methods never hang forever in case of problem
but instead throw an Exception.
A count mechanism was implemented but the count variable was never decremented.
Issue Number 1110
| | |
| | | } |
| | | |
| | | /** |
| | | * Check that the entry with the given dn has the given valueString value |
| | | * for the given attrTypeStr attribute type. |
| | | * Get the entryUUID for a given DN. |
| | | * |
| | | * @throws Exception if the entry does not exist or does not have |
| | | * an entryUUID. |
| | | */ |
| | | private String getEntryUUID(DN dn) throws Exception |
| | | { |
| | |
| | | { |
| | | LockManager.unlock(dn, lock); |
| | | } |
| | | count --; |
| | | } |
| | | if (found == null) |
| | | throw new Exception("Entry: " + dn + " Could not be found."); |
| | | return found; |
| | | } |
| | | |