Fix for issue 2793 (backup incremental : unexpected behavior when specifying empty directory)
Update the code to execute a full backup when there is no base backup in the provided path. A message is logged informing of this fallback behavior.
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2008 Sun Microsystems, Inc. |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | |
| | | |
| | | |
| | |
| | | %d nodes evicted: %d BIN nodes stripped: %d |
| | | NOTICE_JEB_IMPORT_LDIF_EVICTION_DETECTED_190=Eviction detected after importing \ |
| | | %d entries |
| | | |
| | | MILD_WARN_BACKUPDB_INCREMENTAL_NOT_FOUND_DOING_NORMAL_191=Could not find any \ |
| | | backup in '%s'. A full backup will be executed |
| | |
| | | |
| | | SEVERE_ERR_LDAPCOMPARE_ERROR_READING_FILE_1668=An error occurred reading file \ |
| | | '%s'. Check that the file exists and that you have read access rights to \ |
| | | it. Details: %s |
| | | it. Details: %s |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | import org.opends.messages.Message; |
| | |
| | | } |
| | | */ |
| | | |
| | | baseBackup = getBackupInfo(backupDir, incrBaseID); |
| | | if (incrBaseID == null) |
| | | { |
| | | // No incremental backup ID: log a message informing that a backup |
| | | // could not be found and that a normal backup will be done. |
| | | incremental = false; |
| | | Message message = WARN_BACKUPDB_INCREMENTAL_NOT_FOUND_DOING_NORMAL.get( |
| | | backupDir.getPath()); |
| | | logError(message); |
| | | } |
| | | else |
| | | { |
| | | baseBackup = getBackupInfo(backupDir, incrBaseID); |
| | | } |
| | | } |
| | | |
| | | // Get information about the latest log file from the base backup. |