You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2018/04/26 04:24:00 UTC

[jira] [Resolved] (HBASE-18842) The hbase shell clone_snaphost command returns bad error message

     [ https://issues.apache.org/jira/browse/HBASE-18842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Busbey resolved HBASE-18842.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.5
                   2.0.1
                   1.3.3
                   1.2.7
                   1.5.0
                   2.1.0
     Release Note: 
<!-- markdown -->

When attempting to clone a snapshot but using a namespace that does not exist, the HBase shell will now correctly report the exception as caused by the passed namespace. Previously, the shell would report that the problem was an unknown namespace but it would claim the user provided table name was not found as a namespace. Both before and after this change the shell properly used the passed namespace to attempt to handle the request.

> The hbase shell clone_snaphost command returns bad error message
> ----------------------------------------------------------------
>
>                 Key: HBASE-18842
>                 URL: https://issues.apache.org/jira/browse/HBASE-18842
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Thoralf Gutierrez
>            Assignee: Thoralf Gutierrez
>            Priority: Minor
>             Fix For: 3.0.0, 2.1.0, 1.5.0, 1.2.7, 1.3.3, 2.0.1, 1.4.5
>
>         Attachments: 0001-HBASE-18842-Fix-unknown-namespace-message-in-clone_s.patch, 0002-HBASE-18842-Fix-unknown-namespace-message-in-clone_s.patch, 0003-HBASE-18842-Fix-unknown-namespace-message-in-clone_s.patch, 0004-HBASE-18842-Fix-unknown-namespace-message-in-clone_s.patch, 0005-HBASE-18842-Fix-unknown-namespace-message-in-clone_s.patch
>
>
> When you call the hbase shell clone_snapshot command with a target namespace that doesn't exist, you get an error message, but the variable used to identify the inexistent namespace is wrong:
> {noformat}
> hbase(main):001:0> clone_snapshot 'someSnapshotName', 'someNamespaceName:someTableName'
> ERROR: Unknown namespace someSnapshotName!
> Create a new table by cloning the snapshot content.
> There're no copies of data involved.
> And writing on the newly created table will not influence the snapshot data.
> Examples:
>   hbase> clone_snapshot 'snapshotName', 'tableName'
>   hbase> clone_snapshot 'snapshotName', 'namespace:tableName'
> {noformat}
> It should rather say:
> {noformat}
> ERROR: Unknown namespace someNamespaceName!
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)