You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Aaron Kimball (JIRA)" <ji...@apache.org> on 2010/02/02 21:20:19 UTC

[jira] Created: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

Refactor Sqoop tests to support better ConnManager testing
----------------------------------------------------------

                 Key: MAPREDUCE-1445
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
             Project: Hadoop Map/Reduce
          Issue Type: Improvement
          Components: contrib/sqoop
            Reporter: Aaron Kimball
            Assignee: Aaron Kimball


Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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


[jira] Commented: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835079#action_12835079 ] 

Hudson commented on MAPREDUCE-1445:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #246 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/246/])
    . Refactor Sqoop tests to support better ConnManager testing. Contributed by Aaron Kimball.


> Refactor Sqoop tests to support better ConnManager testing
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-1445
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>             Fix For: 0.22.0
>
>         Attachments: MAPREDUCE-1445.patch
>
>
> Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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


[jira] Commented: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834615#action_12834615 ] 

Hadoop QA commented on MAPREDUCE-1445:
--------------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12434592/MAPREDUCE-1445.patch
  against trunk revision 910774.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 46 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-h3.grid.sp2.yahoo.net/325/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-h3.grid.sp2.yahoo.net/325/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-h3.grid.sp2.yahoo.net/325/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-h3.grid.sp2.yahoo.net/325/console

This message is automatically generated.

> Refactor Sqoop tests to support better ConnManager testing
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-1445
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>         Attachments: MAPREDUCE-1445.patch
>
>
> Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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


[jira] Updated: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

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

Aaron Kimball updated MAPREDUCE-1445:
-------------------------------------

    Attachment: MAPREDUCE-1445.patch

This patch takes the previous TestColumnTypes test and refactors it into an abstract class named ManagerCompatTest. This can be specialized on a per-ConnManager basis. The TestColumnTypes class is now the HSQLDB-based instantiation of ManagerCompatTest. This adds Oracle and MySQL-based tests as well.

The purpose of this patch is *not* to ensure that all databases import data in a byte-for-byte identical manner. Indeed, the datatypes supported by some databases are different than others. However, if a database supports some datatype, we must be able to verify that we can import it to HDFS in some recognizable representation. Therefore, there are a lot of hooks in ManagerCompatTest allowing subclasses to encode transformations from "canonical" expected results to the expected results particular to a database for some datatype.

> Refactor Sqoop tests to support better ConnManager testing
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-1445
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>         Attachments: MAPREDUCE-1445.patch
>
>
> Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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


[jira] Updated: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

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

Aaron Kimball updated MAPREDUCE-1445:
-------------------------------------

    Status: Patch Available  (was: Open)

> Refactor Sqoop tests to support better ConnManager testing
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-1445
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>         Attachments: MAPREDUCE-1445.patch
>
>
> Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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


[jira] Updated: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

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

Tom White updated MAPREDUCE-1445:
---------------------------------

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

+1

I've just committed this. Thanks Aaron!

> Refactor Sqoop tests to support better ConnManager testing
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-1445
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>             Fix For: 0.22.0
>
>         Attachments: MAPREDUCE-1445.patch
>
>
> Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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


[jira] Commented: (MAPREDUCE-1445) Refactor Sqoop tests to support better ConnManager testing

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835272#action_12835272 ] 

Hudson commented on MAPREDUCE-1445:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk #239 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk/239/])
    . Refactor Sqoop tests to support better ConnManager testing. Contributed by Aaron Kimball.


> Refactor Sqoop tests to support better ConnManager testing
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-1445
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1445
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>             Fix For: 0.22.0
>
>         Attachments: MAPREDUCE-1445.patch
>
>
> Sqoop's test suite is heavily biased toward testing with the HSQLDB embedded database. This issue proposes to refactor some tests into abstract classes which can be used as a basis for testing a variety of connection manager implementations, ensuring better cross-database compatibility coverage.

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