hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/8] hbase git commit: HBASE-13532 Make UnknownScannerException less scary by giving more information in the exception string. (Apekshit)
Date Tue, 07 Jun 2016 23:06:49 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 8e132aa09 -> 95694adc5


HBASE-13532 Make UnknownScannerException less scary by giving more information in the exception
string. (Apekshit)

Signed-off-by: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Amending-Author: Andrew Purtell <apurtell@apache.org>


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

Branch: refs/heads/0.98
Commit: fb1995f58644ff55e6ea4f3ebb56bf807cad480b
Parents: 8e132aa
Author: Apekshit <apeksharma@gmail.com>
Authored: Tue May 10 19:11:51 2016 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue Jun 7 10:53:56 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/regionserver/HRegionServer.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fb1995f5/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index 072ca2b..a66776c 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -3220,9 +3220,14 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
       if (request.hasScannerId()) {
         rsh = scanners.get(scannerName);
         if (rsh == null) {
-          LOG.info("Client tried to access missing scanner " + scannerName);
+          LOG.warn("Client tried to access missing scanner " + scannerName);
           throw new UnknownScannerException(
-            "Name: " + scannerName + ", already closed?");
+            "Unknown scanner '" + scannerName + "'. This can happen due to any of the following
"
+                + "reasons: a) Scanner id given is wrong, b) Scanner lease expired because
of "
+                + "long wait between consecutive client checkins, c) Server may be closing
down, "
+                + "d) RegionServer restart during upgrade.\nIf the issue is due to reason
(b), a "
+                + "possible fix would be increasing the value of"
+                + "'hbase.client.scanner.timeout.period' configuration.");
         }
         scanner = rsh.s;
         HRegionInfo hri = scanner.getRegionInfo();


Mime
View raw message