How should the application be notified when the disk runs out of space?

42 views
Skip to first unread message

paup...@epochlabs.com

unread,
Aug 13, 2015, 5:48:19 PM8/13/15
to google-glog
Our product depends on glog, but we are running into an issue where we run out of disk space. We would like to be able to respond to this condition and were wondering if there is a way for our application to be notified (through an exception or other means) in the event that the disk runs out of free space.

paup...@epochlabs.com

unread,
Aug 19, 2015, 4:18:07 PM8/19/15
to google-glog
Looking at the source code, I am somewhat convinced that the functionality I am looking for would be implemented around here.  Please correct me if I am wrong, but because there does not seem to be error handling code here or anywhere else that I've looked, I am somewhat convinced it does not exist. 

If there is not currently a way to cause the application to die on full disk, a flag could be added that would cause glog to throw an exception if the disk is full. Such an implementation should not be too hard to add. 

Kjell Hedstrom

unread,
Aug 19, 2015, 9:43:14 PM8/19/15
to googl...@googlegroups.com
I don't see why this is related to glog., unless the reason the disk fills up is because of glog logging? 

It's simple enough to implement your own utility. Make it threaded and check disk status every X time unit. 

Sent from my iPhone

On Aug 19, 2015, at 14:18, paup...@epochlabs.com wrote:

Looking at the source code, I am somewhat convinced that the functionality I am looking for would be implemented around here.  Please correct me if I am wrong, but because there does not seem to be error handling code here or anywhere else that I've looked, I am somewhat convinced it does not exist. 

If there is not currently a way to cause the application to die on full disk, a flag could be added that would cause glog to throw an exception if the disk is full. Such an implementation should not be too hard to add. 

--
You received this message because you are subscribed to the Google Groups "google-glog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-glog...@googlegroups.com.
To post to this group, send email to googl...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-glog.
For more options, visit https://groups.google.com/d/optout.

paup...@epochlabs.com

unread,
Aug 24, 2015, 5:36:06 PM8/24/15
to google-glog
Sorry, I didn't make that apparent. I am, in fact, speaking of the case where logs fill the disk. We are producing many gigabytes of logs very quickly and would like to be notified when we can no longer produce logs. 
Reply all
Reply to author
Forward
0 new messages