forked from D-Net/dnet-hadoop
propagate exception on parsing work (PR request)
This commit is contained in:
parent
a97ad20c7b
commit
ab083f9946
|
@ -128,10 +128,7 @@ public class ActivitiesDumpReader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log
|
throw new Exception(filename, e);
|
||||||
.warn(
|
|
||||||
"Parsing work from tar archive and xml work: " + filename + " " + e.getMessage());
|
|
||||||
// Log.warn(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((counter % XML_WORKS_PARSED_COUNTER_LOG_INTERVAL) == 0) {
|
if ((counter % XML_WORKS_PARSED_COUNTER_LOG_INTERVAL) == 0) {
|
||||||
|
@ -143,7 +140,7 @@ public class ActivitiesDumpReader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
Log.warn("Parsing work from gzip archive: " + e.getMessage());
|
Log.warn("Parsing work from gzip archive: " + e.getMessage());
|
||||||
Log.warn(e);
|
Log.warn(e);
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
Loading…
Reference in New Issue