swaminathanmanish opened a new pull request, #11490:
URL: https://github.com/apache/pinot/pull/11490

   **Problem**:
   We had a situation where SegmentProcessingFramework ran out of disk and 
GenericRowFileWriter failed while closing _offsetStream. This prevented 
_dataStream from getting closed, which leads to file descriptor leak. 
   
   **Solution**: Ensure that we close _dataStream, even when _offsetStream 
fails to flush. 
   
   Stack -
   Task failed in 726023ms with error: java.io.IOException: No space left on 
device
        at java.base/java.io.FileOutputStream.writeBytes(Native Method)
        at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
        at 
java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
        at 
java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
        at 
java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:182)
        at 
java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:191)
        at 
org.apache.pinot.core.segment.processing.genericrow.GenericRowFileWriter.close(GenericRowFileWriter.java:69)
        at 
org.apache.pinot.core.segment.processing.genericrow.GenericRowFileManager.closeFileWriter(GenericRowFileManager.java:94)
   


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

Reply via email to