[
https://issues.apache.org/jira/browse/HBASE-19434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gavin updated HBASE-19434:
--------------------------
Comment: was deleted
(was: A comment with security level 'jira-users' was removed.)
> 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
> Assignee: Ted Yu
> Priority: Minor
> Fix For: 2.0.0-beta-1, 2.0.0
>
> 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
(v7.6.3#76005)