iilyak commented on issue #3576:
URL: https://github.com/apache/couchdb/issues/3576#issuecomment-908352558


   > write this error message onece peer hour (30 min, 5 min) and write to log 
"no free space error muted for 60 min".
   
   To implement it we would need to maintain a timestamp when the message was 
logged last time.
   We don't have facility in the logger to log certain messages once in a given 
interval. The problem is a couch_file processes are independent for each 
database. So we cannot remove duplicates of the message across those processes. 
Also we terminate couch_file processes when needed which makes accounting for 
`last_time_logged` impossible (without using shared state).
   
   CouchDB project would benefit in few other places if we would implement log 
once facility in the logger.
   However implementation of this is not easy and would require:
   1.  porting https://github.com/apache/couchdb/pull/3526 to 3.x
   2. erlang upgrade to 21


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


Reply via email to