mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 01:19:38 +08:00
SQOOP-1210: Exporting data with malformed records causes sqoop2 jobs to hang until killed or they timeout
(Venkat Ranganathan via Jarek Jarcec Cecho)
This commit is contained in:
parent
15c4f80d7a
commit
066f98aee0
@ -166,9 +166,16 @@ public Object readContent(int type) throws InterruptedException {
|
|||||||
if (writerFinished) {
|
if (writerFinished) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Object content = data.getContent(type);
|
try {
|
||||||
free.release();
|
Object content = data.getContent(type);
|
||||||
return content;
|
return content;
|
||||||
|
} catch (Throwable t) {
|
||||||
|
readerFinished = true;
|
||||||
|
LOG.error("Caught exception e while getting content ", t);
|
||||||
|
throw new SqoopException(MapreduceExecutionError.MAPRED_EXEC_0018, t);
|
||||||
|
} finally {
|
||||||
|
free.release();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user