sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Veena Basavaraj (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-1583) Sqoop2: DerbyRepository Upgrade testing code cleanup
Date Tue, 28 Oct 2014 06:16:33 GMT

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

Veena Basavaraj commented on SQOOP-1583:
----------------------------------------

one another thing to clean up runQuery and runInsertQuery, does not seem like there is good
practive on using these 2 methods, both seem to do the same things.

> Sqoop2: DerbyRepository Upgrade testing code cleanup
> ----------------------------------------------------
>
>                 Key: SQOOP-1583
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1583
>             Project: Sqoop
>          Issue Type: Improvement
>            Reporter: Veena Basavaraj
>            Assignee: Veena Basavaraj
>             Fix For: 2.0.0
>
>
> See comments in the https://reviews.apache.org/r/26657/ for context on why we need this
JIRA.
> sqoop derby repository schema handler and its corresponding test code for upgrades are
very brittle.
> For instance, renaming a field in the repository table does not really break any test
immediately, nor does the developer get any indication that a upgrade query must be written
to enforce this.
> We should fix this to guard developers from making changes to schema and not creating
a corresponding upgrade script. 
> Second, the tests needs not have to copy paste the same query code to validate that the
upgrade is working, we should be able to share the query code in such a way that any new upgrade
code added to the repository handler breaks the tests automatically.
> {code} DerbyTestCase {code}
> Disclaimer that this code has a lot of
> assumptions based on how the repository upgrade has happened. Take a deep breadth before
> you make changes or have to add more code to this already sphagetti like code.For instance
there 
> is only tests form version 2 to version 4. Why dont we have tests for version 2 to version
3 and  version 3 to version 4.?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message