Davis-Zhang-Onehouse opened a new issue, #20786:
URL: https://github.com/apache/hudi/issues/20786

   Part of #20683 (RFC-118, #20684).
   
   In a merge-on-read Spark read, `HoodieFileGroupReaderFunction` opens the 
file group reader and then builds the projected rows over it. If that step 
fails (for example while loading the log files after the base file is open, or 
in a projection's code generation), no task listener holds the reader yet, so 
the open base file is never closed.
   
   `SerializableIndexedRecord` keeps the Avro encoding of a decoded record 
after the first encode. A buffer of decoded records being serialized (a Spark 
shuffle spill writing out its map) then holds each payload twice, beyond the 
size Spark accounted for, and a record changed after one serialization 
serializes stale bytes. Its Java deserialization reads the record bytes with a 
single `read` call, which can return fewer bytes than requested for a large 
record.
   
   PR: (linked once opened)
   


-- 
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]

Reply via email to