hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-18022: Refine the error message issued with TableNotFoundException when expected table is not the same as the one fetched from meta
Date Thu, 29 Jun 2017 22:07:08 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 3dcb03947 -> 2db99eb74


HBASE-18022: Refine the error message issued with TableNotFoundException when expected table
is not the same as the one fetched from meta

Signed-off-by: Michael Stack <stack@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2db99eb7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2db99eb7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2db99eb7

Branch: refs/heads/branch-2
Commit: 2db99eb74a5f6ce01d991650a61f9dbdd44249c7
Parents: 3dcb039
Author: Xiang Li <waterlx@gmail.com>
Authored: Thu May 11 00:36:44 2017 +0800
Committer: Michael Stack <stack@apache.org>
Committed: Thu Jun 29 15:07:01 2017 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/client/ConnectionImplementation.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2db99eb7/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
index 71b0bb3..44974cb 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
@@ -859,8 +859,9 @@ class ConnectionImplementation implements ClusterConnection, Closeable
{
         // possible we got a region of a different table...
         if (!regionInfo.getTable().equals(tableName)) {
           throw new TableNotFoundException(
-                "Table '" + tableName + "' was not found, got: " +
-                regionInfo.getTable() + ".");
+            "Region of '" + regionInfo.getRegionNameAsString() + "' is expected in the table
of '" + tableName + "', " +
+            "but hbase:meta says it is in the table of '" + regionInfo.getTable() + "'. "
+
+            "hbase:meta might be damaged.");
         }
         if (regionInfo.isSplit()) {
           throw new RegionOfflineException("the only available region for" +


Mime
View raw message