mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 01:32:20 +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) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user