[ 
https://issues.apache.org/jira/browse/HBASE-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926685#action_12926685
 ] 

stack commented on HBASE-3079:
------------------------------

This is way wrong (I'm trying to add a row on a column family that doesn't 
exist):

{code}
hbase(main):002:0> describe 'a'
DESCRIPTION                                                                     
                                                                                
           ENABLED                                                              
                         
 {NAME => 'a', FAMILIES => [{NAME => 'b', BLOOMFILTER => 'NONE', 
REPLICATION_SCOPE => '0', COMPRESSION => 'NONE', VERSIONS => '3', TTL => 
'2147483647', BLOCKSIZE => '6553 true                                           
                                               
 6', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}                              
                                                                                
                                                                                
                         
1 row(s) in 0.3880 seconds

hbase(main):003:0> put 'a', 'a', 'c:c', 'd'




ERROR: java.io.IOException: java.io.IOException: java.io.IOException: 
java.lang.AssertionError
        at 
org.apache.hadoop.hbase.regionserver.HRegion.doMiniBatchPut(HRegion.java:1425)
        at org.apache.hadoop.hbase.regionserver.HRegion.put(HRegion.java:1366)
        at 
org.apache.hadoop.hbase.regionserver.HRegionServer.multi(HRegionServer.java:2415)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        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:561)
        at 
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1025)
{code}



> 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