Shell displaying uninformative exceptions
-----------------------------------------

                 Key: HBASE-3079
                 URL: https://issues.apache.org/jira/browse/HBASE-3079
             Project: HBase
          Issue Type: Bug
          Components: shell
    Affects Versions: 0.89.20100924
            Reporter: Jonathan Gray
             Fix For: 0.90.0


The shell seems to hang longer than the normal client and then display 
uninformative messages when doing wrong things.

For example, inserting into a non-existing family or reading from a disabled 
table.  I believe in both these cases, HTable will throw informative exceptions 
like InvalidFamilyException and TableDisabledException (need to confirm exactly 
what it does).

But in the shell, I get things like:

Inserting to a family that does not exist:
{noformat}
ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedException: Still had 1 
puts left after retrying 7 times.
{noformat}

Reading from a disabled table (this takes a long time before anything is 
displayed):
{noformat}

ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to 
contact region server 10.0.0.4:62505 for region 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a., row '', but failed 
after 7 attempts.
Exceptions:
org.apache.hadoop.hbase.NotServingRegionException: 
org.apache.hadoop.hbase.NotServingRegionException: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
        at 
org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2221)
        at 
org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1812)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:557)
        at 
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1007)

org.apache.hadoop.hbase.client.RegionOfflineException: region offline: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
org.apache.hadoop.hbase.client.RegionOfflineException: region offline: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
org.apache.hadoop.hbase.client.RegionOfflineException: region offline: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
org.apache.hadoop.hbase.client.RegionOfflineException: region offline: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
org.apache.hadoop.hbase.client.RegionOfflineException: region offline: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
org.apache.hadoop.hbase.client.RegionOfflineException: region offline: 
sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to