You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars George (JIRA)" <ji...@apache.org> on 2009/11/26 10:24:39 UTC

[jira] Created: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Add useful helpers to HBaseTestingUtility.java
----------------------------------------------

                 Key: HBASE-2013
                 URL: https://issues.apache.org/jira/browse/HBASE-2013
             Project: Hadoop HBase
          Issue Type: Test
            Reporter: Lars George
            Assignee: Lars George
            Priority: Trivial


As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Lars George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars George updated HBASE-2013:
-------------------------------

    Attachment: HBASE-2013-v2.patch

Patch HBASE-2013-v2.patch is adding the missing TestZookeeper.java change. 

Please note: I did not merge the test into this patch as it is not stable. Depending on how the test cluster handles the closing of a region the test may succeed or fail. I do not think this is useful in a general context. I added the test only so it is not lost and may serve as a template for other tests.

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>         Attachments: HBASE-2013-v2.patch, HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783951#action_12783951 ] 

Jean-Daniel Cryans commented on HBASE-2013:
-------------------------------------------

TestZooKeeper won't compile with the patch (because getHbaseCluster is renamed) and also could you merge both files? Do "svn add src/java/a/o/o/etc" then "svn diff" will show your file in the diff. Another nitpick would be to check the new test, it has some very large lines. Rest looks good.

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>         Attachments: HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Lars George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars George updated HBASE-2013:
-------------------------------

    Attachment:     (was: TestTableMapReduceScanFail.java)

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>         Attachments: HBASE-2013-v2.patch, HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Daniel Cryans updated HBASE-2013:
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.21.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed to trunk (the v2 patch). Thanks Lars!

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>             Fix For: 0.21.0
>
>         Attachments: HBASE-2013-v2.patch, HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Lars George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars George updated HBASE-2013:
-------------------------------

    Attachment: TestTableMapReduceScanFail.java

New version of separate test class with proper formatting. Should not be included into repo (or permanently disabled, but that seems not worth the effort and is confusing). Just for reference.

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>         Attachments: HBASE-2013-v2.patch, HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Lars George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars George updated HBASE-2013:
-------------------------------

    Attachment: TestTableMapReduceScanFail.java
                HBASE-2013.patch

Patch adds helper methods to utility to allow removal of regions during tests. Also attached is the test itself to show how it is used. This test sometimes succeeds, sometimes it fails depending on how quickly the region is recovered. May serve some purpose to some other tests etc.

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>         Attachments: HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-2013) Add useful helpers to HBaseTestingUtility.java

Posted by "Lars George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars George updated HBASE-2013:
-------------------------------

    Status: Patch Available  (was: Open)

> Add useful helpers to HBaseTestingUtility.java
> ----------------------------------------------
>
>                 Key: HBASE-2013
>                 URL: https://issues.apache.org/jira/browse/HBASE-2013
>             Project: Hadoop HBase
>          Issue Type: Test
>            Reporter: Lars George
>            Assignee: Lars George
>            Priority: Trivial
>         Attachments: HBASE-2013-v2.patch, HBASE-2013.patch, TestTableMapReduceScanFail.java
>
>
> As discussed with Stack, I added helpers to HBaseTestingUtility because I did write a unit test that would allow to see what happens when a region fails during an MR scan of a table. There methods may be useful to others.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.