hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19434) create_namespace command for existing namespace does not throw useful error message
Date Wed, 13 Dec 2017 23:48:00 GMT

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

Josh Elser commented on HBASE-19434:
------------------------------------

Also, are there other exceptions in which a similarly poor message is propagated?

> create_namespace command for existing namespace does not throw useful error message
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-19434
>                 URL: https://issues.apache.org/jira/browse/HBASE-19434
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Romil Choksi
>            Priority: Minor
>         Attachments: 19434.v1.txt
>
>
> create_namespace command for existing namespace does not throw an useful error message
> Here we try to call create_namespace command twice for same namespace, and attempt to
verify an error message
> from test console log
> {code}
> 2017-11-13 08:19:03,347|INFO|MainThread|hbase.py:191 - runShellCmds()|Writing commands
to file /hwqe/hadoopqe/artifacts/tmp-844452
> 2017-11-13 08:19:03,348|INFO|MainThread|hbase.py:194 - runShellCmds()| 'create_namespace
'testnamespace''
> 2017-11-13 08:19:03,348|INFO|MainThread|hbase.py:194 - runShellCmds()| 'create_namespace
'testnamespace''
> 2017-11-13 08:19:03,348|INFO|MainThread|hbase.py:194 - runShellCmds()| 'drop_namespace
'testnamespace''
> 2017-11-13 08:19:03,348|INFO|MainThread|hbase.py:198 - runShellCmds()|Done writing commands
to file. Will execute them now.
> 2017-11-13 08:19:03,348|INFO|MainThread|machine.py:145 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|RUNNING:
/usr/hdp/current/hbase-client/bin/hbase shell /hwqe/hadoopqe/artifacts/tmp-844452
> 2017-11-13 08:19:11,593|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|2017-11-13
08:19:11,592 INFO  [main] beanutils.FluentPropertyBeanIntrospector: Error when creating PropertyDescriptor
for public final void org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
Ignoring this property.
> 2017-11-13 08:19:11,628|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|2017-11-13
08:19:11,628 INFO  [main] impl.MetricsConfig: loaded properties from hadoop-metrics2-hbase.properties
> 2017-11-13 08:19:11,700|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|2017-11-13
08:19:11,700 INFO  [main] impl.MetricsSystemImpl: Scheduled Metric snapshot period at 10 second(s).
> 2017-11-13 08:19:11,700|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|2017-11-13
08:19:11,700 INFO  [main] impl.MetricsSystemImpl: HBase metrics system started
> 2017-11-13 08:19:12,655|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|Took
0.6500 seconds
> 2017-11-13 08:19:12,784|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|
> 2017-11-13 08:19:12,784|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|ERROR:
testnamespace
> 2017-11-13 08:19:12,784|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|
> 2017-11-13 08:19:12,784|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|Create
namespace; pass namespace name,
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|and
optionally a dictionary of namespace configuration.
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|Examples:
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|hbase>
create_namespace 'ns1'
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|hbase>
create_namespace 'ns1', {'PROPERTY_NAME'=>'PROPERTY_VALUE'}
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|
> 2017-11-13 08:19:12,785|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|Took
0.1284 seconds
> 2017-11-13 08:19:13,016|INFO|MainThread|machine.py:159 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|Took
0.2307 seconds
> 2017-11-13 08:19:13,541|INFO|MainThread|machine.py:184 - run()||GUID=29350822-e327-4a0d-97ec-fc8b0a7d1be2|Exit
Code: 0
> 2017-11-13 08:19:13,575|INFO|MainThread|conftest.py:241 - pytest_report_teststatus()|TEST
"test_ShellCreateNameSpace[CreateExistentNamespace]" FAILED in 10.22 seconds
> {code}



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

Mime
View raw message