HBASE-22157 Include the cause when constructing RestoreSnapshotException in restoreSnapshot
Signed-off-by: Zheng Hu <openinx@gmail.com>
This commit is contained in:
parent
6837a76ba9
commit
7154f86b4b
@ -1936,7 +1936,7 @@ class RawAsyncHBaseAdmin implements AsyncAdmin {
|
||||
String msg =
|
||||
"Restore snapshot=" + snapshotName + " failed. Rollback to snapshot=" +
|
||||
failSafeSnapshotSnapshotName + " succeeded.";
|
||||
future.completeExceptionally(new RestoreSnapshotException(msg));
|
||||
future.completeExceptionally(new RestoreSnapshotException(msg, err2));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
@ -65,7 +65,7 @@ public class HBaseSnapshotException extends DoNotRetryIOException {
|
||||
* @param message description of what caused the failure
|
||||
* @param e root cause
|
||||
*/
|
||||
public HBaseSnapshotException(String message, Exception e) {
|
||||
public HBaseSnapshotException(String message, Throwable e) {
|
||||
super(message, e);
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ public class RestoreSnapshotException extends HBaseSnapshotException {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public RestoreSnapshotException(String message, Exception e) {
|
||||
public RestoreSnapshotException(String message, Throwable e) {
|
||||
super(message, e);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user