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

Mike Drob commented on HBASE-19775:
-----------------------------------

yep, @josh is right about the oneliner style - it's much more ruby-esque.

{{cause = cause.getCause if cause.is_a? java.io.UncheckedIOException}}

can we add a test in {{hbase-shell/src/test/ruby/hbase/table_test.rb}}?

> hbase shell doesn't handle the exceptions that are wrapped in 
> java.io.UncheckedIOException
> ------------------------------------------------------------------------------------------
>
>                 Key: HBASE-19775
>                 URL: https://issues.apache.org/jira/browse/HBASE-19775
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 2.0.0-beta-1
>            Reporter: Sergey Soldatov
>            Assignee: Sergey Soldatov
>             Fix For: 2.0.0-beta-1
>
>         Attachments: HBASE-19775-branch-2.patch
>
>
> HBase shell doesn't have a notion of UncheckedIOException, so it may not 
> handle it correctly. For an example, if we scan not existing table the error 
> look weird:
> {noformat}
> hbase(main):001:0> scan 'a'
> ROW                                                                           
>               COLUMN+CELL
> ERROR: a
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to