5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 11:30:41 +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:
Jarek Jarcec Cecho 2013-10-02 09:14:31 -07:00
parent 15c4f80d7a
commit 066f98aee0

View File

@ -166,9 +166,16 @@ public Object readContent(int type) throws InterruptedException {
if (writerFinished) {
return null;
}
Object content = data.getContent(type);
free.release();
return content;
try {
Object content = data.getContent(type);
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();
}
}
}