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:
parent
35094bf4d5
commit
e138ea6a59
|
@ -221,7 +221,7 @@ public class IncrementalTableBackupClient extends TableBackupClient {
|
||||||
// fail the overall backup and return
|
// fail the overall backup and return
|
||||||
failBackup(conn, backupInfo, backupManager, e, "Unexpected Exception : ",
|
failBackup(conn, backupInfo, backupManager, e, "Unexpected Exception : ",
|
||||||
BackupType.INCREMENTAL, conf);
|
BackupType.INCREMENTAL, conf);
|
||||||
return;
|
throw new IOException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// case INCREMENTAL_COPY:
|
// case INCREMENTAL_COPY:
|
||||||
|
@ -237,7 +237,7 @@ public class IncrementalTableBackupClient extends TableBackupClient {
|
||||||
String msg = "Unexpected exception in incremental-backup: incremental copy " + backupId;
|
String msg = "Unexpected exception in incremental-backup: incremental copy " + backupId;
|
||||||
// fail the overall backup and return
|
// fail the overall backup and return
|
||||||
failBackup(conn, backupInfo, backupManager, e, msg, BackupType.INCREMENTAL, conf);
|
failBackup(conn, backupInfo, backupManager, e, msg, BackupType.INCREMENTAL, conf);
|
||||||
return;
|
throw new IOException(e);
|
||||||
}
|
}
|
||||||
// case INCR_BACKUP_COMPLETE:
|
// case INCR_BACKUP_COMPLETE:
|
||||||
// set overall backup status: complete. Here we make sure to complete the backup.
|
// 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) {
|
} catch (IOException e) {
|
||||||
failBackup(conn, backupInfo, backupManager, e, "Unexpected Exception : ",
|
failBackup(conn, backupInfo, backupManager, e, "Unexpected Exception : ",
|
||||||
BackupType.INCREMENTAL, conf);
|
BackupType.INCREMENTAL, conf);
|
||||||
|
throw new IOException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue