mirror of
https://github.com/apache/sqoop.git
synced 2025-05-07 02:31:08 +08:00
SQOOP-765: JDBC repository is incorrectly checking if job exists in
update handler (Jarek Jarcec Cecho via Cheolsoo Park)
This commit is contained in:
parent
0c608eada4
commit
9ab7ea6ee0
@ -275,7 +275,7 @@ public Object doIt(Connection conn) {
|
|||||||
if(!job.hasPersistenceId()) {
|
if(!job.hasPersistenceId()) {
|
||||||
throw new SqoopException(RepositoryError.JDBCREPO_0019);
|
throw new SqoopException(RepositoryError.JDBCREPO_0019);
|
||||||
}
|
}
|
||||||
if(!handler.existsConnection(job.getPersistenceId(), conn)) {
|
if(!handler.existsJob(job.getPersistenceId(), conn)) {
|
||||||
throw new SqoopException(RepositoryError.JDBCREPO_0020,
|
throw new SqoopException(RepositoryError.JDBCREPO_0020,
|
||||||
"Invalid id: " + job.getPersistenceId());
|
"Invalid id: " + job.getPersistenceId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user