mirror of
https://github.com/apache/sqoop.git
synced 2025-05-10 07:31:32 +08:00
SQOOP-1041: Sqoop2: Framework upgrade in JdbcRepository returns the outdated value
(Jarek Jarcec Cecho via Kate Ting)
This commit is contained in:
parent
b3ebfdda61
commit
c0a43d436f
@ -183,7 +183,12 @@ public Object doIt(Connection conn) {
|
|||||||
handler.registerFramework(mFramework, conn);
|
handler.registerFramework(mFramework, conn);
|
||||||
return mFramework;
|
return mFramework;
|
||||||
} else {
|
} 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;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user