mridulm commented on pull request #33556: URL: https://github.com/apache/spark/pull/33556#issuecomment-892511398
You are right. Basic idea is, are the bytes captured in a segment which is tracked or not (which is done in `flush`: note, the `flush` method within `spillMemoryIteratorToDisk` - not `writer.flush`) When `objectsWritten == 0`, there is no `flush` invoked - and so if there are any bytes written out during close, those wont be tracked in our offets. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
