HBASE-18932 Backup masking exception in a scenario and though it fails , it shows success message

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Amit 2017-10-04 14:54:35 +05:30 committed by tedyu
parent 35094bf4d5
commit e138ea6a59
1 changed files with 3 additions and 2 deletions

View File

@ -221,7 +221,7 @@ public class IncrementalTableBackupClient extends TableBackupClient {
// fail the overall backup and return
failBackup(conn, backupInfo, backupManager, e, "Unexpected Exception : ",
BackupType.INCREMENTAL, conf);
return;
throw new IOException(e);
}
// case INCREMENTAL_COPY:
@ -237,7 +237,7 @@ public class IncrementalTableBackupClient extends TableBackupClient {
String msg = "Unexpected exception in incremental-backup: incremental copy " + backupId;
// fail the overall backup and return
failBackup(conn, backupInfo, backupManager, e, msg, BackupType.INCREMENTAL, conf);
return;
throw new IOException(e);
}
// case INCR_BACKUP_COMPLETE:
// set overall backup status: complete. Here we make sure to complete the backup.
@ -266,6 +266,7 @@ public class IncrementalTableBackupClient extends TableBackupClient {
} catch (IOException e) {
failBackup(conn, backupInfo, backupManager, e, "Unexpected Exception : ",
BackupType.INCREMENTAL, conf);
throw new IOException(e);
}
}