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

Mikhail Bautin commented on HBASE-4162:
---------------------------------------

Is it a good idea to be aggressive about deleting tables if they already exist? 
If this function is used in production, this could result in a data loss if 
something goes wrong.

> Fix TestHRegionInfo.testGetSetOfHTD: delete /tmp/hbase-<username> if it 
> already exists.
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-4162
>                 URL: https://issues.apache.org/jira/browse/HBASE-4162
>             Project: HBase
>          Issue Type: Test
>    Affects Versions: 0.92.0, 0.94.0
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>            Priority: Minor
>              Labels: test-patch
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: 
> 0001-Fixing-TestHRegionInfo.testGetSetOfHTD-by-removing-t.patch, 
> 0001-rev-2-of-fixing-TestHRegionInfo.testGetSetOfHTD-by-r.patch, 4162.txt
>
>
> Fix TestHRegionInfo.testGetSetOfHTD: delete /tmp/hbase-<username> if it 
> already exists. Otherwise, the directory is not created and the unit test 
> fails trying to compare stale data from the previous test run to what it 
> expects to be there.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to