5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-10 03:10:52 +08:00

SQOOP-1041: Sqoop2: Framework upgrade in JdbcRepository returns the outdated value

(Jarek Jarcec Cecho via Kate Ting)
This commit is contained in:
Kate Ting 2013-05-13 00:46:06 -04:00
parent b3ebfdda61
commit c0a43d436f

View File

@ -183,7 +183,12 @@ public Object doIt(Connection conn) {
handler.registerFramework(mFramework, conn);
return mFramework;
} else {
upgradeFramework(mFramework);
// We're currently not serializing framework version into repository
// so let's just compare the structure to see if we need upgrade.
if(!mFramework.equals(result)) {
upgradeFramework(mFramework);
return mFramework;
}
return result;
}
}