Changing Update record failure semantics to be consistent with inserts
- Don't skip, but writes the same old record again now - Marks the correspoinding HoodieRecord as failure to be handed back to the client
This commit is contained in:
@@ -90,6 +90,8 @@ public class HoodieInsertHandle<T extends HoodieRecordPayload> extends HoodieIOH
|
||||
record.deflate();
|
||||
recordsWritten++;
|
||||
} catch (Throwable t) {
|
||||
// Not throwing exception from here, since we don't want to fail the entire job
|
||||
// for a single record
|
||||
status.markFailure(record, t);
|
||||
logger.error("Error writing record " + record, t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user