| | |
| | | { |
| | | case IMPORT_ERROR_MESSAGE_BAD_REMOTE: |
| | | msg = NOTE_ERR_FULL_UPDATE_IMPORT_FRACTIONAL_BAD_REMOTE.get( |
| | | getBaseDNString(), Integer.toString(ieCtx.getImportSource())); |
| | | getBaseDNString(), ieCtx.getImportSource()); |
| | | break; |
| | | case IMPORT_ERROR_MESSAGE_REMOTE_IS_FRACTIONAL: |
| | | msg = NOTE_ERR_FULL_UPDATE_IMPORT_FRACTIONAL_REMOTE_IS_FRACTIONAL.get( |
| | | getBaseDNString(), Integer.toString(ieCtx.getImportSource())); |
| | | getBaseDNString(), ieCtx.getImportSource()); |
| | | break; |
| | | } |
| | | ieCtx.setException(new DirectoryException(UNWILLING_TO_PERFORM, msg)); |
| | |
| | | if (target == RoutableMsg.ALL_SERVERS && fractionalConfig.isFractional()) |
| | | { |
| | | LocalizableMessage msg = NOTE_ERR_FRACTIONAL_FORBIDDEN_FULL_UPDATE_FRACTIONAL.get( |
| | | getBaseDNString(), Integer.toString(getServerId())); |
| | | getBaseDNString(), getServerId()); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, msg); |
| | | } |
| | | |
| | |
| | | } catch (TimeoutException ex) |
| | | { |
| | | // This exception may only be raised if assured replication is enabled |
| | | logger.error(NOTE_DS_ACK_TIMEOUT.get(getBaseDNString(), |
| | | Long.toString(getAssuredTimeout()), msg)); |
| | | logger.error(NOTE_DS_ACK_TIMEOUT.get(getBaseDNString(), getAssuredTimeout(), msg)); |
| | | } |
| | | } |
| | | |
| | |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = ERR_INVALID_IMPORT_SOURCE.get( |
| | | getBaseDNString(), Integer.toString(getServerId()), |
| | | sourceString, stackTraceToSingleLineString(e)); |
| | | getBaseDNString(), getServerId(), sourceString, stackTraceToSingleLineString(e)); |
| | | throw new DirectoryException(ResultCode.OTHER, message, e); |
| | | } |
| | | |
| | | LocalizableMessage message = ERR_INVALID_IMPORT_SOURCE.get(getBaseDNString(), |
| | | Integer.toString(getServerId()), Integer.toString(source), ""); |
| | | LocalizableMessage message = ERR_INVALID_IMPORT_SOURCE.get( |
| | | getBaseDNString(), getServerId(), source, ""); |
| | | throw new DirectoryException(ResultCode.OTHER, message); |
| | | } |
| | | |