Re: [Boost-bugs] [Boost C++ Libraries] #11016: Boost file logging misbehaves when file system is full

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11016: Boost file logging misbehaves when file system is full
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-12 10:58:21


#11016: Boost file logging misbehaves when file system is full
-------------------------------+---------------------
  Reporter: michi@… | Owner: andysem
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: log
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by andysem):

 What I think is happening is the file stream which is used to write the
 log file becomes !good() when there is no space to write a record. No
 exception is thrown but on the next record the library sees that the
 stream is not operational and rotates the file. This is where lots of
 empty files appear.

 I agree that the current behavior is not correct, but it is not clear what
 it should be. I can throw exceptions when write fails (although I won't be
 able to detect the cause of the failure) but as a recovery procedure I
 still have to rotate the file on the next record so that the library
 repairs itself when environment becomes normal again. I can add a check
 and not actually perform rotation when the file is empty, although this
 makes behavior less obvious.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11016#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC