From 91542dc96d9d12e792722723b38177e1c8160ce3 Mon Sep 17 00:00:00 2001 From: guluo Date: Sat, 1 Jun 2024 23:11:48 +0800 Subject: [PATCH] HBASE-28619 Fix the inaccurate message when snapshot doesn't exist (#5948) Signed-off-by: Duo Zhang (cherry picked from commit 77ae12b8a22d21b0da0cb9e8a7d724db90d668fa) --- .../org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java index f8fb625eab48..9f037186415e 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java @@ -2092,8 +2092,8 @@ public CompletableFuture restoreSnapshot(String snapshotName, boolean take } } if (tableName == null) { - future.completeExceptionally(new RestoreSnapshotException( - "Unable to find the table name for snapshot=" + snapshotName)); + future.completeExceptionally( + new RestoreSnapshotException("The snapshot " + snapshotName + " does not exist.")); return; } final TableName finalTableName = tableName;