[ https://issues.apache.org/jira/browse/CONFIGURATION-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680190#comment-17680190 ]
Gary D. Gregory commented on CONFIGURATION-828: ----------------------------------------------- I agree that this feels out of scope. > Configuration file truncated then there isn't enough disk space for writing > --------------------------------------------------------------------------- > > Key: CONFIGURATION-828 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-828 > Project: Commons Configuration > Issue Type: Bug > Components: File reloading > Affects Versions: 2.8.0 > Reporter: Alla Gofman > Priority: Major > > Please consider: > 1) Not to create output stream to file in case there is not enough disk space > for writing it's content in case of save. > 2) Enable to register some FileHandlerListener in this case to be notified on > such issue and can react by throwing some Exception. > The FileHandlerListener.saving(FileHandler handler) method not suitable, > because called after the file being already truncated. > * Meanwhile, the workaround is to extend > DefaultFileSystem.getOutputStream(File file) method. -- This message was sent by Atlassian Jira (v8.20.10#820010)