This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 77ae12b8a22 HBASE-28619 Fix the inaccurate message when snapshot 
doesn't exist (#5948)
77ae12b8a22 is described below

commit 77ae12b8a22d21b0da0cb9e8a7d724db90d668fa
Author: guluo <lupeng_n...@qq.com>
AuthorDate: Sat Jun 1 23:11:48 2024 +0800

    HBASE-28619 Fix the inaccurate message when snapshot doesn't exist (#5948)
    
    Signed-off-by: Duo Zhang <zhang...@apache.org>
---
 .../main/java/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 5822657fd88..634f54faa63 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
@@ -2125,8 +2125,8 @@ class RawAsyncHBaseAdmin implements AsyncAdmin {
         }
       }
       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;

Reply via email to