| | |
| | | { |
| | | // Continue with the next change but the servers could now become |
| | | // inconsistent. |
| | | // TODO : REPAIR : Should let the repair tool know about this |
| | | Message message = ERR_LOOP_REPLAYING_OPERATION.get(op.toString()); |
| | | // Let the repair tool know about this. |
| | | Message message = ERR_LOOP_REPLAYING_OPERATION.get(op.toString(), |
| | | op.getErrorMessage().toString()); |
| | | logError(message); |
| | | numUnresolvedNamingConflicts.incrementAndGet(); |
| | | |
| | |
| | | * An Exception happened during the replay process. |
| | | * Continue with the next change but the servers will now start |
| | | * to be inconsistent. |
| | | * TODO : REPAIR : Should let the repair tool know about this |
| | | * Let the repair tool know about this. |
| | | */ |
| | | Message message = ERR_EXCEPTION_REPLAYING_OPERATION.get( |
| | | stackTraceToSingleLineString(e), op.toString()); |
| | |
| | | else |
| | | { |
| | | // The other type of errors can not be caused by naming conflicts. |
| | | // TODO log a message for the repair tool. |
| | | // Log a message for the repair tool. |
| | | Message message = ERR_ERROR_REPLAYING_OPERATION.get( |
| | | op.toString(), ctx.getChangeNumber().toString(), |
| | | result.toString(), op.getErrorMessage().toString()); |
| | | logError(message); |
| | | return true; |
| | | } |
| | | } |
| | |
| | | else |
| | | { |
| | | // The other type of errors can not be caused by naming conflicts. |
| | | // TODO log a message for the repair tool. |
| | | // Log a message for the repair tool. |
| | | Message message = ERR_ERROR_REPLAYING_OPERATION.get( |
| | | op.toString(), ctx.getChangeNumber().toString(), |
| | | result.toString(), op.getErrorMessage().toString()); |
| | | logError(message); |
| | | return true; |
| | | } |
| | | } |
| | |
| | | else |
| | | { |
| | | // The other type of errors can not be caused by naming conflicts. |
| | | // TODO log a message for the repair tool. |
| | | // Log a message for the repair tool. |
| | | Message message = ERR_ERROR_REPLAYING_OPERATION.get( |
| | | op.toString(), ctx.getChangeNumber().toString(), |
| | | result.toString(), op.getErrorMessage().toString()); |
| | | logError(message); |
| | | return true; |
| | | } |
| | | } |
| | |
| | | else |
| | | { |
| | | // The other type of errors can not be caused by naming conflicts. |
| | | // TODO log a message for the repair tool. |
| | | // log a message for the repair tool. |
| | | Message message = ERR_ERROR_REPLAYING_OPERATION.get( |
| | | op.toString(), ctx.getChangeNumber().toString(), |
| | | result.toString(), op.getErrorMessage().toString()); |
| | | logError(message); |
| | | return true; |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | // log error and information for the REPAIR tool. |
| | | MessageBuilder mb = new MessageBuilder(); |
| | | mb.append(ERR_CANNOT_RENAME_CONFLICT_ENTRY.get()); |
| | | mb.append(String.valueOf(entryDN)); |
| | |
| | | mb.append(" "); |
| | | mb.append(String.valueOf(op.getResultCode())); |
| | | logError(mb.toMessage()); |
| | | // TODO : log error and information for the REPAIR tool. |
| | | } |
| | | } catch (DirectoryException e) |
| | | { |
| | | // log errror and information for the REPAIR tool. |
| | | MessageBuilder mb = new MessageBuilder(); |
| | | mb.append(ERR_EXCEPTION_RENAME_CONFLICT_ENTRY.get()); |
| | | mb.append(String.valueOf(entryDN)); |
| | |
| | | mb.append(" "); |
| | | mb.append(e.getLocalizedMessage()); |
| | | logError(mb.toMessage()); |
| | | // TODO log errror and information for the REPAIR tool. |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | if (newOp.getResultCode() != ResultCode.SUCCESS) |
| | | { |
| | | // log information for the repair tool. |
| | | MessageBuilder mb = new MessageBuilder(); |
| | | mb.append(ERR_CANNOT_RENAME_CONFLICT_ENTRY.get()); |
| | | mb.append(String.valueOf(dn)); |
| | |
| | | mb.append(" "); |
| | | mb.append(String.valueOf(newOp.getResultCode())); |
| | | logError(mb.toMessage()); |
| | | /* |
| | | * TODO : REPAIR should log information for the repair tool. |
| | | */ |
| | | } |
| | | } |
| | | |
| | |
| | | ModifyOperation newOp = conn.processModify(currentDN, mods); |
| | | if (newOp.getResultCode() != ResultCode.SUCCESS) |
| | | { |
| | | // Log information for the repair tool. |
| | | MessageBuilder mb = new MessageBuilder(); |
| | | mb.append(ERR_CANNOT_ADD_CONFLICT_ATTRIBUTE.get()); |
| | | mb.append(String.valueOf(op)); |
| | | mb.append(" "); |
| | | mb.append(String.valueOf(newOp.getResultCode())); |
| | | logError(mb.toMessage()); |
| | | /* |
| | | * TODO : REPAIR should log information for the repair tool. |
| | | */ |
| | | } |
| | | } |
| | | |