You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "xufeng (JIRA)" <ji...@apache.org> on 2012/05/02 15:22:54 UTC

[jira] [Commented] (HBASE-5894) Delete table failed but HBaseAdmin#deletetable report it as success

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

xufeng commented on HBASE-5894:
-------------------------------

@Ted
>>If a test can be added to verify the fix, that would be nice.

In fact,I found this issue in TestLogRolling in 90 version.

One day the test be killed,I tracked it and found that it timeout in deleteTable() becauseof the dfs problem.

I think that it is hard to add the new test to verify the fix,because it will cost long time, the test will be killed or timeout(if we add @Test(timeout = 120000)).

Maybe I am wrong,Can you suggest to me?
                
> Delete table failed but HBaseAdmin#deletetable report it as success
> -------------------------------------------------------------------
>
>                 Key: HBASE-5894
>                 URL: https://issues.apache.org/jira/browse/HBASE-5894
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.7, 0.92.2, 0.94.0
>         Environment: all versions
>            Reporter: xufeng
>            Assignee: xufeng
>            Priority: Minor
>         Attachments: HBASE-5894_90_patch_v1.patch, HBASE-5894_90_patch_v1_surefire-report.html, HBASE-5894_92_patch_v1.patch, HBASE-5894_92_patch_v1_surefire-report.html, HBASE-5894_94_patch_v1.patch, HBASE-5894_94_patch_v1_surefire-report.html, HBASE-5894_trunk_patch_v1.patch, HBASE-5894_trunk_patch_v1_surefire-report.html, HBASE-5894_trunk_patch_v2.patch, HBASE-5894_trunk_patch_v2_surefire-report.html
>
>
> Reproduce this issue by following steps:
> For reproduce it I add this code in DeleteTableHandler#handleTableOperation():
> {noformat}
>       LOG.debug("Deleting region " + region.getRegionNameAsString() +
>         " from META and FS");
> 	  +if (true) {
> 	  +  throw new IOException("ERROR");
> 	  +}
>       // Remove region from META
>       MetaEditor.deleteRegion(this.server.getCatalogTracker(), region);
> {noformat}
> step1:create a table and disable it.
> step2:delete it by HBaseAdmin#deleteTable() API.
> result:after lone time, The log say the Table has been deleted, but in fact if we do "list" in shell,the table also exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira