cloud-software-foundation / c5

c5
Apache License 2.0
12 stars 8 forks source link

LogService should have a roll policy #275

Open joshua-g opened 10 years ago

joshua-g commented 10 years ago

OLog has a roll() method that is fully implemented, but no one calls it.

LogService should be able to be set up with a simple policy, such that if the current log file for any quorum grows beyond N bytes, it should be rolled.

To accomplish this, we may want to add a new method to LogPersistenceService, to retrieve the size of the current file for a given quorum.

ryanobjc commented 10 years ago

i invite you to research 'policy objects' as a way to solve this