(converter) Swallow errors in parquet data stream

This commit is contained in:
Viktor Lofgren 2023-12-28 19:45:35 +01:00
parent ff7d1a250e
commit bcecc93e39

View File

@ -46,8 +46,14 @@ public class ParquetSerializableCrawlDataStream implements AutoCloseable, Serial
createDomainRecord(nextRecord); createDomainRecord(nextRecord);
wroteDomainRecord = true; wroteDomainRecord = true;
} }
try {
createDocumentRecord(nextRecord); createDocumentRecord(nextRecord);
} }
catch (Exception ex) {
logger.error("Failed to create document record", ex);
}
}
return !nextQ.isEmpty(); return !nextQ.isEmpty();
} }