danny0405 commented on code in PR #7336:
URL: https://github.com/apache/hudi/pull/7336#discussion_r1237915484
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java:
##########
@@ -484,7 +485,7 @@ protected void doWrite(HoodieRecord record, Schema schema,
TypedProperties props
} catch (Throwable t) {
// Not throwing exception from here, since we don't want to fail the
entire job
// for a single record
- writeStatus.markFailure(record, t, recordMetadata);
+ writeStatus.markFailure(lazily(() ->
HoodieRecordDelegate.fromHoodieRecord(record)), t, recordMetadata);
Review Comment:
I mean the closure already incudes a `HudiRecord`, which is much bigger than
the `HoodieRecordDelegate` object iftself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]