Skip to content

Commit

Permalink
HBASE-22157 Include the cause when constructing RestoreSnapshotExcept…
Browse files Browse the repository at this point in the history
…ion in restoreSnapshot

Signed-off-by: Zheng Hu <openinx@gmail.com>
  • Loading branch information
Apache9 committed Apr 4, 2019
1 parent 129d806 commit 3e81528
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -1942,7 +1942,7 @@ private CompletableFuture<Void> restoreSnapshot(String snapshotName, TableName t
String msg = String msg =
"Restore snapshot=" + snapshotName + " failed. Rollback to snapshot=" + "Restore snapshot=" + snapshotName + " failed. Rollback to snapshot=" +
failSafeSnapshotSnapshotName + " succeeded."; failSafeSnapshotSnapshotName + " succeeded.";
future.completeExceptionally(new RestoreSnapshotException(msg)); future.completeExceptionally(new RestoreSnapshotException(msg, err2));
} }
}); });
} else { } else {
Expand Down
Expand Up @@ -65,7 +65,7 @@ public HBaseSnapshotException(String msg, Throwable cause, SnapshotDescription d
* @param message description of what caused the failure * @param message description of what caused the failure
* @param e root cause * @param e root cause
*/ */
public HBaseSnapshotException(String message, Exception e) { public HBaseSnapshotException(String message, Throwable e) {
super(message, e); super(message, e);
} }


Expand Down
Expand Up @@ -39,7 +39,7 @@ public RestoreSnapshotException(String msg) {
super(msg); super(msg);
} }


public RestoreSnapshotException(String message, Exception e) { public RestoreSnapshotException(String message, Throwable e) {
super(message, e); super(message, e);
} }
} }

0 comments on commit 3e81528

Please sign in to comment.